Linux Trace Kernel
 help / color / mirror / Atom feed
From: Petr Pavlu <petr.pavlu@suse.com>
To: Steven Rostedt <rostedt@goodmis.org>,
	Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
	Tom Zanussi <zanussi@kernel.org>,
	linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org,
	Petr Pavlu <petr.pavlu@suse.com>
Subject: [PATCH v3 0/5] Clean up access to trace_event_file from a file struct
Date: Thu, 19 Feb 2026 17:27:00 +0100	[thread overview]
Message-ID: <20260219162737.314231-1-petr.pavlu@suse.com> (raw)

This series includes several patches related to accessing
trace_event_file from a file struct. The first two patches are fixes for
edge cases, the remaining patches are minor cleanups.

Changes since v2 [1]:
* Split the first patch related to hist event files into two: one that
  corrects the trace_event_file access method and another that ensures
  pollers are woken up when the watched event is removed.

Changes since v1 [2]:
* Fix a compilation error when CONFIG_HIST_TRIGGERS is not set.
* Drop a patch that references the trace_event_file data in
  event_file_data() and keep the simpler implementation of storing the
  id in i_private.
* Inline event_file_data() into event_id_read() to enable adding
  additional checks to the former.

[1] https://lore.kernel.org/linux-trace-kernel/20260216134247.1311631-1-petr.pavlu@suse.com/
[2] https://lore.kernel.org/linux-trace-kernel/20260210113427.1068932-1-petr.pavlu@suse.com/

Petr Pavlu (5):
  tracing: Fix checking of freed trace_event_file for hist files
  tracing: Wake up poll waiters for hist files when removing an event
  tracing: Remove unnecessary check for EVENT_FILE_FL_FREED
  tracing: Clean up access to trace_event_file from a file pointer
  tracing: Free up file->private_data for use by individual events

 include/linux/trace_events.h     |  5 +++++
 kernel/trace/trace.c             |  2 --
 kernel/trace/trace.h             | 17 +++++++++++------
 kernel/trace/trace_events.c      | 17 ++++++++---------
 kernel/trace/trace_events_hist.c |  8 ++------
 5 files changed, 26 insertions(+), 23 deletions(-)


base-commit: 2b7a25df823dc7d8f56f8ce7c2d2dac391cea9c2
-- 
2.53.0


             reply	other threads:[~2026-02-19 16:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-19 16:27 Petr Pavlu [this message]
2026-02-19 16:27 ` [PATCH v3 1/5] tracing: Fix checking of freed trace_event_file for hist files Petr Pavlu
2026-02-19 16:27 ` [PATCH v3 2/5] tracing: Wake up poll waiters for hist files when removing an event Petr Pavlu
2026-02-19 16:27 ` [PATCH v3 3/5] tracing: Remove unnecessary check for EVENT_FILE_FL_FREED Petr Pavlu
2026-02-19 16:27 ` [PATCH v3 4/5] tracing: Clean up access to trace_event_file from a file pointer Petr Pavlu
2026-02-19 16:27 ` [PATCH v3 5/5] tracing: Free up file->private_data for use by individual events Petr Pavlu

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=20260219162737.314231-1-petr.pavlu@suse.com \
    --to=petr.pavlu@suse.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mhiramat@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=zanussi@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