diff options
-rw-r--r-- | tools/perf/util/db-export.c | 4 | ||||
-rw-r--r-- | tools/perf/util/db-export.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/util/db-export.c b/tools/perf/util/db-export.c index a0ca90c1fb50..f8e3057ae3b1 100644 --- a/tools/perf/util/db-export.c +++ b/tools/perf/util/db-export.c | |||
@@ -408,8 +408,10 @@ int db_export__sample(struct db_export *dbe, union perf_event *event, | |||
408 | struct call_path *cp = call_path_from_sample(dbe, al->machine, | 408 | struct call_path *cp = call_path_from_sample(dbe, al->machine, |
409 | thread, sample, | 409 | thread, sample, |
410 | evsel); | 410 | evsel); |
411 | if (cp) | 411 | if (cp) { |
412 | db_export__call_path(dbe, cp); | 412 | db_export__call_path(dbe, cp); |
413 | es.call_path_id = cp->db_id; | ||
414 | } | ||
413 | } | 415 | } |
414 | 416 | ||
415 | if ((evsel->attr.sample_type & PERF_SAMPLE_ADDR) && | 417 | if ((evsel->attr.sample_type & PERF_SAMPLE_ADDR) && |
diff --git a/tools/perf/util/db-export.h b/tools/perf/util/db-export.h index f5daf552054c..67bc6b8ad2d6 100644 --- a/tools/perf/util/db-export.h +++ b/tools/perf/util/db-export.h | |||
@@ -44,6 +44,7 @@ struct export_sample { | |||
44 | u64 addr_dso_db_id; | 44 | u64 addr_dso_db_id; |
45 | u64 addr_sym_db_id; | 45 | u64 addr_sym_db_id; |
46 | u64 addr_offset; /* addr offset from symbol start */ | 46 | u64 addr_offset; /* addr offset from symbol start */ |
47 | u64 call_path_id; | ||
47 | }; | 48 | }; |
48 | 49 | ||
49 | struct db_export { | 50 | struct db_export { |