aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r--tools/perf/util/session.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
index e5334a976536..552c1c50eea1 100644
--- a/tools/perf/util/session.c
+++ b/tools/perf/util/session.c
@@ -1293,7 +1293,7 @@ struct perf_evsel *perf_session__find_first_evtype(struct perf_session *session,
1293 1293
1294void perf_event__print_ip(union perf_event *event, struct perf_sample *sample, 1294void perf_event__print_ip(union perf_event *event, struct perf_sample *sample,
1295 struct machine *machine, struct perf_evsel *evsel, 1295 struct machine *machine, struct perf_evsel *evsel,
1296 int print_sym, int print_dso) 1296 int print_sym, int print_dso, int print_symoffset)
1297{ 1297{
1298 struct addr_location al; 1298 struct addr_location al;
1299 struct callchain_cursor *cursor = &evsel->hists.callchain_cursor; 1299 struct callchain_cursor *cursor = &evsel->hists.callchain_cursor;
@@ -1340,7 +1340,11 @@ void perf_event__print_ip(union perf_event *event, struct perf_sample *sample,
1340 printf("%16" PRIx64, sample->ip); 1340 printf("%16" PRIx64, sample->ip);
1341 if (print_sym) { 1341 if (print_sym) {
1342 printf(" "); 1342 printf(" ");
1343 symbol__fprintf_symname(al.sym, stdout); 1343 if (print_symoffset)
1344 symbol__fprintf_symname_offs(al.sym, &al,
1345 stdout);
1346 else
1347 symbol__fprintf_symname(al.sym, stdout);
1344 } 1348 }
1345 1349
1346 if (print_dso) { 1350 if (print_dso) {