diff options
author | Ian Rogers <irogers@google.com> | 2023-06-11 16:36:09 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2023-06-12 18:18:14 -0300 |
commit | 8351498d5204ef572ace0582c33b2302fe303c57 (patch) | |
tree | bf03fd925c3d6b902a3e322024efaf83a8b141a4 /tools/perf/scripts/python/task-analyzer.py | |
parent | e6deda2e5a6a387437bcaeffa7bf4bc95fe8c446 (diff) | |
download | linux-stable-8351498d5204ef572ace0582c33b2302fe303c57.tar.gz linux-stable-8351498d5204ef572ace0582c33b2302fe303c57.tar.bz2 linux-stable-8351498d5204ef572ace0582c33b2302fe303c57.zip |
perf bench futex: Avoid memory leaks from pthread_attr
Remove code sharing the pthread_attr_t and initialize/destroy
pthread_attr_t when needed. This avoids the same attribute being set
that leak sanitizer reports as a memory leak.
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: André Almeida <andrealmeid@igalia.com>
Cc: Darren Hart <dvhart@infradead.org>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230611233610.953456-4-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