[PATCH v2 1/7] perf kwork: Add '--synth task' option for record
From: Yang Jihong
Date: Fri Jul 29 2022 - 23:06:45 EST
Since we don't need user space symbols, add '--synth task' option to skip
costly synthesis.
Suggested-by: Namhyung Kim <namhyung@xxxxxxxxxx>
Signed-off-by: Yang Jihong <yangjihong1@xxxxxxxxxx>
---
tools/perf/builtin-kwork.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/perf/builtin-kwork.c b/tools/perf/builtin-kwork.c
index fb8c63656ad8..ff17711a554a 100644
--- a/tools/perf/builtin-kwork.c
+++ b/tools/perf/builtin-kwork.c
@@ -1631,6 +1631,10 @@ static int perf_kwork__record(struct perf_kwork *kwork,
"-R",
"-m", "1024",
"-c", "1",
+ /*
+ * Skip synthesis as we do not need user space symbols.
+ */
+ "--synth", "task",
};
rec_argc = ARRAY_SIZE(record_args) + argc - 1;
--
2.30.GIT