1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/lib/perf/include/perf
Ian Rogers 6c1785cd75 perf record: Ensure space for lost samples
Previous allocation didn't account for sample ID written after the
lost samples event. Switch from malloc/free to a stack allocation.

Reported-by: Milian Wolff <milian.wolff@kdab.com>
Closes: https://lore.kernel.org/linux-perf-users/23879991.0LEYPuXRzz@milian-workstation/
Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240611050626.1223155-1-irogers@google.com
2024-06-13 20:45:31 -07:00
..
bpf_perf.h perf util: Move bpf_perf definitions to a libperf header 2021-04-29 10:30:58 -03:00
core.h libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
cpumap.h libperf cpumap: Add any, empty and min helpers 2024-03-21 10:41:28 -03:00
event.h perf record: Ensure space for lost samples 2024-06-13 20:45:31 -07:00
evlist.h perf evlist: Remove nr_groups 2023-03-13 17:42:27 -03:00
evsel.h libperf: Handle read format in perf_evsel__read() 2022-08-19 15:56:27 -03:00
mmap.h libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
threadmap.h libperf: Add API for allocating new thread map array 2022-02-23 14:40:23 -03:00