• Namhyung Kim's avatar
    perf record: Add --synth option · 41b740b6
    Namhyung Kim authored
    Add an option to control the synthesizing behavior.
    
        --synth <no|all|task|mmap|cgroup>
                          Fine-tune event synthesis: default=all
    
    This can be useful when we know it doesn't need some synthesis like
    in a specific usecase and/or when using pipe:
    
      $ perf record -a --all-cgroups --synth cgroup -o- sleep 1 | \
      > perf report -i- -s cgroup
    
    Committer notes:
    
    Added a clarification to the man page entry for --synth that this is
    about pre-existing threads.
    Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Acked-by: default avatarJiri Olsa <jolsa@redhat.com>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Jin Yao <yao.jin@linux.intel.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Link: https //lore.kernel.org/r/20210811044658.1313391-2-namhyung@kernel.org
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    41b740b6
builtin-record.c 78.2 KB