7 static void bts_show(
const char *fname);
19 .symfile =
"/boot/vmlinux-syms-2.6.18-xenU",
26 .symfile =
"/boot/xen-syms-3.0-unstable",
38 int main(
int argc,
char **argv)
42 while ((ch = getopt(argc, argv,
"dSGU:")) != -1) {
62 fprintf(stderr,
"Usage: bts-dump [-dS] filename ...\n");
83 static void bts_show(
const char *fname)
91 fprintf(stderr,
"Could not open stream\n");
103 if (tot == 0 && recs[0].
from == UINT64_MAX &&
104 recs[0].
to == UINT64_MAX && recs[0].
format == UINT64_MAX) {
106 fprintf(stderr,
"Dump file in extended format\n");
113 printf(
"%012lld: ", recs[i].
format);
115 printf(
"%lld: ", tot+i);
117 char s1[256],
s2[256];
125 printf(
"%s -> %s\n", s1, s2);
127 printf(
"0x%08llx -> 0x%08llx\n", recs[i].from, recs[i].
to);
void symlist_string(uint32_t, char *, int)
static uint64_t unsigned int i
void symlist_gdb_string(uint32_t, char *, int)
int bts_read(BTSFD, struct bts_rec *, int)
BTSFD bts_open(const char *)
int symlist_init(struct symmap[], int)
int main(int argc, char **argv)