6 tep_find_function,tep_find_function_address - Find function name / start address.
12 *#include <event-parse.h>*
14 const char pass:[*]*tep_find_function*(struct tep_handle pass:[*]_tep_, unsigned long long _addr_);
15 unsigned long long *tep_find_function_address*(struct tep_handle pass:[*]_tep_, unsigned long long _addr_);
20 These functions can be used to find function name and start address, by given
21 address. The given address does not have to be exact, it will select the function
22 that would contain it.
24 The _tep_find_function()_ function returns the function name, which contains the
25 given address _addr_. The _tep_ argument is the trace event parser context.
27 The _tep_find_function_address()_ function returns the function start address,
28 by given address _addr_. The _addr_ does not have to be exact, it will select the
29 function that would contain it. The _tep_ argument is the trace event parser context.
33 The _tep_find_function()_ function returns the function name, or NULL in case
36 The _tep_find_function_address()_ function returns the function start address,
37 or 0 in case it cannot be found.
43 #include <event-parse.h>
45 struct tep_handle *tep = tep_alloc();
47 void show_function( unsigned long long addr)
49 const char *fname = tep_find_function(tep, addr);
50 unsigned long long fstart = tep_find_function_address(tep, addr);
52 /* addr is in function named fname, starting at fstart address, at offset (addr - fstart) */
62 Header file to include in order to have access to the library APIs.
64 Linker switch to add when building a program that uses the library.
69 _libtraceevent(3)_, _trace-cmd(1)_
75 *Steven Rostedt* <rostedt@goodmis.org>, author of *libtraceevent*.
76 *Tzvetomir Stoyanov* <tz.stoyanov@gmail.com>, author of this man page.
80 Report bugs to <linux-trace-devel@vger.kernel.org>
84 libtraceevent is Free Software licensed under the GNU LGPL 2.1
88 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git