summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorChangbin Du <changbin.du@huawei.com>2026-03-09 17:44:12 +0000
committerNamhyung Kim <namhyung@kernel.org>2026-03-10 23:13:30 -0700
commitf182573e06abb635f320b0fd0e60972c4c2467c5 (patch)
treed5c1ea33d3b9d933b84e5026150a577774d5d14e /tools/perf/scripts/python/export-to-postgresql.py
parent86ff690f45cc034ab32246630b3c7d7a46d1ae6b (diff)
perf tools: Add layout support for --symfs option
Add support for parsing an optional layout parameter in the --symfs command line option. The format is: --symfs <directory[,layout]> Where layout can be: - 'hierarchy': matches full path (default) - 'flat': only matches base name When debugging symbol files from a copy of the filesystem (e.g., from a container or remote machine), the debug files are often stored in a flat directory structure with only filenames, not the full original paths. In this case, using 'flat' layout allows perf to find debug symbols by matching only the filename rather than the full path. For example, given a binary path like: /build/output/lib/foo.so With 'perf report --symfs /debug/files,flat', perf will look for: /debug/files/foo.so Instead of: /debug/files/build/output/lib/foo.so This is particularly useful when: - Extracting debug files from containers with different directory layouts - Working with build systems that flatten directory structures Signed-off-by: Changbin Du <changbin.du@huawei.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions