Add stats to hashtable implementation.
[kmemtrace-user.git] / kallsyms.h
blob1644752bfeac328a69daba1f438228e11df7e6db
1 /*
2 * Copyright (C) 2008 Eduard - Gabriel Munteanu
4 * This file is released under GPL version 2.
5 */
7 #ifndef _KALLSYMS_H
8 #define _KALLSYMS_H
10 #include <stdio.h>
11 #include <stdlib.h>
12 #include <stdint.h>
14 #define SYMBOL_NAME_MAX 128
16 struct kallsyms_symbol {
17 uint64_t addr;
18 char *name;
19 size_t name_len;
22 extern int kallsyms_init(const char *path);
23 extern void kallsyms_exit(void);
24 extern struct kallsyms_symbol *kallsyms_lookup(uint64_t addr);
26 #endif