Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf lock: Change to synthesize task events

With -t/--threads option, it needs to display task names so synthesize
task related events at the beginning.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Waiman Long <longman@redhat.com>
Cc: Will Deacon <will@kernel.org>
Fixes: 7c3bcbdf449f ("perf lock: Add -t/--thread option for report")
Link: http://lore.kernel.org/lkml/20220601065846.456965-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Namhyung Kim and committed by
Arnaldo Carvalho de Melo
2762c488 dc2cf4ca

+1 -1
+1 -1
tools/perf/builtin-lock.c
··· 1083 1083 static int __cmd_record(int argc, const char **argv) 1084 1084 { 1085 1085 const char *record_args[] = { 1086 - "record", "-R", "-m", "1024", "-c", "1", "--synth", "no", 1086 + "record", "-R", "-m", "1024", "-c", "1", "--synth", "task", 1087 1087 }; 1088 1088 unsigned int rec_argc, i, j, ret; 1089 1089 const char **rec_argv;