Orabug:
23278057
A command line flag -l, --sym-lookup is added to Perf tool to enable symbol
lookup in hugepage shm segment. Perf tool without -l option exhibits the
default behavior of upstream.
Signed-off-by: avairava@ca-server1.us.oracle.com
&record_parse_callchain_opt),
OPT_INCR('v', "verbose", &verbose,
"be more verbose (show counter open errors, etc)"),
+ OPT_BOOLEAN('l', "sysv-lookup", &include_sysv_lookup,
+ "do symbol lookup in SYSV memory"),
OPT_BOOLEAN('q', "quiet", &quiet, "don't print any message"),
OPT_BOOLEAN('s', "stat", &record.opts.inherit_stat,
"per thread counts"),
"input file name"),
OPT_INCR('v', "verbose", &verbose,
"be more verbose (show symbol address, etc)"),
+ OPT_BOOLEAN('l', "sysv-lookup", &include_sysv_lookup,
+ "do symbol lookup in SYSV memory"),
OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace,
"dump raw trace in ASCII"),
OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name,
#include "machine.h"
#include <linux/string.h>
+bool include_sysv_lookup = false;
const char *map_type__name[MAP__NR_TYPES] = {
[MAP__FUNCTION] = "Functions",
[MAP__VARIABLE] = "Variables",
static inline int is_no_dso_memory(const char *filename)
{
return !strncmp(filename, "[stack", 6) ||
- !strncmp(filename, "/SYSV",5) ||
+ (!include_sysv_lookup && !strncmp(filename, "/SYSV", 5)) ||
!strcmp(filename, "[heap]");
}
#define MAP__NR_TYPES (MAP__VARIABLE + 1)
extern const char *map_type__name[MAP__NR_TYPES];
+extern bool include_sysv_lookup;
struct dso;
struct ip_callchain;