OSDN Git Service

perf record: Set PERF_FORMAT_LOST by default
authorNamhyung Kim <namhyung@kernel.org>
Thu, 1 Sep 2022 19:57:36 +0000 (12:57 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 4 Oct 2022 11:55:20 +0000 (08:55 -0300)
commite17f343c3ba1b317574a4218c631547bb09e72bf
tree59a83fea5a7e1cb4d55003e0df176bbf7b84ad4a
parenta8d68cc45799dc7bc8065fd7bb2405335f7d4fa6
perf record: Set PERF_FORMAT_LOST by default

As we want to see the number of lost samples in the perf report, set the
LOST format when it configs evsel.  On old kernels, it'd fallback to
disable it.

Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220901195739.668604-3-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c
tools/perf/util/evsel.h