STRUCT PERF_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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's NULL, 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