STRUCT PERF_DATA(9)
π NAME π
okay so bestie, welcome to struct perf_data(9) from the Kernel API Manual β and it's literally just a wrapper around a file used for perf.data reading or writing. that's the vibe. periodt. π
β¨ SYNOPSIS β¨
struct perf_data {
const char *path;
struct perf_data_file file;
bool open;
bool is_pipe;
bool is_dir;
bool force;
bool in_place_update;
enum perf_data_mode mode:8;
struct {
u64 version;
struct perf_data_file *files;
int nr;
} dir;
};
π«Ά Members π«Ά
pathβ the path to open and of the file. if it'sNULL, that implies'perf.data'will be used. πfileβ the underlying file to be used. slay.openβ has the file or directory been opened. yes/no energy.is_pipeβ the underlying file is a pipe. iconic little tube situation.is_dirβ the underlying file is a directory. it's giving folder.forceβ ignore opening a file that was created by a different user. bold move, ngl.in_place_updateβ a file opened for reading but will be written to. the plot twist π₯modeβ read or write mode. pick your main character era.
π SEE ALSO π
- Kernel file
./tools/perf/util/data.h struct perf_data_file(9)
xoxo, your unix bestie π
β from ./tools/perf/util, dated October 2026 β¨π¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms