Lines Matching +full:custom +full:- +full:temp

1 /* SPDX-License-Identifier: GPL-2.0 */
77 * The trace entry - the most basic unit of tracing. This is what
80 * bash-15816 [01] 235.197585: idle_cpu <- irq_enter
90 ((1 << (sizeof(((struct trace_entry *)0)->type) * 8)) - 1)
93 * Trace iterator - used by printout routines who present trace
105 void *temp; /* temp holder */ member
177 entry->preempt_count = trace_ctx & 0xff; in tracing_generic_entry_update()
178 entry->pid = current->pid; in tracing_generic_entry_update()
179 entry->type = type; in tracing_generic_entry_update()
180 entry->flags = trace_ctx >> 16; in tracing_generic_entry_update()
232 trace_ctx--; in tracing_gen_ctx_dec()
269 * custom action was taken and the default action is not to be
344 * FILTERED - The event has a filter attached
345 * CAP_ANY - Any user can enable for perf
346 * NO_SET_FILTER - Set when filter has error and is to be ignored
347 * IGNORE_ENABLE - For trace internal events, do not enable with debugfs file
348 * TRACEPOINT - Event is a tracepoint
349 * DYNAMIC - Event is a dynamic event (created at run time)
350 * KPROBE - Event is a kprobe
351 * UPROBE - Event is a uprobe
352 * EPROBE - Event is an event probe
353 * FPROBE - Event is an function probe
354 * CUSTOM - Event is a custom event (to be attached to an exsiting tracepoint)
355 * This is set when the custom event has not been attached
430 if (call->flags & TRACE_EVENT_FL_DYNAMIC) in trace_event_try_get_ref()
433 return try_module_get(call->module); in trace_event_try_get_ref()
438 if (call->flags & TRACE_EVENT_FL_DYNAMIC) in trace_event_put_ref()
441 module_put(call->module); in trace_event_put_ref()
448 * This inline function checks whether call->prog_array in bpf_prog_array_valid()
452 * If this function returns true, and later call->prog_array in bpf_prog_array_valid()
457 * call->prog_array happened to become non-NULL then. in bpf_prog_array_valid()
464 return !!READ_ONCE(call->prog_array); in bpf_prog_array_valid()
471 if (call->flags & TRACE_EVENT_FL_CUSTOM) in trace_event_name()
472 return call->name; in trace_event_name()
473 else if (call->flags & TRACE_EVENT_FL_TRACEPOINT) in trace_event_name()
474 return call->tp ? call->tp->name : NULL; in trace_event_name()
476 return call->name; in trace_event_name()
482 if (!event_call->class->get_fields) in trace_get_fields()
483 return &event_call->class->fields; in trace_get_fields()
484 return event_call->class->get_fields(event_call); in trace_get_fields()
628 * ENABLED - The event is enabled
629 * RECORDED_CMD - The comms should be recorded at sched_switch
630 * RECORDED_TGID - The tgids should be recorded at sched_switch
631 * FILTERED - The event has a filter attached
632 * NO_SET_FILTER - Set when filter has error and is to be ignored
633 * SOFT_MODE - The event is enabled/disabled by SOFT_DISABLED
634 * SOFT_DISABLED - When set, do not trace the event (even though its
636 * TRIGGER_MODE - When set, invoke the triggers associated with the event
637 * TRIGGER_COND - When set, one or more triggers has an associated filter
638 * PID_FILTER - When set, the event is filtered based on pid
639 * WAS_ENABLED - Set when enabled to know to clear trace on module removal
640 * FREED - File descriptor is freed, all fields should be considered invalid
680 * caching and such. Which is mostly OK ;-)
684 atomic_t sm_ref; /* soft-mode reference counter */
685 atomic_t tm_ref; /* trigger-mode reference counter */
739 * trace_trigger_soft_disabled - do triggers and test if soft disabled
750 unsigned long eflags = file->flags; in trace_trigger_soft_disabled()
790 return -EOPNOTSUPP; in perf_event_attach_bpf_prog()
798 return -EOPNOTSUPP; in perf_event_query_prog_array()
803 return -EOPNOTSUPP; in bpf_probe_register()
807 return -EOPNOTSUPP; in bpf_probe_unregister()
821 return -EOPNOTSUPP; in bpf_get_perf_event_info()
826 return -EOPNOTSUPP; in bpf_kprobe_multi_link_attach()
831 return -EOPNOTSUPP; in bpf_uprobe_multi_link_attach()
961 * function. But lets me make it into a macro :-/
979 * This is due to the way trace custom events work. If a file includes two