Home
last modified time | relevance | path

Searched refs:event (Results 1 – 25 of 2822) sorted by relevance

12345678910>>...113

/linux-6.1.9/tools/testing/selftests/powerpc/pmu/event_code_tests/
Dgeneric_events_valid_test.c19 struct event event; in generic_events_valid_test() local
35 event_init_opts(&event, PERF_COUNT_HW_CPU_CYCLES, PERF_TYPE_HARDWARE, "event"); in generic_events_valid_test()
36 FAIL_IF(event_open(&event)); in generic_events_valid_test()
37 event_close(&event); in generic_events_valid_test()
39 event_init_opts(&event, PERF_COUNT_HW_INSTRUCTIONS, in generic_events_valid_test()
41 FAIL_IF(event_open(&event)); in generic_events_valid_test()
42 event_close(&event); in generic_events_valid_test()
44 event_init_opts(&event, PERF_COUNT_HW_CACHE_REFERENCES, in generic_events_valid_test()
46 FAIL_IF(event_open(&event)); in generic_events_valid_test()
47 event_close(&event); in generic_events_valid_test()
[all …]
Dreserved_bits_mmcra_sample_elig_mode_test.c23 struct event event; in reserved_bits_mmcra_sample_elig_mode() local
36 event_init(&event, 0x50401e0); in reserved_bits_mmcra_sample_elig_mode()
37 FAIL_IF(!event_open(&event)); in reserved_bits_mmcra_sample_elig_mode()
39 event_init(&event, 0x90401e0); in reserved_bits_mmcra_sample_elig_mode()
40 FAIL_IF(!event_open(&event)); in reserved_bits_mmcra_sample_elig_mode()
42 event_init(&event, 0xD0401e0); in reserved_bits_mmcra_sample_elig_mode()
43 FAIL_IF(!event_open(&event)); in reserved_bits_mmcra_sample_elig_mode()
45 event_init(&event, 0x190401e0); in reserved_bits_mmcra_sample_elig_mode()
46 FAIL_IF(!event_open(&event)); in reserved_bits_mmcra_sample_elig_mode()
48 event_init(&event, 0x1D0401e0); in reserved_bits_mmcra_sample_elig_mode()
[all …]
/linux-6.1.9/tools/testing/selftests/powerpc/pmu/ebb/
Devent_attributes_test.c17 struct event event, leader; in event_attributes() local
21 event_init(&event, 0x1001e); in event_attributes()
22 event_leader_ebb_init(&event); in event_attributes()
24 FAIL_IF(event_open(&event)); in event_attributes()
25 event_close(&event); in event_attributes()
28 event_init(&event, 0x001e); /* CYCLES - no PMC specified */ in event_attributes()
29 event_leader_ebb_init(&event); in event_attributes()
31 FAIL_IF(event_open(&event) == 0); in event_attributes()
34 event_init(&event, 0x2001e); in event_attributes()
35 event_leader_ebb_init(&event); in event_attributes()
[all …]
Dinstruction_count_test.c25 static int do_count_loop(struct event *event, uint64_t instructions, in do_count_loop() argument
45 event->result.value = ebb_state.stats.pmc_count[4-1]; in do_count_loop()
47 difference = event->result.value - expected; in do_count_loop()
48 percentage = (double)difference / event->result.value * 100; in do_count_loop()
53 printf("Actual %llu\n", event->result.value); in do_count_loop()
63 if (difference / event->result.value) in do_count_loop()
70 static uint64_t determine_overhead(struct event *event) in determine_overhead() argument
75 do_count_loop(event, 0, 0, false); in determine_overhead()
76 overhead = event->result.value; in determine_overhead()
79 do_count_loop(event, 0, 0, false); in determine_overhead()
[all …]
/linux-6.1.9/kernel/events/
Dcore.c182 static bool is_kernel_event(struct perf_event *event) in is_kernel_event() argument
184 return READ_ONCE(event->owner) == TASK_TOMBSTONE; in is_kernel_event()
210 struct perf_event *event; member
218 struct perf_event *event = efs->event; in event_function() local
219 struct perf_event_context *ctx = event->ctx; in event_function()
254 efs->func(event, cpuctx, ctx, efs->data); in event_function()
261 static void event_function_call(struct perf_event *event, event_f func, void *data) in event_function_call() argument
263 struct perf_event_context *ctx = event->ctx; in event_function_call()
266 .event = event, in event_function_call()
271 if (!event->parent) { in event_function_call()
[all …]
/linux-6.1.9/net/sctp/
Dulpevent.c31 static void sctp_ulpevent_receive_data(struct sctp_ulpevent *event,
33 static void sctp_ulpevent_release_data(struct sctp_ulpevent *event);
34 static void sctp_ulpevent_release_frag_data(struct sctp_ulpevent *event);
38 static void sctp_ulpevent_init(struct sctp_ulpevent *event, in sctp_ulpevent_init() argument
42 memset(event, 0, sizeof(struct sctp_ulpevent)); in sctp_ulpevent_init()
43 event->msg_flags = msg_flags; in sctp_ulpevent_init()
44 event->rmem_len = len; in sctp_ulpevent_init()
51 struct sctp_ulpevent *event; in sctp_ulpevent_new() local
58 event = sctp_skb2event(skb); in sctp_ulpevent_new()
59 sctp_ulpevent_init(event, msg_flags, skb->truesize); in sctp_ulpevent_new()
[all …]
/linux-6.1.9/arch/powerpc/perf/
Dcore-fsl-emb.c23 struct perf_event *event[MAX_HWEVENTS]; member
162 static void fsl_emb_pmu_read(struct perf_event *event) in fsl_emb_pmu_read() argument
166 if (event->hw.state & PERF_HES_STOPPED) in fsl_emb_pmu_read()
175 prev = local64_read(&event->hw.prev_count); in fsl_emb_pmu_read()
177 val = read_pmc(event->hw.idx); in fsl_emb_pmu_read()
178 } while (local64_cmpxchg(&event->hw.prev_count, prev, val) != prev); in fsl_emb_pmu_read()
182 local64_add(delta, &event->count); in fsl_emb_pmu_read()
183 local64_sub(delta, &event->hw.period_left); in fsl_emb_pmu_read()
255 struct perf_event *event; in collect_events() local
263 for_each_sibling_event(event, group) { in collect_events()
[all …]
Dcore-book3s.c39 struct perf_event *event[MAX_HWEVENTS]; member
109 static inline void perf_get_data_addr(struct perf_event *event, struct pt_regs *regs, u64 *addrp) {… in perf_get_data_addr() argument
124 static bool is_ebb_event(struct perf_event *event) { return false; } in is_ebb_event() argument
125 static int ebb_event_check(struct perf_event *event) { return 0; } in ebb_event_check() argument
126 static void ebb_event_add(struct perf_event *event) { } in ebb_event_add() argument
133 static inline void power_pmu_bhrb_enable(struct perf_event *event) {} in power_pmu_bhrb_enable() argument
134 static inline void power_pmu_bhrb_disable(struct perf_event *event) {} in power_pmu_bhrb_disable() argument
136 static inline void power_pmu_bhrb_read(struct perf_event *event, struct cpu_hw_events *cpuhw) {} in power_pmu_bhrb_read() argument
202 static inline void perf_get_data_addr(struct perf_event *event, struct pt_regs *regs, u64 *addrp) in perf_get_data_addr() argument
227 if (is_kernel_addr(mfspr(SPRN_SDAR)) && event->attr.exclude_kernel) in perf_get_data_addr()
[all …]
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/core/
Devent.c26 nvkm_event_put(struct nvkm_event *event, u32 types, int index) in nvkm_event_put() argument
28 assert_spin_locked(&event->refs_lock); in nvkm_event_put()
31 if (--event->refs[index * event->types_nr + type] == 0) { in nvkm_event_put()
32 if (event->func->fini) in nvkm_event_put()
33 event->func->fini(event, 1 << type, index); in nvkm_event_put()
39 nvkm_event_get(struct nvkm_event *event, u32 types, int index) in nvkm_event_get() argument
41 assert_spin_locked(&event->refs_lock); in nvkm_event_get()
44 if (++event->refs[index * event->types_nr + type] == 1) { in nvkm_event_get()
45 if (event->func->init) in nvkm_event_get()
46 event->func->init(event, 1 << type, index); in nvkm_event_get()
[all …]
Dnotify.c31 nvkm_event_put(notify->event, notify->types, notify->index); in nvkm_notify_put_locked()
37 struct nvkm_event *event = notify->event; in nvkm_notify_put() local
39 if (likely(event) && in nvkm_notify_put()
41 spin_lock_irqsave(&event->refs_lock, flags); in nvkm_notify_put()
43 spin_unlock_irqrestore(&event->refs_lock, flags); in nvkm_notify_put()
53 nvkm_event_get(notify->event, notify->types, notify->index); in nvkm_notify_get_locked()
59 struct nvkm_event *event = notify->event; in nvkm_notify_get() local
61 if (likely(event) && in nvkm_notify_get()
63 spin_lock_irqsave(&event->refs_lock, flags); in nvkm_notify_get()
65 spin_unlock_irqrestore(&event->refs_lock, flags); in nvkm_notify_get()
[all …]
/linux-6.1.9/tools/perf/util/
Devent.c126 struct perf_record_stat_config *event) in perf_event__read_stat_config() argument
130 for (i = 0; i < event->nr; i++) { in perf_event__read_stat_config()
132 switch (event->data[i].tag) { in perf_event__read_stat_config()
135 config->__val = event->data[i].val; \ in perf_event__read_stat_config()
144 event->data[i].tag); in perf_event__read_stat_config()
149 size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp) in perf_event__fprintf_comm() argument
153 if (event->header.misc & PERF_RECORD_MISC_COMM_EXEC) in perf_event__fprintf_comm()
158 return fprintf(fp, "%s: %s:%d/%d\n", s, event->comm.comm, event->comm.pid, event->comm.tid); in perf_event__fprintf_comm()
161 size_t perf_event__fprintf_namespaces(union perf_event *event, FILE *fp) in perf_event__fprintf_namespaces() argument
167 ns_link_info = event->namespaces.link_info; in perf_event__fprintf_namespaces()
[all …]
Dsession.c42 union perf_event *event, u64 file_offset, in perf_session__process_compressed_event() argument
74 src = (void *)event + sizeof(struct perf_record_compressed); in perf_session__process_compressed_event()
75 src_size = event->pack.header.size - sizeof(struct perf_record_compressed); in perf_session__process_compressed_event()
103 union perf_event *event,
182 struct ordered_event *event) in ordered_events__deliver_event() argument
187 return perf_session__deliver_event(session, event->event, in ordered_events__deliver_event()
188 session->tool, event->file_offset, in ordered_events__deliver_event()
189 event->file_path); in ordered_events__deliver_event()
322 union perf_event *event in process_event_synth_tracing_data_stub()
330 union perf_event *event __maybe_unused, in process_event_synth_attr_stub()
[all …]
/linux-6.1.9/drivers/md/
Ddm-uevent.c39 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()
49 if (!event) in dm_uevent_alloc()
52 INIT_LIST_HEAD(&event->elist); in dm_uevent_alloc()
53 event->md = md; in dm_uevent_alloc()
55 return event; in dm_uevent_alloc()
65 struct dm_uevent *event; in dm_build_path_uevent() local
67 event = dm_uevent_alloc(md); in dm_build_path_uevent()
[all …]
/linux-6.1.9/drivers/firmware/
Darm_sdei.c75 struct sdei_event *event; member
80 #define CROSSCALL_INIT(arg, event) \ argument
82 arg.event = event; \
88 struct sdei_event *event) in sdei_do_local_call() argument
92 CROSSCALL_INIT(arg, event); in sdei_do_local_call()
99 struct sdei_event *event) in sdei_do_cross_call() argument
103 CROSSCALL_INIT(arg, event); in sdei_do_cross_call()
189 static int sdei_api_event_get_info(u32 event, u32 info, u64 *result) in sdei_api_event_get_info() argument
191 return invoke_sdei_fn(SDEI_1_0_FN_SDEI_EVENT_GET_INFO, event, info, 0, in sdei_api_event_get_info()
201 struct sdei_event *event; in sdei_event_create() local
[all …]
/linux-6.1.9/Documentation/ABI/testing/
Dsysfs-bus-event_source-devices-dfl_fme13 event = "config:0-11" - event ID
14 evtype = "config:12-15" - event type
15 portid = "config:16-23" - event source
19 fab_mmio_read = "event=0x06,evtype=0x02,portid=0xff"
21 It shows this fab_mmio_read is a fabric type (0x02) event with
22 0x06 local event id for overall monitoring (portid=0xff).
37 a single performance monitoring event supported by this fme pmu.
38 The name of the file is the name of the event.
45 clock = "event=0x00,evtype=0x00,portid=0xff"
49 cache_read_hit = "event=0x00,evtype=0x01,portid=0xff"
[all …]
/linux-6.1.9/arch/powerpc/kernel/
Deeh_event.c42 struct eeh_event *event; in eeh_event_handler() local
50 event = NULL; in eeh_event_handler()
52 event = list_entry(eeh_eventlist.next, in eeh_event_handler()
54 list_del(&event->list); in eeh_event_handler()
57 if (!event) in eeh_event_handler()
61 if (event->pe) in eeh_event_handler()
62 eeh_handle_normal_event(event->pe); in eeh_event_handler()
66 kfree(event); in eeh_event_handler()
105 struct eeh_event *event; in __eeh_send_failure_event() local
107 event = kzalloc(sizeof(*event), GFP_ATOMIC); in __eeh_send_failure_event()
[all …]
/linux-6.1.9/include/trace/events/
Drv.h14 TP_PROTO(char *state, char *event, char *next_state, bool final_state),
16 TP_ARGS(state, event, next_state, final_state),
20 __array( char, event, MAX_DA_NAME_LEN )
27 memcpy(__entry->event, event, MAX_DA_NAME_LEN);
34 __entry->event,
41 TP_PROTO(char *state, char *event),
43 TP_ARGS(state, event),
47 __array( char, event, MAX_DA_NAME_LEN )
52 memcpy(__entry->event, event, MAX_DA_NAME_LEN);
56 __entry->event,
[all …]
/linux-6.1.9/scripts/dtc/
Dyamltree.c24 #define yaml_emitter_emit_or_die(emitter, event) ( \ argument
26 if (!yaml_emitter_emit(emitter, event)) \
35 yaml_event_t event; in yaml_propval_int() local
49 yaml_sequence_start_event_initialize(&event, NULL, in yaml_propval_int()
51 yaml_emitter_emit_or_die(emitter, &event); in yaml_propval_int()
82 yaml_scalar_event_initialize(&event, NULL, in yaml_propval_int()
86 yaml_scalar_event_initialize(&event, NULL, in yaml_propval_int()
89 yaml_emitter_emit_or_die(emitter, &event); in yaml_propval_int()
92 yaml_sequence_end_event_initialize(&event); in yaml_propval_int()
93 yaml_emitter_emit_or_die(emitter, &event); in yaml_propval_int()
[all …]
/linux-6.1.9/drivers/perf/
Driscv_pmu.c74 u64 riscv_pmu_ctr_get_width_mask(struct perf_event *event) in riscv_pmu_ctr_get_width_mask() argument
77 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in riscv_pmu_ctr_get_width_mask()
78 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_ctr_get_width_mask()
97 u64 riscv_pmu_event_update(struct perf_event *event) in riscv_pmu_event_update() argument
99 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in riscv_pmu_event_update()
100 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_event_update()
108 cmask = riscv_pmu_ctr_get_width_mask(event); in riscv_pmu_event_update()
112 new_raw_count = rvpmu->ctr_read(event); in riscv_pmu_event_update()
118 local64_add(delta, &event->count); in riscv_pmu_event_update()
124 void riscv_pmu_stop(struct perf_event *event, int flags) in riscv_pmu_stop() argument
[all …]
Dqcom_l3_pmu.c136 static inline u32 get_event_type(struct perf_event *event) in get_event_type() argument
138 return (event->attr.config) & L3_EVTYPE_MASK; in get_event_type()
141 static inline bool event_uses_long_counter(struct perf_event *event) in event_uses_long_counter() argument
143 return !!(event->attr.config & BIT_ULL(L3_EVENT_LC_BIT)); in event_uses_long_counter()
146 static inline int event_num_counters(struct perf_event *event) in event_num_counters() argument
148 return event_uses_long_counter(event) ? 2 : 1; in event_num_counters()
175 void (*start)(struct perf_event *event);
177 void (*stop)(struct perf_event *event, int flags);
179 void (*update)(struct perf_event *event);
193 static void qcom_l3_cache__64bit_counter_start(struct perf_event *event) in qcom_l3_cache__64bit_counter_start() argument
[all …]
/linux-6.1.9/arch/s390/kernel/
Dperf_pai_crypto.c41 struct perf_event *event; /* Perf event for sampling */ member
52 static void paicrypt_event_destroy(struct perf_event *event) in paicrypt_event_destroy() argument
54 struct paicrypt_map *cpump = per_cpu_ptr(&paicrypt_map, event->cpu); in paicrypt_event_destroy()
56 cpump->event = NULL; in paicrypt_event_destroy()
59 if (event->attr.sample_period) in paicrypt_event_destroy()
65 event->attr.config, event->cpu, cpump->sampler, in paicrypt_event_destroy()
89 static u64 paicrypt_getdata(struct perf_event *event, bool kernel) in paicrypt_getdata() argument
95 if (event->attr.config != PAI_CRYPTO_BASE) { in paicrypt_getdata()
97 event->attr.config - PAI_CRYPTO_BASE, in paicrypt_getdata()
111 static u64 paicrypt_getall(struct perf_event *event) in paicrypt_getall() argument
[all …]
Dperf_pai_ext.c60 struct perf_event *event; /* Perf event for sampling */ member
124 static void paiext_event_destroy(struct perf_event *event) in paiext_event_destroy() argument
126 struct paiext_mapptr *mp = per_cpu_ptr(paiext_root.mapptr, event->cpu); in paiext_event_destroy()
130 cpump->event = NULL; in paiext_event_destroy()
136 event->cpu, mp->mapptr); in paiext_event_destroy()
154 static int paiext_alloc(struct perf_event_attr *a, struct perf_event *event) in paiext_alloc() argument
166 mp = per_cpu_ptr(paiext_root.mapptr, event->cpu); in paiext_alloc()
209 cpump->event = event; in paiext_alloc()
229 static int paiext_event_valid(struct perf_event *event) in paiext_event_valid() argument
231 u64 cfg = event->attr.config; in paiext_event_valid()
[all …]
/linux-6.1.9/arch/sh/kernel/
Dperf_event.c63 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy() argument
100 static int __hw_perf_event_init(struct perf_event *event) in __hw_perf_event_init() argument
102 struct perf_event_attr *attr = &event->attr; in __hw_perf_event_init()
103 struct hw_perf_event *hwc = &event->hw; in __hw_perf_event_init()
131 event->destroy = hw_perf_event_destroy; in __hw_perf_event_init()
158 static void sh_perf_event_update(struct perf_event *event, in sh_perf_event_update() argument
196 local64_add(delta, &event->count); in sh_perf_event_update()
199 static void sh_pmu_stop(struct perf_event *event, int flags) in sh_pmu_stop() argument
202 struct hw_perf_event *hwc = &event->hw; in sh_pmu_stop()
205 if (!(event->hw.state & PERF_HES_STOPPED)) { in sh_pmu_stop()
[all …]
/linux-6.1.9/drivers/perf/hisilicon/
Dhisi_uncore_pmu.c66 static bool hisi_validate_event_group(struct perf_event *event) in hisi_validate_event_group() argument
68 struct perf_event *sibling, *leader = event->group_leader; in hisi_validate_event_group()
69 struct hisi_pmu *hisi_pmu = to_hisi_pmu(event->pmu); in hisi_validate_event_group()
78 if (leader->pmu != event->pmu) in hisi_validate_event_group()
82 if (leader != event) in hisi_validate_event_group()
86 for_each_sibling_event(sibling, event->group_leader) { in hisi_validate_event_group()
89 if (sibling->pmu != event->pmu) in hisi_validate_event_group()
99 int hisi_uncore_pmu_get_event_idx(struct perf_event *event) in hisi_uncore_pmu_get_event_idx() argument
101 struct hisi_pmu *hisi_pmu = to_hisi_pmu(event->pmu); in hisi_uncore_pmu_get_event_idx()
134 struct perf_event *event; in hisi_uncore_pmu_isr() local
[all …]
/linux-6.1.9/fs/notify/fanotify/
Dfanotify.h266 static inline void fanotify_init_event(struct fanotify_event *event, in fanotify_init_event() argument
269 fsnotify_init_event(&event->fse); in fanotify_init_event()
270 INIT_HLIST_NODE(&event->merge_list); in fanotify_init_event()
271 event->hash = hash; in fanotify_init_event()
272 event->mask = mask; in fanotify_init_event()
273 event->pid = NULL; in fanotify_init_event()
291 FANOTIFY_FE(struct fanotify_event *event) in FANOTIFY_FE() argument
293 return container_of(event, struct fanotify_fid_event, fae); in FANOTIFY_FE()
303 FANOTIFY_NE(struct fanotify_event *event) in FANOTIFY_NE() argument
305 return container_of(event, struct fanotify_name_event, fae); in FANOTIFY_NE()
[all …]

12345678910>>...113