Skip to content

tracing: More fixes for v6.15

Steven Rostedt lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2scripts/sorttable: Fix endianness handling in build-time mcount sortscripts/sorttable.c+1 -10 replies
2/2Fix missing unlock on double nested monitors return pathkernel/trace/rv/rv.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [for-linus][PATCH 0/2] tracing: More fixes for v6.15

More tracing fixes for 6.15

- Fix mcount sorttable building for different endian type target

When modifying the ELF file to sort the mcount_loc table in the sorttable.c code, the endianess of the file and the host is used to determine if the bytes need to be swapped when calculations are done. A change was made to the sorting of the mcount_loc that read the values from the ELF file into an array and the swap happened on the filling of the array. But one of the calculations of the array still did the swap when it did not need to. This caused building on a little endian machine for a big endian target to not find the mcount function in the 'nm' table and it zeroed it out, causing there to be no functions available to trace.

- Add goto out_unlock jump to rv_register_monitor() on error path

One of the error paths in rv_register_monitor() just returned the error when it should have jumped to the out_unlock label to release the mutex.

git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
trace/fixes

Head SHA1: fc0585c7faa9fffa0ecdd6e2466e3293cd3239ac

Gabriele Monaco (1):
rv: Fix missing unlock on double nested monitors return path

Vasily Gorbik (1):
scripts/sorttable: Fix endianness handling in build-time mcount sort

----

 kernel/trace/rv/rv.c | 3 ++-
 scripts/sorttable.c  | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)