Skip to content

Commit

Permalink
libperf event: Ensure tracing data is multiple of 8 sized
Browse files Browse the repository at this point in the history
Perf's synthetic-events.c will ensure 8-byte alignment of tracing
data, writing it after a perf_record_header_tracing_data event. Add
padding to struct perf_record_header_tracing_data to make it 16-byte
rather than 12-byte sized.
  • Loading branch information
captain5050 committed Dec 13, 2024
1 parent a5eaff8 commit 0cb8ecc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/lib/perf/include/perf/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ struct perf_record_header_event_type {
struct perf_record_header_tracing_data {
struct perf_event_header header;
__u32 size;
__u32 pad;
};

#define PERF_RECORD_MISC_BUILD_ID_SIZE (1 << 15)
Expand Down

0 comments on commit 0cb8ecc

Please sign in to comment.