]> git.baikalelectronics.ru Git - kernel.git/commit
Merge tag 'trace-v5.12-rc5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rosted...
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Apr 2021 15:39:00 +0000 (08:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Apr 2021 15:39:00 +0000 (08:39 -0700)
commitc651c0783930817cafca172b7f6fa35368ce27f1
treee22acb05830c78538a5b98589a6de4c118df4536
parent2f11b792130365a47c51da4f20cbd6e09ec73d0d
parent2ffbab00bfcb9cee76ff5f08250646f2b87ec3a5
Merge tag 'trace-v5.12-rc5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace

Pull tracing fix from Steven Rostedt:
 "Fix stack trace entry size to stop showing garbage

  The macro that creates both the structure and the format displayed to
  user space for the stack trace event was changed a while ago to fix
  the parsing by user space tooling. But this change also modified the
  structure used to store the stack trace event. It changed the caller
  array field from [0] to [8].

  Even though the size in the ring buffer is dynamic and can be
  something other than 8 (user space knows how to handle this), the 8
  extra words was not accounted for when reserving the event on the ring
  buffer, and added 8 more entries, due to the calculation of
  "sizeof(*entry) + nr_entries * sizeof(long)", as the sizeof(*entry)
  now contains 8 entries.

  The size of the caller field needs to be subtracted from the size of
  the entry to create the correct allocation size"

* tag 'trace-v5.12-rc5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
  tracing: Fix stack trace event size