diff options
author | Mikhail Lappo <[email protected]> | 2024-04-29 16:01:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-05-04 18:57:21 +0200 |
commit | 3c720592908014979873b7611333300641263d2d (patch) | |
tree | 3f2ddc77131e786f2f43ae81cd44881843b22975 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ee27f44e1592d849cb90b1f1c38cae0c7e32defa (diff) |
stm class: sys-t: Improve ftrace source handling
Package messages from ftrace source with SyS-T Structured Binary Data
(later SBD) header and 64-bit ID. This provides modification-free
compatibility between ftrace and SyS-T arguments structure by applying
0xFFFF mask on message ID.
This happens due to the fact that SBD and ftrace structures have the
same principle of data storage: <header><args binary blob>.
The headers are bit-to-bit compatible and both contain event/catalog ID
with the exception, that ftrace header contains more fields within 64
bits which needs to be masked during encoding process, since SBD
standard doesn't support mask of ID field.
0 15 16 23 24 31 32 39 40 63
ftrace: <event_id> <flags> <preempt> <-pid-> <---->
SBD: <------- msg_id ------------------------------>
Signed-off-by: Mikhail Lappo <[email protected]>
Signed-off-by: Alexander Shishkin <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions