mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: [for-linus][PATCH 0/2] tracing: Minor updates for 6.4
Date: Wed, 03 May 2023 19:14:46 -0400	[thread overview]
Message-ID: <20230503231446.234385640@goodmis.org> (raw)


Minor updates:

- Make buffer_percent read/write. The buffer_percent file is how users can
  state how long to block on the tracing buffer depending on how much
  is in the buffer. When it hits the "buffer_percent" it will wake the
  task waiting on the buffer. For some reason it was set to read-only.
  This was not noticed because testing was done as root without SELinux,
  but with SELinux it will prevent even root to write to it without having
  CAP_DAC_OVERRIDE.

- The "touched_functions" was added this merge window, but one of the
  reasons for adding it was not implemented. That was to show what functions
  were not only touched, but had either a direct trampoline attached to
  it, or a kprobe or live kernel patching that can "hijack" the function
  to can a different function. The point is to know if there's functions
  in the kernel that may not be behaving as kernel code shows. This can
  be used for debugging. TODO: Add this information to kernel oops too.

Ondrej Mosnacek (1):
      tracing: Fix permissions for the buffer_percent file

Steven Rostedt (Google) (1):
      ftrace: Add MODIFIED flag to show if IPMODIFY or direct was attached

----
 Documentation/trace/ftrace.rst | 25 +++++++++++++++++++++++++
 include/linux/ftrace.h         |  4 +++-
 kernel/trace/ftrace.c          | 12 +++++++++---
 kernel/trace/trace.c           |  2 +-
 4 files changed, 38 insertions(+), 5 deletions(-)

             reply	other threads:[~2023-05-03 23:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-03 23:14 Steven Rostedt [this message]
2023-05-03 23:14 ` [for-linus][PATCH 1/2] tracing: Fix permissions for the buffer_percent file Steven Rostedt
2023-05-03 23:14 ` [for-linus][PATCH 2/2] ftrace: Add MODIFIED flag to show if IPMODIFY or direct was attached Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230503231446.234385640@goodmis.org \
    --to=rostedt@goodmis.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mhiramat@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®