]> git.baikalelectronics.ru Git - kernel.git/commit
perf synthetic-events: Ignore dead threads during event synthesis
authorNamhyung Kim <namhyung@kernel.org>
Fri, 1 Jul 2022 20:54:58 +0000 (13:54 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 2 Jul 2022 12:22:26 +0000 (09:22 -0300)
commitffcf2c8aeb91e7bdb16d0c826cb5f7e9ce5d65b2
tree9a8bd64164f33f9a8bd0272083f0fbb9c48ee653
parent3ab0929f5b3292092aad91c83350416fea746450
perf synthetic-events: Ignore dead threads during event synthesis

When it synthesize various task events, it scans the list of task
first and then accesses later.  There's a window threads can die
between the two and proc entries may not be available.

Instead of bailing out, we can ignore that thread and move on.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20220701205458.985106-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/synthetic-events.c