Message ID | 20250410220439.14b81af3@gandalf.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | 4668195fe0312fb0282399b7e7f5b4ae14d34762 |
Headers | show |
Series | tracefs: Handle synthetic events with dynamic strings as fields | expand |
diff --git a/src/tracefs-hist.c b/src/tracefs-hist.c index bfbcd65..d67f8eb 100644 --- a/src/tracefs-hist.c +++ b/src/tracefs-hist.c @@ -1068,6 +1068,9 @@ static int alloc_synthetic_event(struct tracefs_synth *synth) for (i = 0; synth->synthetic_fields && synth->synthetic_fields[i]; i++) { field = synth->synthetic_fields[i]; + /* Strip off __data_loc */ + if (!strncmp(field, "__data_loc ", sizeof("__data_loc ") - 1)) + field += sizeof("__data_loc ") - 1; format = tfs_append_string(format, i ? " " : NULL, field); }