update_preds(9)
πΈ update_preds β assign a program entry a label target πΈ
okay so bestie, this is update_preds(9) from the Kernel API Manual, and it's lowkey iconic kernel-internals business. no cap, it's all about poking a program entry and sorting out its label target. π
β¨ NAME β¨
update_preds β assign a program entry a label target
π SYNOPSIS π
void update_preds (struct prog_entry *prog , int N , int invert );
π«Ά ARGUMENTS π«Ά
progβ the program array, aka the whole lineup of entries we're working with.Nβ the index of the current entry inprog.invertβ what to assign a program entry for its branch condition.
π DESCRIPTION π
okay so picture this: the program entry at index N has a target that points to the index of a program entry that can have its target and when_to_branch fields updated. update_preds() updates the current program entry denoted by index N so its target field becomes that of the updated entry. this is the bit that will denote the entry to update if we are processing an "||" after an "&&". periodt. β¨
π¦ SEE ALSO π¦
- Kernel file
./kernel/trace/trace_events_filter.c struct prog_entry(9)filter_parse_regex(9)create_filter(9)create_system_filter(9)
kisses, bestie π this whole vibe lives under ./kernel/trace, and it's dated October 2026 β the page is update_preds(9), and yes, she ate. ππ
π¦ 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