1PT_ISCACHE_SET_LIMIT(3)                                PT_ISCACHE_SET_LIMIT(3)
2
3
4

NAME

6       pt_iscache_set_limit - set the mapped image section cache limit
7

SYNOPSIS

9       #include <intel-pt.h>
10       int pt_iscache_set_limit(struct pt_image_section_cache *iscache,
11                                uint64_t limit);
12
13       Link with -lipt.
14

DESCRIPTION

16       pt_iscache_set_limit()  sets the mapped image section cache limit.  The
17       iscache argument points to the pt_image_section_cache object.  The lim‐
18       it argument gives the limit in bytes.
19
20       The  image  section  cache will spend at most limit bytes to keep image
21       sections mapped as opposed to mapping and unmapping them  when  reading
22       from them.  This includes the memory for any caches associated with the
23       mapped section.
24
25       A limit of zero disables caching and clears the cache.
26

RETURN VALUE

28       pt_iscache_set_limit() returns zero on success  or  a  negative  pt_er‐
29       ror_code enumeration constant in case of an error.
30

ERRORS

32       pte_invalid
33              The iscache argument is NULL.
34

SEE ALSO

36       pt_iscache_alloc(3), pt_iscache_free(3), pt_iscache_read(3)
37
38
39
40                                                       PT_ISCACHE_SET_LIMIT(3)
Impressum