test__parse_...ample_id_all(9)
π 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 upsubtestβ 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 π₯
0on success π slay-1if 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
- 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