Path: blob/master/tools/perf/Documentation/perf-buildid-cache.txt
26282 views
perf-buildid-cache(1)1=====================23NAME4----5perf-buildid-cache - Manage build-id cache.67SYNOPSIS8--------9[verse]10'perf buildid-cache <options>'1112DESCRIPTION13-----------14This command manages the build-id cache. It can add, remove, update and purge15files to/from the cache. In the future it should as well set upper limits for16the space used by the cache, etc.17This also scans the target binary for SDT (Statically Defined Tracing) and18record it along with the buildid-cache, which will be used by perf-probe.19For more details, see linkperf:perf-probe[1].2021OPTIONS22-------23-a::24--add=::25Add specified file to the cache.26-f::27--force::28Don't complain, do it.29-k::30--kcore::31Add specified kcore file to the cache. For the current host that is32/proc/kcore which requires root permissions to read. Be aware that33running 'perf buildid-cache' as root may update root's build-id cache34not the user's. Use the -v option to see where the file is created.35Note that the copied file contains only code sections not the whole core36image. Note also that files "kallsyms" and "modules" must also be in the37same directory and are also copied. All 3 files are created with read38permissions for root only. kcore will not be added if there is already a39kcore in the cache (with the same build-id) that has the same modules at40the same addresses. Use the -v option to see if a copy of kcore is41actually made.42-r::43--remove=::44Remove a cached binary which has same build-id of specified file45from the cache.46-p::47--purge=::48Purge all cached binaries including older caches which have specified49path from the cache.50-P::51--purge-all::52Purge all cached binaries. This will flush out entire cache.53-M::54--missing=::55List missing build ids in the cache for the specified file.56-u::57--update=::58Update specified file of the cache. Note that this doesn't remove59older entries since those may be still needed for annotating old60(or remote) perf.data. Only if there is already a cache which has61exactly same build-id, that is replaced by new one. It can be used62to update kallsyms and kernel dso to vmlinux in order to support63annotation.64-l::65--list::66List all valid binaries from cache.67-v::68--verbose::69Be more verbose.7071--target-ns=PID:72Obtain mount namespace information from the target pid. This is73used when creating a uprobe for a process that resides in a74different mount namespace from the perf(1) utility.7576--debuginfod[=URLs]::77Specify debuginfod URL to be used when retrieving perf.data binaries,78it follows the same syntax as the DEBUGINFOD_URLS variable, like:7980buildid-cache.debuginfod=http://192.168.122.174:80028182If the URLs is not specified, the value of DEBUGINFOD_URLS83system environment variable is used.8485SEE ALSO86--------87linkperf:perf-record[1], linkperf:perf-report[1], linkperf:perf-buildid-list[1]888990