[RFC PATCH 0/7] libperf: Add overflow detection of sampling events
From: Shunsuke
Date: Fri Feb 25 2022 - 05:36:12 EST
From: Shunsuke Nakamura <nakamura.shun@xxxxxxxxxxx>
This patch series adds sampling event overflow detection capability
to libperf.
First patch fixes a typo in the error message that I noticed.
Second patch adds a interface to set PERF_FLAG_FD_CLOEXEC
Third patch adds a interface to perform IOC_REFRESH and IOC_PERIOD.
Fourth patch adds a interface to set the signal handler.
Fifth patch adds a interface to detect overflowed events.
Sixth and seventh patch adds tests.
Shunsuke Nakamura (7):
libperf tests: Fix typo in the error message "evsel" -> "evlist"
libperf: Add perf_evsel__set_close_on_exec() function
libperf: Add perf_evsel__refresh()/period() functions
libperf: Add perf_evsel__set_signal() functions
libperf: Add perf_evsel__check_fd() functions
libperf test: Add test_stat_overflow()
libperf test: Add test_detect_overflow_event()
tools/lib/perf/Documentation/libperf.txt | 12 ++
tools/lib/perf/evsel.c | 215 ++++++++++++++++++++++-
tools/lib/perf/include/internal/evsel.h | 2 +
tools/lib/perf/include/perf/evsel.h | 14 ++
tools/lib/perf/libperf.map | 9 +
tools/lib/perf/tests/test-evlist.c | 127 ++++++++++++-
tools/lib/perf/tests/test-evsel.c | 110 ++++++++++++
tools/perf/util/evsel.c | 16 +-
tools/perf/util/evsel.h | 1 -
9 files changed, 487 insertions(+), 19 deletions(-)
--
2.31.1