Skip to contentSkip to conversation

perf lock: Change to synthesize task events

PATCH In review Namhyung Kim 2 participants 2 messages May 26, 2022 perf events

lore
Share & tools
lore

Namhyung Kim

author maintainer
#0 lore raw

PATCH 1/1 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.

Fixes 7c3bcbdf449f ("perf lock: Add -t/--thread option for report")
---
 tools/perf/builtin-lock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/builtin-lock.c +1 -1
index b1200b7340a6..23a33ac15e68 100644
@@ -1083,7 +1083,7 @@ static int __cmd_report(bool display_info)
 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;
Signature · 1 line
2.36.1.124.g0e6072fb45-goog
reviewer Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Namhyung Kim

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

Fixes 7c3bcbdf449f ("perf lock: Add -t/--thread option for report")

Thanks,
Ian

Quoted 20 lines
---
 tools/perf/builtin-lock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/builtin-lock.c +1 -2
index b1200b7340a6..23a33ac15e68 100644
@@ -1083,7 +1083,7 @@ static int __cmd_report(bool display_info)
 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;
--

2.36.1.124.g0e6072fb45-goog