test__perf_time_to_tsc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ test__perf_time_to_tsc(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’– this one's a little tiny baby page from test__perf_time_to_tsc(9) and honestly it's giving "short but crucial" energy. let's get into it 🫢


πŸ’… NAME πŸ’…

test__perf_time_to_tsc β€” literally just a test for converting perf time to TSC 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

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

like, that's the whole signature, copy it exactly please, no cap πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • test β€” undescribed πŸ™ˆ the manpage literally says -- undescribed --, so we're not gonna invent lore, okay?
  • subtest β€” undescribed 😭 same situation, iconically undescribed, we respect it
ngl bestie, both of these are marked -- undescribed -- in the source page and we are NOT gonna make stuff up πŸ’€

πŸ‘‘ DESCRIPTION πŸ‘‘

so this function πŸ‘ implements πŸ‘ a πŸ‘ test πŸ‘ β€” and what it checks is that the conversion of perf time to and from TSC stays consistent with the order of events ⭐ like, the timeline has to actually make sense, that's the vibe check.

  • if the test passes, 0 is returned ✨
  • otherwise, -1 is returned πŸ’€

and here's the lil plot twist πŸ“: if TSC conversion is not supported, the test still passes, but the string " (not supported)" gets printed. so like, it's fine, but it's telling on itself fr fr πŸ™ˆ


🌈 SEE ALSO 🌈

  • Kernel file ./tools/perf/tests/perf-time-to-tsc.c πŸ¦‹ β€” go read the source, iykyk πŸ’œ

aaaaand that's the whole page bestie, short and sweet, main character energy only πŸ’…βœ¨ sources say this one lives under ./tools/perf/tests and it's dated October 2026 β€” so yeah, that's the version tea, mwah πŸŽ€πŸ’–πŸ«Ά

πŸ“¦ where this page comes from