perf_data_convert
Convert Linux perf.data to JSON or CTF format for external analysis. Export profiling data with options to include all events or wall-clock timestamps.
Instructions
Convert perf.data to JSON or CTF (Common Trace Format).
Use this to export data for processing in external tools.
Key parameters:
to_json: output JSON file path (e.g. '/tmp/perf.json').
to_ctf: output CTF directory path.
all: include all events, not just samples.
tod: convert timestamps to wall-clock time.
Exactly one of to_json or to_ctf must be specified. Output: returns the output file/directory path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Convert all events | |
| tod | No | Convert timestamps to wall clock time | |
| time | No | Time span to convert | |
| force | No | Don't complain, do it | |
| input | Yes | Path to perf.data file | |
| to_ctf | No | Convert to CTF format, specify output directory | |
| to_json | No | Convert to JSON format, specify output file path | |
| verbose | No | Verbosity level (0-2) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |