]> git.baikalelectronics.ru Git - kernel.git/commitdiff
perf lock: Change to synthesize task events
authorNamhyung Kim <namhyung@kernel.org>
Wed, 1 Jun 2022 06:58:42 +0000 (23:58 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Jun 2022 19:26:48 +0000 (21:26 +0200)
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>
tools/perf/builtin-lock.c

index b1200b7340a6e9313be6f72c282ca636d5a12a81..23a33ac15e685fec3edd15f029da5acb41545dfa 100644 (file)
@@ -1083,7 +1083,7 @@ out_delete:
 static int __cmd_record(int argc, const char **argv)
 {
        const char *record_args[] = {
-               "record", "-R", "-m", "1024", "-c", "1", "--synth", "no",
+               "record", "-R", "-m", "1024", "-c", "1", "--synth", "task",
        };
        unsigned int rec_argc, i, j, ret;
        const char **rec_argv;