summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2024-05-08 06:53:01 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2024-05-10 00:15:25 +0300
commit3536c2575e88a890cf696b4ccd3da36bc937853b (patch)
tree8f7ea0af72008461cd825e7b98a34e1449155533 /tools/perf/scripts/python/task-analyzer.py
parent45b4f402a6b782352c4bafcff682bfb01da9ca05 (diff)
downloadlinux-3536c2575e88a890cf696b4ccd3da36bc937853b.tar.xz
perf thread: Fixes to thread__new() related to initializing comm
Freeing the thread on failure won't work with reference count checking, use thread__delete(). Don't allocate the comm_str, use a stack allocation instead. Fixes: f6005cafebab72f8 ("perf thread: Add reference count checking") Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@arm.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Leo Yan <leo.yan@linux.dev> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20240508035301.1554434-5-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions