]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf data: Clean up use_stdio and structures
authorIan Rogers <irogers@google.com>
Wed, 8 Apr 2026 20:38:58 +0000 (13:38 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 9 Apr 2026 02:21:17 +0000 (19:21 -0700)
commit80b549be27de0f11124c66eaeb5307c7b4582edd
treebb7b57a3692264e98ada9d4366efc2ff326e6e38
parent19a9ed115fda95317c98bef0c716ea8412cd8ce0
perf data: Clean up use_stdio and structures

use_stdio was associated with struct perf_data and not perf_data_file
meaning there was implicit use of fd rather than fptr that may not be
safe. For example, in perf_data_file__write. Reorganize perf_data_file
to better abstract use_stdio, add kernel-doc and more consistently use
perf_data__ accessors so that use_stdio is better respected.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-inject.c
tools/perf/builtin-record.c
tools/perf/tests/topology.c
tools/perf/util/data.c
tools/perf/util/data.h
tools/perf/util/session.c