Lines Matching refs:event
3 * event tracer
225 id = register_trace_event(&call->event);
274 fbuffer->event =
276 event_call->event.type, len,
278 if (!fbuffer->event)
282 fbuffer->entry = ring_buffer_event_data(fbuffer->event);
382 * to clear the SOFT_DISABLED flag but leave the event in the
383 * state that it was. That is, if the event was enabled and
385 * is set we do not want the event to be enabled before we
425 * register the tracepoint for the event, but leave the event
426 * as is. That means, if the event was already enabled, we do
427 * nothing (but set SOFT_MODE). If the event is disabled, we
428 * set SOFT_DISABLED before enabling the event tracepoint, so
444 /* Keep the event disabled, when going to SOFT_MODE. */
466 pr_info("event trace: Could not enable event "
788 const char *sub, const char *event, int set)
815 if (event && strcmp(event, name) != 0)
835 const char *sub, const char *event, int set)
840 ret = __ftrace_set_clr_event_nolock(tr, match, sub, event, set);
848 char *event = NULL, *sub = NULL, *match;
854 * The buf format can be <subsystem>:<event-name>
855 * *:<event-name> means any event by that name.
856 * :<event-name> is the same.
862 * the name <name> or any event that matches <name>
868 event = buf;
873 if (!strlen(event) || strcmp(event, "*") == 0)
874 event = NULL;
877 ret = __ftrace_set_clr_event(tr, match, sub, event, set);
887 * trace_set_clr_event - enable or disable an event
889 * @event: event name to match (NULL for all events, within system)
893 * event recording.
898 int trace_set_clr_event(const char *system, const char *event, int set)
905 return __ftrace_set_clr_event(tr, NULL, system, event, set);
910 * trace_array_set_clr_event - enable or disable an event for a trace array.
913 * @event: event name to match (NULL for all events, within system)
917 * event recording.
923 const char *event, bool enable)
931 return __ftrace_set_clr_event(tr, NULL, system, event, set);
991 * They can not be enabled or disabled via the event files.
1339 seq_printf(m, "ID: %d\n", call->event.type);
1413 /* Do we want to hide event format files on tracefs lockdown? */
2133 pr_warn("No memory to create event subsystem %s\n", name);
2206 if (call->event.type && call->class->reg)
2208 (void *)(long)call->event.type,
2219 * Only event directories that can be enabled should have
2242 if (call->event.type && call->class->reg)
2292 if (call->event.funcs)
2293 __unregister_trace_event(&call->event);
2502 /* Add an event to a trace directory */
2625 #define for_each_event(event, start, end) \
2626 for (event = start; \
2627 (unsigned long)event < (unsigned long)end; \
2628 event++)
2704 /* Create a new event directory structure for a trace directory. */
2714 pr_warn("Could not create directory for event %s\n",
2719 /* Returns any file that matches the system and event */
2721 __find_event_file(struct trace_array *tr, const char *system, const char *event)
2735 if (strcmp(event, name) == 0 &&
2742 /* Returns valid trace event files that match system and event */
2744 find_event_file(struct trace_array *tr, const char *system, const char *event)
2748 file = __find_event_file(tr, system, event);
2757 * trace_get_event_file - Find and return a trace event file
2758 * @instance: The name of the trace instance containing the event
2759 * @system: The name of the system containing the event
2760 * @event: The name of the event
2762 * Return a trace event file given the trace instance name, trace
2763 * system, and trace event name. If the instance name is NULL, it
2768 * increment the event's module refcount to prevent it from being
2772 * trace_array_put() and decrement the event's module refcount.
2774 * Return: The trace event on success, ERR_PTR otherwise.
2778 const char *event)
2796 file = find_event_file(tr, system, event);
2803 /* Don't let event modules unload while in use */
2824 * @file: The trace event file
2829 * event's module refcount.
2897 /* Skip if the event is in a state we want to switch to */
3036 const char *event;
3052 event = strsep(¶m, ":");
3057 file = find_event_file(tr, system, event);
3101 /* Don't let event modules unload while probe registered */
3180 pr_warn("Could not create directory for event %s\n",
3203 pr_warn("Could not create early event %s\n",
3208 /* Remove the event directory structure for a trace directory. */
3235 disable_tracing_selftest("running event tracing");
3305 * creates the event hierachry in the @parent/events directory.
3322 /* If tr already has the event list, it is initialized in early boot. */
3363 /* Disable any event triggers and associated soft-disabled events */
3412 pr_warn("Failed to enable trace event: %s\n", token);
3464 * the syscall tracepoint never get reached, but the event is enabled
3586 * For every trace event defined, we will test each trace point separately,
3624 pr_info("Testing event %s: ", trace_event_name(call));
3627 * If an event is already enabled, someone is using
3631 pr_warn("Enabled event during self test!\n");
3645 pr_info("Running tests on trace event systems:\n");
3655 pr_info("Testing event system %s: ", system->name);
3710 struct ring_buffer_event *event;
3727 event = trace_event_buffer_lock_reserve(&buffer, &event_trace_file,
3730 if (!event)
3732 entry = ring_buffer_event_data(event);
3736 event_trigger_unlock_commit(&event_trace_file, buffer, event,
3759 pr_info("Failed to enable function tracer for event tests\n");