Re: [RFC][PATCH] x86/mm: Sync all vmalloc mappings before text_poke()

Steven Rostedt
2020-04-30T16:12:26Z

On Thu, 30 Apr 2020 11:23:29 -0400 (EDT)
Mathieu Desnoyers <mathieu.desnoyers@efficios.com> wrote:

> I suspect it's called by:
>
> include/linux/trace_event.h:trace_trigger_soft_disabled():
>
> static inline bool
> trace_trigger_soft_disabled(struct trace_event_file *file)
> {
> unsigned long eflags = file->flags;
>
> if (!(eflags & EVENT_FILE_FL_TRIGGER_COND)) {
> if (eflags & EVENT_FILE_FL_TRIGGER_MODE)
> event_triggers_call(file, NULL, NULL);
> if (eflags & EVENT_FILE_FL_SOFT_DISABLED)
> return true;
> if (eflags & EVENT_FILE_FL_PID_FILTER)
> return trace_event_ignore_this_pid(file);
> }
> return false;
> }

This code is only used for the "enable/disable event" triggers. Which isn't
the case here. So this should never be called.

-- Steve