Re: [PATCH 1/5] perf lock: Change to synthesize task events

From: Arnaldo Carvalho de Melo
Date: Fri Jun 03 2022 - 15:28:53 EST


Em Tue, May 31, 2022 at 11:58:42PM -0700, Namhyung Kim escreveu:
> With -t/--threads option, it needs to display task names so synthesize
> task related events at the beginning.

Cherry picked this one.

> Fixes: 7c3bcbdf449f ("perf lock: Add -t/--thread option for report")
> Acked-by: Ian Rogers <irogers@xxxxxxxxxx>
> Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>
> ---
> tools/perf/builtin-lock.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/builtin-lock.c b/tools/perf/builtin-lock.c
> index b1200b7340a6..23a33ac15e68 100644
> --- a/tools/perf/builtin-lock.c
> +++ b/tools/perf/builtin-lock.c
> @@ -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;
>
> base-commit: 9dde6cadb92b5670b23b97ec53091df0530ec38b
> --
> 2.36.1.255.ge46751e96f-goog

--

- Arnaldo