test__parse_...ample_id_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… test__parse_no_sample_id_all β€” the manual, but make it cute

okay so real talk, this is a page from the Kernel API Manual (section 9, if you're keeping score πŸŽ€) and it's about one very specific little test function. let's get into it bestie


✨ NAME ✨

test__parse_no_sample_id_all β€” the test that checks parsing works when the sample_id_all bit is not set. that's it, that's the whole vibe πŸ¦‹


🌸 SYNOPSIS 🌸

int test__parse_no_sample_id_all (struct test_suite *test , int subtest );

🫢 ARGUMENTS 🫢

  • test β€” -- undescribed -- 😭 yeah the original literally just says that, no cap, i'm not gonna make something up
  • subtest β€” also -- undescribed -- πŸ™ˆ same energy
ngl the manpage itself left these blank so we're all just out here living the mystery ✨

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea β˜• β€” this function tests parsing of data that was produced on kernels that do not support the sample_id_all bit.

without that sample_id_all bit, non-sample events (think mmap events, the lowkey background characters of the event world) do not have an id sample appended to them. and because of that, any logic designed to figure out the id will not work. literally just won't. πŸ’€

that exact case happens when there's more than one selected event, so this test processes three events:

  • 2 attributes representing the selected events πŸŽ€
  • 1 mmap event 🌈

three events, one test, main character energy fr fr ✨


πŸ”₯ RETURN πŸ”₯

  • 0 on success πŸŽ‰ slay
  • -1 if the test fails 😭 rip

🧚 SEE ALSO 🧚

  • Kernel file ./tools/perf/tests/parse-no-sample-id-all.c β€” go read the source bestie, it's right there πŸ’œ

and that's the whole page!! this one comes to you from ./tools/perf/tests, dated October 2026 β€” so it's fresh off the press, periodt πŸ’…βœ¨ πŸ¦‹

πŸ“¦ where this page comes from