Stackdb
Stackdb is a stackable, multi-target and -level source debugger and memory forensics library.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
bts.h
Go to the documentation of this file.
1 /*
2  * Based on include/asm-x86/ds.h
3  */
4 #include <stdint.h>
5 
6 /* For symbol mapping */
7 struct symmap {
8  char *symfile;
9  char *prefix;
10  uint32_t loaddr;
11  uint32_t hiaddr;
12  void *dbfile;
13 };
14 
15 int symlist_init(struct symmap[], int);
16 void symlist_deinit(void);
17 int symlist_isfunc(uint32_t addr);
18 struct lsymbol *symlist_lookup_name(char *name);
19 void symlist_string(uint32_t, char *, int);
20 void symlist_gdb_string(uint32_t, char *, int);
21 
22 /* Records as logged by the TT engine */
23 struct bts_rec {
24  uint64_t from;
25  uint64_t to;
26  uint64_t format;
27 };
28 
29 typedef void * BTSFD;
30 
31 extern BTSFD bts_open(const char *);
32 extern void bts_close(BTSFD);
33 extern int bts_seek(BTSFD, uint64_t);
34 extern int bts_read(BTSFD, struct bts_rec *, int);
35 extern int debug;
void bts_close(BTSFD)
Definition: io.c:113
void symlist_string(uint32_t, char *, int)
Definition: symbol.c:332
Definition: bts.h:23
uint32_t loaddr
Definition: bts.h:10
void * BTSFD
Definition: bts.h:29
void * dbfile
Definition: bts.h:12
char * prefix
Definition: bts.h:9
void symlist_gdb_string(uint32_t, char *, int)
Definition: symbol.c:326
int debug
Definition: bts_dump.c:33
uint32_t hiaddr
Definition: bts.h:11
int bts_read(BTSFD, struct bts_rec *, int)
Definition: io.c:73
char * symfile
Definition: bts.h:8
int symlist_isfunc(uint32_t addr)
Definition: symbol.c:151
uint64_t from
Definition: bts.h:24
int bts_seek(BTSFD, uint64_t)
Definition: io.c:45
struct lsymbol * symlist_lookup_name(char *name)
Definition: symbol.c:338
BTSFD bts_open(const char *)
Definition: io.c:19
uint64_t format
Definition: bts.h:26
uint64_t to
Definition: bts.h:25
int symlist_init(struct symmap[], int)
Definition: symbol.c:20
Definition: bts.h:7
void symlist_deinit(void)
Definition: symbol.c:356