diff options
author | Sven Schnelle <svens@linux.ibm.com> | 2023-08-16 17:49:26 +0200 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2023-08-16 16:33:27 -0400 |
commit | ddeea494a16f32522bce16ee65f191d05d4b8282 (patch) | |
tree | 2de190925a4e1eb0b4cac6bc6d9f7746f74f8fca /scripts/gdb/linux/utils.py | |
parent | 5450be6befc63670f2c05aa6773a8e437b39a3fe (diff) |
tracing/synthetic: Use union instead of casts
The current code uses a lot of casts to access the fields member in struct
synth_trace_events with different sizes. This makes the code hard to
read, and had already introduced an endianness bug. Use a union and struct
instead.
Link: https://lkml.kernel.org/r/20230816154928.4171614-2-svens@linux.ibm.com
Cc: stable@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Fixes: 00cf3d672a9dd ("tracing: Allow synthetic events to pass around stacktraces")
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions