dm_test_perf...estamp_basic(9)
π dm_test_perf_trace_timestamp_basic β the Kernel API Manual, bestie edition β¨
okay so real talk, we're deep in the Kernel API Manual today and the star of the show is dm_test_perf_trace_timestamp_basic(9). she's a KUnit test, she's lowkey iconic, and she has one (1) job: prove that a thing doesn't explode. let's get into it π«Ά
β¨ NAME β¨
dm_test_perf_trace_timestamp_basic β Test Perf trace timestamp basic. that's literally the whole vibe. no cap. π
π¦ SYNOPSIS π¦
void dm_test_perf_trace_timestamp_basic (struct kunit *test );
that's it. that's the signature. void, no return, in and out, periodt. π
πΈ ARGUMENTS πΈ
testβ the KUnit test context π§ that's her little backstage pass, she needs it to know which test she's currently slaying.
π DESCRIPTION π
okay so here's the tea β β a tracepoint with no attached probe is a total no-op. it literally does nothing, it's giving "ghosted by the probe." π»
so this test is here to check that the function dereferences ctx->perf_trace safely and does not crash. that's the whole assignment. no crash = ate. π₯ if it crashes, wellβ¦ π we don't talk about that.
π SEE ALSO π
Kernel file β go read the source, iykyk:
./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_services_test.c
and now, the whole friend group of sibling tests, gathered for the group chat π:
dm_test_get_elapse_time_zero_delta(9)dm_test_get_elapse_time_positive_delta(9)dm_test_get_elapse_time_large_delta(9)dm_test_get_elapse_time_wraparound(9)dm_test_trace_smu_enter_null_ctx(9)dm_test_trace_smu_enter_with_params(9)dm_test_trace_smu_exit_success_null_ctx(9)dm_test_trace_smu_exit_failure_null_ctx(9)dm_test_trace_smu_exit_with_response(9)dm_test_query_brightness_caps_null_ctx(9)dm_test_query_brightness_caps_null_caps(9)dm_test_query_brightness_caps_null_driver_ctx(9)dm_test_query_brightness_caps_lcd2_null_ctx(9)dm_test_query_brightness_caps_lcd1_success(9)dm_test_query_brightness_caps_non_lcd1_uses_second_slot(9)
like, the way that list just keeps going?? main character energy from every single one of them honestly π
okay that's the whole page bestie, no filler, every single detail intact π go forth and crash nothing β¨
kisses, and remember β this page came to you from ./drivers/gpu/drm/amd/display/... with October 2026 as the date, and it's all about dm_test_perf...estamp_basic(9) forever and always π
π
π¦ 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