STRUCT PROG_ENTRY(9)
π struct prog_entry(9) π
okay so bestie, we're looking at struct prog_entry from the Kernel API Manual β it's literally one single entry in the filter program, and yes she is the main character of this little struct. no cap.
β¨ NAME β¨
struct prog_entry β a single entry in the filter program π
πΈ SYNOPSIS πΈ
struct prog_entry {
int target;
int when_to_branch;
struct filter_pred *pred;
};
like. look at her. three fields. flawless. π
π¦ Members π¦
targetβ the index you jump to on a branch (ngl, it's actually one minus the index β that's the whole vibe, don't come for me, that's literally what the manpage says π«Ά)when_to_branchβ the value of the result of the predicate that makes it do a branch. iykyk. β¨predβ the predicate to execute. that's it, that's the whole job, and she ate. π₯
π SEE ALSO π
lowkey obsessed with these, go read them:
- Kernel file
./kernel/trace/trace_events_filter.cupdate_preds(9) filter_parse_regex(9)create_filter(9)create_system_filter(9)
so that's the whole page, bestie β go forth and branch correctly π
fr fr this one came straight out of ./kernel/trace, dated October 2026, and it's serving struct prog_entry(9) realness. mwah π
π¦ 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