traceprobe_parse_event_name(9)
β¨ traceprobe_parse_event_name(9) β¨
okay so bestie, welcome to the kernel API manual page for traceprobe_parse_event_name(9) β yes that's the whole title, it's giving "function so important it gets its own little paper" π
πΈ NAME πΈ
traceprobe_parse_event_name β parses a string into group and event names π
π¦ SYNOPSIS π¦
int traceprobe_parse_event_name (const char **pevent , const char
**pgroup , char *buf , int offset );
π ARGUMENTS π
peventβ a pointer to the string that's gonna get parsed, the main character of this whole operation β¨pgroupβ a pointer to the group name π«Άbufβ a buffer where we stash the parsed group name πoffsetβ the offset of the string in the original user command, and it's literally only there for logging purposes, no cap π
π₯ DESCRIPTION π₯
so what this does is it parses a string that's formatted like [GROUP/][EVENT] or [GROUP.][EVENT] β and heads up bestie, either GROUP or EVENT or both must be specified, you can't just roll up with nothing π
because the parsed group name gets stored in buf, the caller has to make sure buf is at least MAX_EVENT_NAME_LEN bytes. that's on you, not on this function, so likeβ¦ don't skip the vibe check on your buffer size π
if it succeeds, *pevent gets updated to point to the event name part of the original string, or NULL if there's no event name. also, *pgroup gets updated to point to the parsed group, which is the one stored in buf, or NULL if there's no group name. slay π
β RETURN β
0 on success, or -EINVAL on failure π
π SEE ALSO π
Kernel file ./kernel/trace/trace_probe.c β go read it, iykyk π
and that's the page fr fr π§ from ./kernel/trace, the October 2026 edition β mwah, go parse some event names bestie π
ππΈ
π¦ 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