From 776f79af7a8f0bbe27548d8680208196c6f4be9a Mon Sep 17 00:00:00 2001 From: Marcin Olszewski Date: Fri, 16 Sep 2022 13:42:15 +0200 Subject: [PATCH] Take exec comm str to set child thread's comm when handling thread__fork event --- tools/perf/util/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/thread.c b/tools/perf/util/thread.c index a3cc8ebb04a8e6..ac8a1e0fcebf8c 100644 --- a/tools/perf/util/thread.c +++ b/tools/perf/util/thread.c @@ -412,7 +412,7 @@ static int thread__clone_maps(struct thread *thread, struct thread *parent, bool int thread__fork(struct thread *thread, struct thread *parent, u64 timestamp, bool do_maps_clone) { if (parent->comm_set) { - const char *comm = thread__comm_str(parent); + const char *comm = thread__exec_comm_str(parent); int err; if (!comm) return -ENOMEM;