summaryrefslogtreecommitdiff
path: root/tools/perf/util/events_stats.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2022-09-01 12:57:38 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-10-04 08:55:20 -0300
commit75b37db096e30b12f1de88052a19b1a3fff62b5e (patch)
tree84957dbba999eccc777d799f2a31475788780b47 /tools/perf/util/events_stats.h
parente3a23261ad06d5986dce0f17a2cfb4d22d493385 (diff)
downloadlwn-75b37db096e30b12f1de88052a19b1a3fff62b5e.tar.gz
lwn-75b37db096e30b12f1de88052a19b1a3fff62b5e.zip
perf hist: Add nr_lost_samples to hist_stats
This is a preparation to display accurate lost sample counts for each evsel. 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-5-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/events_stats.h')
-rw-r--r--tools/perf/util/events_stats.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/events_stats.h b/tools/perf/util/events_stats.h
index 040ab9d0a803..8fecc9fbaecc 100644
--- a/tools/perf/util/events_stats.h
+++ b/tools/perf/util/events_stats.h
@@ -47,6 +47,7 @@ struct hists_stats {
u64 total_non_filtered_period;
u32 nr_samples;
u32 nr_non_filtered_samples;
+ u32 nr_lost_samples;
};
void events_stats__inc(struct events_stats *stats, u32 type);