From 33f88a80b716a37e6ef7b474622457906cc1f4f0 Mon Sep 17 00:00:00 2001 From: fche Date: Thu, 6 Oct 2005 16:33:48 +0000 Subject: 2005-10-06 Frank Ch. Eigler 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 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 PR 1132. * systemtap.samples/symbols.*: New test. --- runtime/sym.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 runtime/sym.h (limited to 'runtime/sym.h') 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_ */ -- cgit