/Linux-v5.15/kernel/trace/ |
D | trace_events_synth.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * trace_events_synth - synthetic trace events 25 C(BAD_NAME, "Illegal name"), \ 26 C(INVALID_CMD, "Command must be of the form: <name> field[;field] ..."),\ 27 C(INVALID_DYN_CMD, "Command must be of the form: s or -:[synthetic/]<name> field[;field] ..."),\ 28 C(EVENT_EXISTS, "Event already exists"), \ 57 strncpy(last_cmd, str, MAX_FILTER_STR_VAL - 1); in last_cmd_set() 70 static bool synth_event_match(const char *system, const char *event, 83 return ev->ops == &synth_event_ops; in is_synth_event() 93 struct synth_event *event = to_synth_event(ev); in synth_event_is_busy() local [all …]
|
/Linux-v5.15/tools/perf/tests/ |
D | pmu-events.c | 1 // SPDX-License-Identifier: GPL-2.0 3 #include "parse-events.h" 11 #include "../pmu-events/pmu-events.h" 14 #include "util/parse-events.h" 18 /* used for matching against events from generated pmu-events.c */ 19 struct pmu_event event; member 21 /* used for matching against event aliases */ 42 .event = { 43 .name = "bp_l1_btb_correct", 44 .event = "event=0x8a", [all …]
|
D | parse-metric.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include "pmu-events/pmu-events.h" 28 .metric_expr = "l1d\\-loads\\-misses / inst_retired.any", 32 .metric_expr = "l1i\\-loads\\-misses / inst_retired.any", 45 .metric_expr = "max(l2_rqsts.all_demand_data_rd - l2_rqsts.demand_data_rd_hit, 0) + " 78 .name = NULL, 90 const char *event; member 94 static u64 find_value(const char *name, struct value *values) in find_value() argument 98 while (v->event) { in find_value() 99 if (!strcmp(name, v->event)) in find_value() [all …]
|
/Linux-v5.15/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | EventClass.py | 2 # SPDX-License-Identifier: GPL-2.0 8 # PerfEvent is the base class for all perf event sample, PebsEvent 9 # is a HW base Intel x86 PEBS event, and user could add more SW/HW 10 # event classes based on requirements. 15 # Event types, user could add more here 17 EVTYPE_PEBS = 1 # Basic PEBS event 18 EVTYPE_PEBS_LL = 2 # PEBS event with load latency info 22 # Currently we don't have good way to tell the event type, but by 23 # the size of raw buffer, raw PEBS event with load latency data's 24 # size is 176 bytes, while the pure PEBS event's size is 144 bytes. [all …]
|
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_pmu.c | 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 68 if (!amdgpu_pmu_attr->type) in amdgpu_pmu_event_show() 69 return sprintf(buf, "%s\n", amdgpu_pmu_attr->event_str); in amdgpu_pmu_event_show() 72 amdgpu_pmu_attr->event_str, amdgpu_pmu_attr->type); in amdgpu_pmu_event_show() 79 const char *name; member 99 * - PMU typed 105 * - Event config typed 115 { .name = "event", .config = "config:0-7" }, 116 { .name = "instance", .config = "config:8-15" }, 117 { .name = "umask", .config = "config:16-23"}, [all …]
|
/Linux-v5.15/include/linux/ |
D | trace_events.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 57 struct trace_event *event); 62 * The trace entry - the most basic unit of tracing. This is what 65 * bash-15816 [01] 235.197585: idle_cpu <- irq_enter 75 ((1 << (sizeof(((struct trace_entry *)0)->type) * 8)) - 1) 78 * Trace iterator - used by printout routines who present trace 126 int flags, struct trace_event *event); 142 extern int register_trace_event(struct trace_event *event); 143 extern int unregister_trace_event(struct trace_event *event); 159 entry->preempt_count = trace_ctx & 0xff; in tracing_generic_entry_update() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/devfreq/event/ |
D | samsung,exynos-ppmu.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/devfreq/event/samsung,exynos-ppmu.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chanwoo Choi <cw00.choi@samsung.com> 11 - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> 19 Exynos PPMU driver uses the devfreq-event class to provide event data to 20 various devfreq devices. The devfreq devices would use the event data when 26 - samsung,exynos-ppmu 27 - samsung,exynos-ppmu-v2 [all …]
|
/Linux-v5.15/Documentation/trace/ |
D | events.rst | 2 Event Tracing 13 using the event tracing infrastructure. 15 Not all tracepoints can be traced using the event tracing system; 20 2. Using Event Tracing 24 --------------------------------- 29 To enable a particular event, such as 'sched_wakeup', simply echo it 36 To disable an event, echo the event name to the set_event file prefixed 50 etc., and a full event name looks like this: <subsystem>:<event>. The 51 subsystem name is optional, but it is displayed in the available_events 59 --------------------------- [all …]
|
/Linux-v5.15/tools/testing/selftests/ftrace/test.d/dynevent/ |
D | add_remove_eprobe.tc | 2 # SPDX-License-Identifier: GPL-2.0 3 # description: Generic dynamic event - add/remove eprobe events 4 …_events events/syscalls/sys_enter_openat "e[:[<group>/]<event>] <attached-group>.<attached-event> … 11 EVENT="sys_enter_openat" 15 echo "e:$EPROBE $SYSTEM/$EVENT $OPTIONS" >> dynamic_events 17 grep -q "$EPROBE" dynamic_events 18 test -d events/eprobes/$EPROBE 24 content=`grep '^ *ls-' trace | grep 'file='` 25 nocontent=`grep '^ *ls-' trace | grep 'file=' | grep -v -e '"/' -e '"."' -e '(fault)' ` || true 27 if [ -z "$content" ]; then [all …]
|
/Linux-v5.15/tools/lib/traceevent/ |
D | event-parse.c | 1 // SPDX-License-Identifier: LGPL-2.1 8 * - Copyright (C) 2009 Frederic Weisbecker, 24 #include "event-parse.h" 26 #include "event-parse-local.h" 27 #include "event-utils.h" 28 #include "trace-seq.h" 45 #define do_warning_event(event, fmt, ...) \ argument 50 if (event) \ 51 warning("[%s:%s] " fmt, event->system, \ 52 event->name, ##__VA_ARGS__); \ [all …]
|
/Linux-v5.15/arch/powerpc/perf/ |
D | hv-24x7.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #define pr_fmt(fmt) "hv-24x7: " fmt 24 #include "hv-24x7.h" 25 #include "hv-24x7-catalog.h" 26 #include "hv-common.h" 42 #include "hv-24x7-domains.h" in domain_is_valid() 56 #include "hv-24x7-domains.h" in is_physical_domain() 78 * chip details through the get-system-parameter rtas call. 94 call_status = rtas_call(rtas_token("ibm,get-system-parameter"), 3, 1, in read_24x7_sys_info() 101 pr_err("Error calling get-system-parameter %d\n", in read_24x7_sys_info() [all …]
|
/Linux-v5.15/tools/perf/util/ |
D | bpf-event.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include "bpf-event.h" 22 #include "util/synthetic-events.h" 28 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" in btf__load_from_kernel_by_id() 43 ret += snprintf(buf + ret, size - ret, "%02x", data[i]); in snprintf_hex() 48 union perf_event *event, in machine__process_bpf_event_load() argument 53 struct perf_env *env = machine->env; in machine__process_bpf_event_load() 54 int id = event->bpf.id; in machine__process_bpf_event_load() 57 /* perf-record, no need to handle bpf-event */ in machine__process_bpf_event_load() 64 info_linear = info_node->info_linear; in machine__process_bpf_event_load() [all …]
|
D | data-convert-bt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <babeltrace/ctf-writer/writer.h> 15 #include <babeltrace/ctf-writer/clock.h> 16 #include <babeltrace/ctf-writer/stream.h> 17 #include <babeltrace/ctf-writer/event.h> 18 #include <babeltrace/ctf-writer/event-types.h> 19 #include <babeltrace/ctf-writer/event-fields.h> 20 #include <babeltrace/ctf-ir/utils.h> 22 #include <traceevent/event-parse.h> 24 #include "data-convert.h" [all …]
|
D | probe-event.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 29 /* kprobe-tracer and uprobe-tracer tracing point */ 31 char *realname; /* function real name (if needed) */ 33 char *module; /* Module name */ 40 /* probe-tracer tracing argument referencing offset */ 44 bool user_access; /* User-memory access */ 47 /* kprobe-tracer and uprobe-tracer tracing argument */ 49 char *name; /* Argument name */ member 51 char *type; /* Type name */ 55 /* kprobe-tracer and uprobe-tracer tracing event (point + arg) */ [all …]
|
/Linux-v5.15/Documentation/ABI/testing/ |
D | sysfs-class-devfreq-event | 1 What: /sys/class/devfreq-event/event(x)/ 5 Provide a place in sysfs for the devfreq-event objects. 6 This allows accessing various devfreq-event specific variables. 7 The name of devfreq-event object denoted as 'event(x)' which 8 includes the unique number of 'x' for each devfreq-event object. 10 What: /sys/class/devfreq-event/event(x)/name 14 The /sys/class/devfreq-event/event(x)/name attribute contains 15 the name of the devfreq-event object. This attribute is 16 read-only. 18 What: /sys/class/devfreq-event/event(x)/enable_count [all …]
|
/Linux-v5.15/drivers/char/tpm/eventlog/ |
D | tpm1.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 * Maintained by: <tpmdd-devel@lists.sourceforge.net> 15 * Access to the event log created by a system's firmware / BIOS 37 "EVENT TAG", 38 "S-CRTM Contents", 39 "S-CRTM Version", 46 "Non-Host Code", 47 "Non-Host Config", 48 "Non-Host Info" 63 "S-CRTM Version", [all …]
|
/Linux-v5.15/drivers/perf/ |
D | arm_dmc620_pmu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ARM DMC-620 memory controller PMU driver 40 * The PMU registers start at 0xA00 in the DMC-620 memory map, and these 50 (DMC620_PMU_CLKDIV2_MAX_COUNTERS - 1) 53 (DMC620_PMU_CLK_MAX_COUNTERS - 1) 116 return sysfs_emit(page, "event=0x%x,clkdiv2=0x%x\n", eattr->eventid, eattr->clkdiv2); in dmc620_pmu_event_show() 163 .name = "events", 188 (lo) == (hi) ? #cfg ":" #lo "\n" : #cfg ":" #lo "-" #hi 193 #define GEN_PMU_FORMAT_ATTR(name) \ argument 194 PMU_FORMAT_ATTR(name, \ [all …]
|
D | thunderx2_pmu.c | 1 // SPDX-License-Identifier: GPL-2.0 28 #define GET_EVENTID(ev, mask) ((ev->hw.config) & mask) 29 #define GET_COUNTERID(ev, mask) ((ev->hw.idx) & mask) 31 * Event id is encoded in bits [5:1] of a byte, 49 /* L3C event IDs */ 60 /* DMC event IDs */ 88 * L3C have 4 32-bit counters and the CCPI2 has 8 64-bit counters. 94 char *name; member 111 void (*init_cntr_base)(struct perf_event *event, 113 void (*stop_event)(struct perf_event *event); [all …]
|
/Linux-v5.15/drivers/s390/net/ |
D | fsm.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 53 * Element of State/Event history used for debugging. 57 int event; member 67 char name[16]; member 79 * Description of a state-event combination 100 * @param name Name of this instance for logging purposes. 110 init_fsm(char *name, const char **state_names, 127 fsm_record_history(fsm_instance *fi, int state, int event); 131 * Emits an event to a FSM. 132 * If an action function is defined for the current state/event combination, [all …]
|
/Linux-v5.15/drivers/md/ |
D | dm-uevent.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Device Mapper Uevent Support (dm-uevent) 11 #include <linux/dm-ioctl.h> 15 #include "dm-uevent.h" 22 char *name; member 35 char name[DM_NAME_LEN]; member 39 static void dm_uevent_free(struct dm_uevent *event) in dm_uevent_free() argument 41 kmem_cache_free(_dm_event_cache, event); in dm_uevent_free() 46 struct dm_uevent *event; in dm_uevent_alloc() local 48 event = kmem_cache_zalloc(_dm_event_cache, GFP_ATOMIC); in dm_uevent_alloc() [all …]
|
/Linux-v5.15/tools/perf/scripts/python/ |
D | netdev-times.py | 2 # SPDX-License-Identifier: GPL-2.0 17 '/scripts/python/Perf-Trace-Util/lib/Perf/Trace') 24 all_event_list = []; # insert all tracepoint event related with this script 27 net_rx_dic = {}; # key is cpu and value include time of NET_RX softirq-entry 48 dev = 0; # store a name of device specified by option "dev=" 61 return (dst - src) / 1000000.0 80 PF_NET_RECV= " |---netif_receive_skb(+%.3fmsec skb=%x len=%d)" 81 PF_NET_RX= " |---netif_rx(+%.3fmsec skb=%x)" 96 if irq_list[i]['name'].find(dev) >= 0: 109 irq_list[i]['irq'], irq_list[i]['name'])) [all …]
|
/Linux-v5.15/tools/testing/selftests/powerpc/pmu/ |
D | event.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include "event.h" 23 void event_init_opts(struct event *e, u64 config, int type, char *name) in event_init_opts() argument 27 e->name = name; in event_init_opts() 29 e->attr.type = type; in event_init_opts() 30 e->attr.config = config; in event_init_opts() 31 e->attr.size = sizeof(e->attr); in event_init_opts() 33 e->attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | \ in event_init_opts() 37 void event_init_named(struct event *e, u64 config, char *name) in event_init_named() argument 39 event_init_opts(e, config, PERF_TYPE_RAW, name); in event_init_named() [all …]
|
/Linux-v5.15/drivers/gpu/drm/i915/ |
D | i915_pmu.c | 2 * SPDX-License-Identifier: MIT 4 * Copyright © 2017-2018 Intel Corporation 30 static unsigned int i915_pmu_target_cpu = -1; 37 static u8 engine_event_sample(struct perf_event *event) in engine_event_sample() argument 39 return engine_config_sample(event->attr.config); in engine_event_sample() 42 static u8 engine_event_class(struct perf_event *event) in engine_event_class() argument 44 return (event->attr.config >> I915_PMU_CLASS_SHIFT) & 0xff; in engine_event_class() 47 static u8 engine_event_instance(struct perf_event *event) in engine_event_instance() argument 49 return (event->attr.config >> I915_PMU_SAMPLE_BITS) & 0xff; in engine_event_instance() 76 return -1; in other_bit() [all …]
|
/Linux-v5.15/drivers/infiniband/core/ |
D | cma_trace.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 36 __entry->cm_id = id_priv->res.id; 37 __entry->tos = id_priv->tos; 38 memcpy(__entry->srcaddr, &id_priv->id.route.addr.src_addr, 40 memcpy(__entry->dstaddr, &id_priv->id.route.addr.dst_addr, 45 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos 49 #define DEFINE_CMA_FSM_EVENT(name) \ argument 50 DEFINE_EVENT(cma_fsm_class, cm_##name, \ 78 __string(devname, device->name) 82 __entry->cm_id = id_priv->res.id; [all …]
|
/Linux-v5.15/Documentation/input/ |
D | event-codes.rst | 1 .. _input-event-codes: 4 Input event codes 12 A single hardware event generates multiple input events. Each input event 13 contains the new value of a single data item. A special event type, EV_SYN, is 15 the same moment in time. In the following, the term "event" refers to a single 16 input event encompassing a type, code, and value. 19 of event codes have changed. However, the state is maintained within the Linux 22 event code values using the EVIOCG* ioctls defined in linux/input.h. The event 24 class/input/event*/device/capabilities/, and the properties of a device are 25 provided in class/input/event*/device/properties. [all …]
|