PT_ISCACHE_SET_LIMIT(3)
β¨ PT_ISCACHE_SET_LIMIT β bestie edition β¨
okay so this is pt_iscache_set_limit(3), and it's literally the "how much RAM are we letting the cache eat" button for the Intel PT image section cache. yes queen, we're doing memory budgeting today π
πΈ NAME πΈ
pt_iscache_set_limit β set the mapped image section cache limit π
π¦ SYNOPSIS π¦
#include <intel-pt.h>
int pt_iscache_set_limit(struct pt_image_section_cache *iscache,
uint64_t limit);
Link with -lipt. don't forget it or it's giving undefined reference energy π
π DESCRIPTION π
pt_iscache_set_limit() sets the mapped image section cache limit, periodt. so here's the tea:
- the
iscacheargument points to thept_image_section_cacheobject β that's your girl, the thing we're configuring π«Ά - the
limitargument gives the limit in bytes
and here's the actual vibe: the image section cache will spend at most limit bytes to keep image sections mapped, instead of mapping and unmapping them every single time it reads from them. no cap, that's the whole tradeoff β keep stuff mapped and cozy, or churn through map/unmap like it's got somewhere to be.
and the receipts include the memory for any caches associated with the mapped section too, so like, the number you give it is the real total, not just the section bytes π
π¨ and listen: a limit of zero disables caching and clears the cache. zero is not "unlimited", bestie, zero is "we're done here, pack it up" π
π RETURN VALUE π
pt_iscache_set_limit() returns zero on success, or a negative pt_error_code enumeration constant in case of an error. negative = bad vibes, zero = slay β¨
π ERRORS π
pte_invalidβ theiscacheargument isNULL. girl. you passed nothing. π
π§ SEE ALSO π§
and that's the whole page, fr fr β PT_ISCACHE_SET_LIMIT(3), the manual name herself, signing off π go set that limit and go be iconic π
π¦ where this page comes from
- fedora 43: libipt-devel 2.1.2-3.fc43 Β· BSD-3-Clause
- fedora 43: libipt-devel 2.1.2-3.fc43 Β· BSD-3-Clause
- fedora 44: libipt-devel 2.1.2-4.fc44 Β· BSD-3-Clause
- fedora 44: libipt-devel 2.1.2-4.fc44 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms