1PERF-BUILDID-CACHE(1) perf Manual PERF-BUILDID-CACHE(1)
2
3
4
6 perf-buildid-cache - Manage build-id cache.
7
9 perf buildid-cache <options>
10
12 This command manages the build-id cache. It can add, remove, update and
13 purge files to/from the cache. In the future it should as well set
14 upper limits for the space used by the cache, etc. This also scans the
15 target binary for SDT (Statically Defined Tracing) and record it along
16 with the buildid-cache, which will be used by perf-probe. For more
17 details, see perf-probe(1).
18
20 -a, --add=
21 Add specified file to the cache.
22
23 -f, --force
24 Don’t complain, do it.
25
26 -k, --kcore
27 Add specified kcore file to the cache. For the current host that is
28 /proc/kcore which requires root permissions to read. Be aware that
29 running perf buildid-cache as root may update root’s build-id cache
30 not the user’s. Use the -v option to see where the file is created.
31 Note that the copied file contains only code sections not the whole
32 core image. Note also that files "kallsyms" and "modules" must also
33 be in the same directory and are also copied. All 3 files are
34 created with read permissions for root only. kcore will not be
35 added if there is already a kcore in the cache (with the same
36 build-id) that has the same modules at the same addresses. Use the
37 -v option to see if a copy of kcore is actually made.
38
39 -r, --remove=
40 Remove a cached binary which has same build-id of specified file
41 from the cache.
42
43 -p, --purge=
44 Purge all cached binaries including older caches which have
45 specified path from the cache.
46
47 -P, --purge-all
48 Purge all cached binaries. This will flush out entire cache.
49
50 -M, --missing=
51 List missing build ids in the cache for the specified file.
52
53 -u, --update=
54 Update specified file of the cache. Note that this doesn’t remove
55 older entires since those may be still needed for annotating old
56 (or remote) perf.data. Only if there is already a cache which has
57 exactly same build-id, that is replaced by new one. It can be used
58 to update kallsyms and kernel dso to vmlinux in order to support
59 annotation.
60
61 -l, --list
62 List all valid binaries from cache.
63
64 -v, --verbose
65 Be more verbose.
66
67 --target-ns=PID: Obtain mount namespace information from the target
68 pid. This is used when creating a uprobe for a process that resides in
69 a different mount namespace from the perf(1) utility.
70
72 perf-record(1), perf-report(1), perf-buildid-list(1)
73
74
75
76perf 03/30/2021 PERF-BUILDID-CACHE(1)