test__perf_time_to_tsc(9)
β¨ 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,
0is returned β¨ - otherwise,
-1is 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
- 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