diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/db-export.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/perf/util/db-export.c b/tools/perf/util/db-export.c index b1e581c13963..5057fdd7f62d 100644 --- a/tools/perf/util/db-export.c +++ b/tools/perf/util/db-export.c @@ -299,6 +299,7 @@ int db_export__sample(struct db_export *dbe, union perf_event *event, }; struct thread *main_thread; struct comm *comm = NULL; + struct comm *curr_comm; int err; err = db_export__evsel(dbe, evsel); @@ -350,6 +351,13 @@ int db_export__sample(struct db_export *dbe, union perf_event *event, } } + curr_comm = thread__comm(thread); + if (curr_comm) { + err = db_export__comm(dbe, curr_comm, thread); + if (err) + goto out_put; + } + es.db_id = ++dbe->sample_last_db_id; err = db_ids_from_al(dbe, al, &es.dso_db_id, &es.sym_db_id, &es.offset); |