diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-05-20 14:26:53 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-08-11 14:29:29 -0400 |
commit | c3854239cac08bff9c5c157aeecb450e8285a998 (patch) | |
tree | 42cd54a5b960cc17e0b2f64dce7e21f4201b8cac /lib/mpi/mpiutil.c | |
parent | 8c46a61731ca1cce903e36c354eb56381cf35a42 (diff) |
tracing: Convert to printbuf
This converts the seq_bufs in dynevent_cmd and trace_seq to printbufs.
- read_pos in seq_buf doesn't exist in printbuf, so is added to
trace_seq
- seq_buf_to_user doesn't have a printbuf equivalent, so is inlined
into trace_seq_to_user
- seq_buf_putmem_hex currently swabs bytes on little endian, hardcoded
to 8 byte units. This patch switches it to prt_hex_bytes(), which
does _not_ swab.
Otherwise this is largely a direct conversion, with a few slight
refactorings and cleanups.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@redhat.com>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions