Skip to content

Commit 2593138

Browse files
committed
Merge: perf sched timehist: decode process names of processes in zombie state
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1333 # Merge Request Required Information JIRA: https://issues.redhat.com/browse/RHEL-68347 ## Summary of Changes Currently, process recorded in the zombie state are not decoded properly and only appear with their PID. This patch adds extra processing to decode the process name. Signed-off-by: Anubhav Shelat <ashelat@redhat.com> Approved-by: Michael Petlan <mpetlan@redhat.com> Approved-by: jbrnak <jbrnak@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Scott Weaver <scweaver@redhat.com>
2 parents ddc5e26 + c409cbc commit 2593138

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/perf/builtin-sched.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,6 +2174,11 @@ static void timehist_print_sample(struct perf_sched *sched,
21742174
printf(" ");
21752175
}
21762176

2177+
if (!thread__comm_set(thread)) {
2178+
const char *prev_comm = evsel__strval(evsel, sample, "prev_comm");
2179+
thread__set_comm(thread, prev_comm, sample->time);
2180+
}
2181+
21772182
printf(" %-*s ", comm_width, timehist_get_commstr(thread));
21782183

21792184
if (sched->show_prio)

0 commit comments

Comments
 (0)