]> git.baikalelectronics.ru Git - kernel.git/commit
Merge tag 'trace-v5.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 6 May 2021 17:03:38 +0000 (10:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 6 May 2021 17:03:38 +0000 (10:03 -0700)
commit6f27eb9890f7da1c51d66524ca268d4d08ab28d2
tree81dde0c8bb1d9333e8bc90cac473fd9a0c2a991c
parent61abf724c1e7d5b02f921d9d17e10e3decf576e7
parente01cc86e9b127685e78583b593f1f418ab65187d
Merge tag 'trace-v5.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace

Pull tracing fix from Steven Rostedt:
 "Fix probes written to the set_ftrace_filter file

  Now that there's a library that accesses the tracefs file system
  (libtracefs), the way the files are interacted with is slightly
  different than the command line. For instance, the write() system call
  is used directly instead of an echo. This exposes some old bugs.

  If a probe is written to "set_ftrace_filter" without any white space
  after it, it will be ignored. This is because the write expects that a
  string written to it that does not end with white spaces thinks there
  is more to come. But if the file is closed, the release function needs
  to finish it. The "set_ftrace_filter" release function handles the
  filter part of the "set_ftrace_filter" file, but did not handle the
  probe part"

* tag 'trace-v5.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
  ftrace: Handle commands when closing set_ftrace_filter file
kernel/trace/ftrace.c