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(-)