create_system_filter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

Hiii bestie πŸ’– this is create_system_filter(9) from the Kernel API Manual, and it does exactly one iconic thing: create a filter for an event subsystem. Slay.


✨ SYNOPSIS ✨

       int create_system_filter (struct trace_subsystem_dir *dir , char
       *filter_str , struct event_filter **filterp );

🫢 ARGUMENTS 🫢

  • dir β€” the descriptor for the subsystem directory. It's giving "where the subsystem lives" energy πŸ—‚οΈ
  • filter_str β€” the filter string. The actual filter text, no cap ✨
  • filterp β€” out param for the created filter, and it is always updated on return. Periodt. πŸ’…

πŸ’… DESCRIPTION πŸ’…

Okay so listen πŸ‘€ β€” create_system_filter is identical to create_filter except that it creates a subsystem filter and always remembers filter_str. That's the whole vibe. Lowkey simple, highkey important. πŸ¦‹

Bestie heads up: filterp is an out param, and it's always updated on return β€” not sometimes, not maybe, always. πŸ’–

🌈 SEE ALSO 🌈

  • Kernel file ./kernel/trace/trace_events_filter.c β€” that's the kernel file, iykyk 🧚
  • struct prog_entry(9) β€” related page, go look πŸ‘‘
  • update_preds(9) β€” related page, bestie πŸ”₯
  • filter_parse_regex(9) β€” related page, literally 🌸
  • create_filter(9) β€” the sibling function this one is identical to (except for the subsystem-filter + always-remembers-filter_str part) 😭

Made with πŸ’– from the ./kernel/trace source/version corner, dated October 2026, on the create_system_filter(9) page β€” byeee bestie, go filter something cute πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from