Searched hist:"6 b7e02ab1262141cfebd05b68410fa297f557961" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/perf/tests/shell/ |
H A D | record.sh | diff 6b7e02ab1262141cfebd05b68410fa297f557961 Thu Oct 20 12:26:39 CDT 2022 Namhyung Kim <namhyung@kernel.org> perf test: Wait for a new thread when testing --per-thread record
Just running the target program is not enough to test multi-thread target because it'd be racy perf vs target startup. I used the initial delay but it cannot guarantee for perf to see the thread.
Instead, use wait_for_threads helper from shell/lib/waiting.sh to make sure it starts the sibling thread first. Then perf record can use -p option to profile the target process.
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20221020172643.3458767-5-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
|