pseudo_lock_measure_cycles(9)
π pseudo_lock_measure_cycles(9) β like, the whole kernel API manual vibe π
okay so bestie, welcome to pseudo_lock_measure_cycles(9), straight outta the Kernel API Manual β¨ grab a strawberry drink π and let's get into it, because this one is honestly kinda iconic.
β¨ NAME β¨
pseudo_lock_measure_cycles β trigger latency measure to pseudo-locked region π¦
like, it literally goes and measures the latency for you. main character energy fr fr.
πΈ SYNOPSIS πΈ
int pseudo_lock_measure_cycles (struct rdtgroup *rdtgrp , int sel );
that's it, that's the whole signature, look at her go π
π ARGUMENTS π
rdtgrpβ the resource group to which the pseudo-locked region belongs. like, whose region are we even measuring here, ykwim? πselβ the selector of which measurement to perform on a pseudo-locked region. yes bestie, you get to pick which measurement, so choose wisely π«Ά
π DESCRIPTION π
okay so here's the tea β β the measurement of latency to access a pseudo-locked region should be done from a cpu that is associated with that pseudo-locked region. no cap, that's just how it is.
so what happens is: it determines which cpu is associated with this region, and then it starts a thread on that cpu to perform the measurement π and then it waits for that thread to complete. patient queen behavior honestly π
β RETURN β
0on success π<0on failure π
π₯ SEE ALSO π₯
kernel file ./fs/resctrl/pseudo_lock.c plus the whole friend group:
pseudo_lock_minor_get(9)pseudo_lock_minor_release(9)region_find_by_minor(9)struct pseudo_lock_pm_req(9)pseudo_lock_cstates_constrain(9)pseudo_lock_region_clear(9)pseudo_lock_region_init(9)pseudo_lock_init(9)pseudo_lock_region_alloc(9)pseudo_lock_free(9)rdtgroup_monitor_in_progress(9)rdtgroup_locksetup_user_restrict(9)rdtgroup_locksetup_user_restore(9)rdtgroup_locksetup_enter(9)rdtgroup_locksetup_exit(9)rdtgroup_cbm_overlaps_pseudo_locked(9)rdtgroup_pseudo_locked_in_hierarchy(9)rdtgroup_pseudo_lock_create(9)rdtgroup_pseudo_lock_remove(9)
and that's the whole page bestie, ily, go measure some cycles πβ¨
source:./fs/resctrlΒ· October 2026 Β·pseudo_lock_measure_cycles(9)β 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