aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/db-export.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/perf/util/db-export.c b/tools/perf/util/db-export.c
index 63f9edf65eee..99ad759561de 100644
--- a/tools/perf/util/db-export.c
+++ b/tools/perf/util/db-export.c
@@ -312,6 +312,12 @@ int db_export__sample(struct db_export *dbe, union perf_event *event,
312 main_thread); 312 main_thread);
313 if (err) 313 if (err)
314 goto out_put; 314 goto out_put;
315 if (comm) {
316 err = db_export__exec_comm(dbe, comm, main_thread);
317 if (err)
318 goto out_put;
319 es.comm_db_id = comm->db_id;
320 }
315 } 321 }
316 322
317 if (thread != main_thread) { 323 if (thread != main_thread) {
@@ -321,13 +327,6 @@ int db_export__sample(struct db_export *dbe, union perf_event *event,
321 goto out_put; 327 goto out_put;
322 } 328 }
323 329
324 if (comm) {
325 err = db_export__exec_comm(dbe, comm, main_thread);
326 if (err)
327 goto out_put;
328 es.comm_db_id = comm->db_id;
329 }
330
331 es.db_id = ++dbe->sample_last_db_id; 330 es.db_id = ++dbe->sample_last_db_id;
332 331
333 err = db_ids_from_al(dbe, al, &es.dso_db_id, &es.sym_db_id, &es.offset); 332 err = db_ids_from_al(dbe, al, &es.dso_db_id, &es.sym_db_id, &es.offset);