diff options
author | fche <fche> | 2005-10-06 16:33:48 +0000 |
---|---|---|
committer | fche <fche> | 2005-10-06 16:33:48 +0000 |
commit | 33f88a80b716a37e6ef7b474622457906cc1f4f0 (patch) | |
tree | f786ef3895a14c572be4b11d36435f56f7916bf8 /runtime/sym.h | |
parent | 8714b4e52ce6efd60cefea1ca4421b426b5ddeec (diff) | |
download | systemtap-steved-33f88a80b716a37e6ef7b474622457906cc1f4f0.tar.gz systemtap-steved-33f88a80b716a37e6ef7b474622457906cc1f4f0.tar.xz systemtap-steved-33f88a80b716a37e6ef7b474622457906cc1f4f0.zip |
2005-10-06 Frank Ch. Eigler <fche@elastic.org>
PR 1332.
* translate.cxx (emit_symbol_data): New function to transcribe
a processed address->symbol lookup table, based upon /proc/kallsyms.
2005-10-06 Frank Ch. Eigler <fche@elastic.org>
PR 1332.
* sym.h: New file to declare explicit symbol table struct.
* runtime.h (_stp_kallsyms_lookup_tabled): Use it if available.
* sym.c (_stp_symbol_sprint): HAS_LOOKUP mooted.
2005-10-06 Frank Ch. Eigler <fche@elastic.org>
PR 1132.
* systemtap.samples/symbols.*: New test.
Diffstat (limited to 'runtime/sym.h')
-rw-r--r-- | runtime/sym.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/runtime/sym.h b/runtime/sym.h new file mode 100644 index 00000000..6ed08b06 --- /dev/null +++ b/runtime/sym.h @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2005 Red Hat Inc. + * + * This file is part of systemtap, and is free software. You can + * redistribute it and/or modify it under the terms of the GNU General + * Public License (GPL); either version 2, or (at your option) any + * later version. + */ + +#ifndef _STAP_SYMBOLS_H_ +#define _STAP_SYMBOLS_H_ + + +/* A symbol table defined by the translator. */ +struct stap_symbol { + unsigned long addr; + const char *symbol; + const char *modname; +}; + +extern struct stap_symbol stap_symbols []; +extern unsigned stap_num_symbols; + + +#endif /* _RUNTIME_H_ */ |