Thread (45 messages) flat view 45 messages, 5 authors, 2025-03-11

Re: [PATCH 6/8] tracing: Have persistent trace instances save module addresses

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2025-02-06 15:29:08
Also in: lkml

On Thu, 6 Feb 2025 17:26:42 +0900
Masami Hiramatsu (Google) [off-list ref] wrote:
This maybe too frequently scan the module because the update_last_data() is
called when;
- change tracer (this maybe OK)
- update "set_event"
- write 1 to "enable" under events
- change pid filter
- etc.

Once it is scanned, it should not scan again, but update by module
callback, because usually events are enabled individually (thus
write 1 to "event" can happen multiple time online).

I think we can move this after TRACE_ARRAY_FL_LAST_BOOT check,
if TRACE_ARRAY_FL_LAST_BOOT flag is set, that flag should be cleared
with updating the tscratch, and the flag is not set, we can skip updating
the scratch.
No, because we could enable it, disable it, and then the user could be
adding and removing modules all day long, and we only add and do not remove
(I do have a patch that does remove them).

But we can do the same check as patch 8 does, and only do this if the
tracer wasn't already active.

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help