diff options
author | Ian Rogers <irogers@google.com> | 2024-06-11 07:06:26 +0200 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-06-14 05:45:31 +0200 |
commit | 6c1785cd75ef55a308701813330a162002ffe192 (patch) | |
tree | b3c831a422bc3645aacbfce00a6a7b2fc4b60743 /rust/kernel/str.rs | |
parent | perf evsel: Refactor tool events (diff) | |
download | linux-6c1785cd75ef55a308701813330a162002ffe192.tar.xz linux-6c1785cd75ef55a308701813330a162002ffe192.zip |
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
Diffstat (limited to 'rust/kernel/str.rs')
0 files changed, 0 insertions, 0 deletions