Home
last modified time | relevance | path

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

12345678910>>...99

/linux/tools/testing/selftests/powerpc/pmu/event_code_tests/
H A Dgeneric_events_valid_test.c9 #include "../event.h"
13 * Testcase to ensure that using invalid event in generic
14 * event for PERF_TYPE_HARDWARE should fail
19 struct event event; in generic_events_valid_test() local
36 event_init_opts(&event, PERF_COUNT_HW_CPU_CYCLES, PERF_TYPE_HARDWARE, "event"); in generic_events_valid_test()
37 FAIL_IF(event_open(&event)); in generic_events_valid_test()
38 event_close(&event); in generic_events_valid_test()
40 event_init_opts(&event, PERF_COUNT_HW_INSTRUCTION in generic_events_valid_test()
[all...]
H A Dreserved_bits_mmcra_sample_elig_mode_test.c7 #include "../event.h"
17 * Input event code uses these sampling bits along with
23 struct event event; in reserved_bits_mmcra_sample_elig_mode() local
37 event_init(&event, 0x50401e0); in reserved_bits_mmcra_sample_elig_mode()
38 FAIL_IF(!event_open(&event)); in reserved_bits_mmcra_sample_elig_mode()
40 event_init(&event, 0x90401e0); in reserved_bits_mmcra_sample_elig_mode()
41 FAIL_IF(!event_open(&event)); in reserved_bits_mmcra_sample_elig_mode()
43 event_init(&event, 0xD0401e0); in reserved_bits_mmcra_sample_elig_mode()
44 FAIL_IF(!event_open(&event)); in reserved_bits_mmcra_sample_elig_mode()
[all...]
/linux/kernel/events/
H A Dcore.c239 static bool is_kernel_event(struct perf_event *event) in is_kernel_event() argument
241 return READ_ONCE(event->owner) == TASK_TOMBSTONE; in is_kernel_event()
275 struct perf_event *event; member
283 struct perf_event *event = efs->event; in event_function() local
284 struct perf_event_context *ctx = event->ctx; in event_function()
319 efs->func(event, cpuctx, ctx, efs->data); in event_function()
326 static void event_function_call(struct perf_event *event, event_f func, void *data) in event_function_call() argument
328 struct perf_event_context *ctx = event->ctx; in event_function_call()
332 .event = event, in event_function_call()
337 if (!event->parent) { in event_function_call()
[all …]
/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A 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 …]
H A 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/drivers/gpu/drm/nouveau/nvkm/core/
H A 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()
30 nvkm_trace(event->subdev, "event: decr %08x on %d\n", types, index); in nvkm_event_put()
34 if (--event->refs[index * event->types_nr + type] == 0) { in nvkm_event_put()
35 nvkm_trace(event->subdev, "event: blocking %d on %d\n", type, index); in nvkm_event_put()
36 if (event->func->fini) in nvkm_event_put()
37 event->func->fini(event, 1 << type, index); in nvkm_event_put()
43 nvkm_event_get(struct nvkm_event *event, u32 types, int index) in nvkm_event_get() argument
45 assert_spin_locked(&event->refs_lock); in nvkm_event_get()
47 nvkm_trace(event->subdev, "event: incr %08x on %d\n", types, index); in nvkm_event_get()
[all …]
/linux/net/sctp/
H A 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 …]
H A Dstream_interleave.c125 struct sctp_ulpevent *event) in sctp_intl_store_reasm() argument
132 __skb_queue_tail(&ulpq->reasm, sctp_event2skb(event)); in sctp_intl_store_reasm()
138 if (event->stream == cevent->stream && in sctp_intl_store_reasm()
139 event->mid == cevent->mid && in sctp_intl_store_reasm()
141 (!(event->msg_flags & SCTP_DATA_FIRST_FRAG) && in sctp_intl_store_reasm()
142 event->fsn > cevent->fsn))) { in sctp_intl_store_reasm()
143 __skb_queue_tail(&ulpq->reasm, sctp_event2skb(event)); in sctp_intl_store_reasm()
147 if ((event->stream == cevent->stream && in sctp_intl_store_reasm()
148 MID_lt(cevent->mid, event->mid)) || in sctp_intl_store_reasm()
149 event->stream > cevent->stream) { in sctp_intl_store_reasm()
[all …]
/linux/tools/perf/util/
H A Devent.c8 #include <perf/event.h>
17 #include "event.h"
35 #include "bpf-event.h"
157 struct perf_record_stat_config *event) in perf_event__read_stat_config()
161 for (i = 0; i < event->nr; i++) { in perf_event__read_stat_config()
163 switch (event->data[i].tag) { in perf_event__read_stat_config()
166 config->__val = event->data[i].val; \ in perf_event__read_stat_config()
176 event->data[i].tag); in perf_event__read_stat_config()
181 size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp)
185 if (event in perf_event__fprintf_comm()
158 perf_event__read_stat_config(struct perf_stat_config * config,struct perf_record_stat_config * event) perf_event__read_stat_config() argument
182 perf_event__fprintf_comm(union perf_event * event,FILE * fp) perf_event__fprintf_comm() argument
194 perf_event__fprintf_namespaces(union perf_event * event,FILE * fp) perf_event__fprintf_namespaces() argument
221 perf_event__fprintf_cgroup(union perf_event * event,FILE * fp) perf_event__fprintf_cgroup() argument
228 perf_event__process_comm(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__process_comm() argument
236 perf_event__process_namespaces(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__process_namespaces() argument
244 perf_event__process_cgroup(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__process_cgroup() argument
252 perf_event__process_lost(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__process_lost() argument
260 perf_event__process_aux(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample __maybe_unused,struct machine * machine) perf_event__process_aux() argument
268 perf_event__process_itrace_start(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample __maybe_unused,struct machine * machine) perf_event__process_itrace_start() argument
276 perf_event__process_aux_output_hw_id(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample __maybe_unused,struct machine * machine) perf_event__process_aux_output_hw_id() argument
284 perf_event__process_lost_samples(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__process_lost_samples() argument
292 perf_event__process_switch(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample __maybe_unused,struct machine * machine) perf_event__process_switch() argument
300 perf_event__process_ksymbol(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample __maybe_unused,struct machine * machine) perf_event__process_ksymbol() argument
308 perf_event__process_bpf(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__process_bpf() argument
316 perf_event__process_text_poke(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__process_text_poke() argument
323 perf_event__fprintf_mmap(union perf_event * event,FILE * fp) perf_event__fprintf_mmap() argument
332 perf_event__fprintf_mmap2(union perf_event * event,FILE * fp) perf_event__fprintf_mmap2() argument
366 perf_event__fprintf_thread_map(union perf_event * event,FILE * fp) perf_event__fprintf_thread_map() argument
382 perf_event__fprintf_cpu_map(union perf_event * event,FILE * fp) perf_event__fprintf_cpu_map() argument
399 perf_event__process_mmap(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__process_mmap() argument
407 perf_event__process_mmap2(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__process_mmap2() argument
414 perf_event__fprintf_task(union perf_event * event,FILE * fp) perf_event__fprintf_task() argument
422 perf_event__process_fork(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__process_fork() argument
430 perf_event__process_exit(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__process_exit() argument
438 perf_event__exit_del_thread(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample __maybe_unused,struct machine * machine) perf_event__exit_del_thread() argument
457 perf_event__fprintf_aux(union perf_event * event,FILE * fp) perf_event__fprintf_aux() argument
468 perf_event__fprintf_itrace_start(union perf_event * event,FILE * fp) perf_event__fprintf_itrace_start() argument
474 perf_event__fprintf_aux_output_hw_id(union perf_event * event,FILE * fp) perf_event__fprintf_aux_output_hw_id() argument
480 perf_event__fprintf_switch(union perf_event * event,FILE * fp) perf_event__fprintf_switch() argument
496 perf_event__fprintf_lost(union perf_event * event,FILE * fp) perf_event__fprintf_lost() argument
501 perf_event__fprintf_ksymbol(union perf_event * event,FILE * fp) perf_event__fprintf_ksymbol() argument
509 perf_event__fprintf_bpf(union perf_event * event,FILE * fp) perf_event__fprintf_bpf() argument
515 perf_event__fprintf_bpf_metadata(union perf_event * event,FILE * fp) perf_event__fprintf_bpf_metadata() argument
546 perf_event__fprintf_text_poke(union perf_event * event,struct machine * machine,FILE * fp) perf_event__fprintf_text_poke() argument
576 perf_event__fprintf_schedstat_cpu(union perf_event * event,FILE * fp) perf_event__fprintf_schedstat_cpu() argument
601 perf_event__fprintf_schedstat_domain(union perf_event * event,FILE * fp) perf_event__fprintf_schedstat_domain() argument
626 perf_event__fprintf(union perf_event * event,struct machine * machine,FILE * fp) perf_event__fprintf() argument
687 perf_event__process(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__process() argument
[all...]
H A Dsession.c15 #include <perf/event.h>
46 union perf_event *event,
130 struct ordered_event *event) in ordered_events__deliver_event() argument
134 int ret = perf_session__deliver_event(session, event->event, in ordered_events__deliver_event()
135 session->tool, event->file_offset, in ordered_events__deliver_event()
136 event->file_path); in ordered_events__deliver_event()
139 pr_err("%#" PRIx64 " [%#x]: ordered event processing failed (%d) for event of type: %s (%d)\n",
140 event
269 swap_sample_id_all(union perf_event * event,void * data) swap_sample_id_all() argument
278 perf_event__all64_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__all64_swap() argument
285 perf_event__comm_swap(union perf_event * event,bool sample_id_all) perf_event__comm_swap() argument
298 perf_event__mmap_swap(union perf_event * event,bool sample_id_all) perf_event__mmap_swap() argument
315 perf_event__mmap2_swap(union perf_event * event,bool sample_id_all) perf_event__mmap2_swap() argument
338 perf_event__task_swap(union perf_event * event,bool sample_id_all) perf_event__task_swap() argument
350 perf_event__read_swap(union perf_event * event,bool sample_id_all) perf_event__read_swap() argument
363 perf_event__aux_swap(union perf_event * event,bool sample_id_all) perf_event__aux_swap() argument
373 perf_event__itrace_start_swap(union perf_event * event,bool sample_id_all) perf_event__itrace_start_swap() argument
383 perf_event__switch_swap(union perf_event * event,bool sample_id_all) perf_event__switch_swap() argument
396 perf_event__text_poke_swap(union perf_event * event,bool sample_id_all) perf_event__text_poke_swap() argument
414 perf_event__throttle_swap(union perf_event * event,bool sample_id_all) perf_event__throttle_swap() argument
425 perf_event__namespaces_swap(union perf_event * event,bool sample_id_all) perf_event__namespaces_swap() argument
445 perf_event__cgroup_swap(union perf_event * event,bool sample_id_all) perf_event__cgroup_swap() argument
535 perf_event__hdr_attr_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__hdr_attr_swap() argument
547 perf_event__event_update_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__event_update_swap() argument
554 perf_event__event_type_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__event_type_swap() argument
561 perf_event__tracing_data_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__tracing_data_swap() argument
567 perf_event__auxtrace_info_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__auxtrace_info_swap() argument
579 perf_event__auxtrace_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__auxtrace_swap() argument
590 perf_event__auxtrace_error_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__auxtrace_error_swap() argument
608 perf_event__thread_map_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__thread_map_swap() argument
619 perf_event__cpu_map_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__cpu_map_swap() argument
660 perf_event__stat_config_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__stat_config_swap() argument
670 perf_event__stat_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__stat_swap() argument
681 perf_event__stat_round_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__stat_round_swap() argument
688 perf_event__time_conv_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__time_conv_swap() argument
807 perf_session__queue_event(struct perf_session * s,union perf_event * event,u64 timestamp,u64 file_offset,const char * file_path) perf_session__queue_event() argument
1033 evlist__print_tstamp(struct evlist * evlist,union perf_event * event,struct perf_sample * sample) evlist__print_tstamp() argument
1084 dump_event(struct evlist * evlist,union perf_event * event,u64 file_offset,struct perf_sample * sample,const char * file_path) dump_event() argument
1113 dump_sample(struct machine * machine,struct evsel * evsel,union perf_event * event,struct perf_sample * sample) dump_sample() argument
1179 dump_deferred_callchain(struct evsel * evsel,union perf_event * event,struct perf_sample * sample) dump_deferred_callchain() argument
1192 dump_read(struct evsel * evsel,union perf_event * event) dump_read() argument
1222 machines__find_for_cpumode(struct machines * machines,union perf_event * event,struct perf_sample * sample) machines__find_for_cpumode() argument
1253 deliver_sample_value(struct evlist * evlist,const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct sample_read_value * v,struct machine * machine,bool per_thread) deliver_sample_value() argument
1291 deliver_sample_group(struct evlist * evlist,const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine,u64 read_format,bool per_thread) deliver_sample_group() argument
1315 evlist__deliver_sample(struct evlist * evlist,const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) evlist__deliver_sample() argument
1344 union perf_event *event; global() member
1353 evlist__deliver_deferred_callchain(struct evlist * evlist,const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) evlist__deliver_deferred_callchain() argument
1439 machines__deliver_event(struct machines * machines,struct evlist * evlist,union perf_event * event,struct perf_sample * sample,const struct perf_tool * tool,u64 file_offset,const char * file_path) machines__deliver_event() argument
1549 perf_session__deliver_event(struct perf_session * session,union perf_event * event,const struct perf_tool * tool,u64 file_offset,const char * file_path) perf_session__deliver_event() argument
1583 perf_session__process_user_event(struct perf_session * session,union perf_event * event,u64 file_offset,const char * file_path) perf_session__process_user_event() argument
1703 perf_session__deliver_synth_event(struct perf_session * session,union perf_event * event,struct perf_sample * sample) perf_session__deliver_synth_event() argument
1741 event_swap(union perf_event * event,bool sample_id_all) event_swap() argument
1755 union perf_event *event; perf_session__peek_event() local
1811 union perf_event *event; perf_session__peek_events() local
1835 perf_session__process_event(struct perf_session * session,union perf_event * event,u64 file_offset,const char * file_path) perf_session__process_event() argument
2037 union perf_event *event; __perf_session__process_pipe_events() local
2160 union perf_event *event; prefetch_event() local
2217 union perf_event *event = fetch_decomp_event(decomp->head, decomp->size, decomp->data, __perf_session__process_decomp_events() local
2367 union perf_event *event; reader__read_event() local
2451 process_simple(struct perf_session * session,union perf_event * event,u64 file_offset,const char * file_path) process_simple() argument
2858 perf_event__process_id_index(const struct perf_tool * tool __maybe_unused,struct perf_session * session,union perf_event * event) perf_event__process_id_index() argument
[all...]
/linux/arch/s390/kernel/
H A Dperf_pai.c58 struct perf_event *event; /* Perf event for sampling */ member
143 static void pai_event_destroy_cpu(struct perf_event *event, int cpu) in pai_event_destroy_cpu() argument
145 int idx = PAI_PMU_IDX(event); in pai_event_destroy_cpu()
151 "refcnt %u\n", __func__, event->attr.config, idx, in pai_event_destroy_cpu()
152 event->cpu, cpump->active_events, in pai_event_destroy_cpu()
160 static void pai_event_destroy(struct perf_event *event) in pai_event_destroy() argument
164 free_page(PAI_SAVE_AREA(event)); in pai_event_destroy()
165 if (event->cpu == -1) { in pai_event_destroy()
166 struct cpumask *mask = PAI_CPU_MASK(event); in pai_event_destroy()
169 pai_event_destroy_cpu(event, cpu); in pai_event_destroy()
[all …]
/linux/drivers/perf/
H A Driscv_pmu.c21 static bool riscv_perf_user_access(struct perf_event *event) in riscv_perf_user_access() argument
23 return ((event->attr.type == PERF_TYPE_HARDWARE) || in riscv_perf_user_access()
24 (event->attr.type == PERF_TYPE_HW_CACHE) || in riscv_perf_user_access()
25 (event->attr.type == PERF_TYPE_RAW)) && in riscv_perf_user_access()
26 !!(event->hw.flags & PERF_EVENT_FLAG_USER_READ_CNT) && in riscv_perf_user_access()
27 (event->hw.idx != -1); in riscv_perf_user_access()
30 void arch_perf_update_userpage(struct perf_event *event, in arch_perf_update_userpage() argument
40 userpg->cap_user_rdpmc = riscv_perf_user_access(event); in arch_perf_update_userpage()
48 userpg->pmc_width = to_riscv_pmu(event->pmu)->ctr_get_width(event->hw.idx) + 1; in arch_perf_update_userpage()
145 u64 riscv_pmu_ctr_get_width_mask(struct perf_event *event) in riscv_pmu_ctr_get_width_mask() argument
[all …]
H A Dalibaba_uncore_drw_pmu.c111 #define GET_DRW_EVENTID(event) FIELD_GET(DRW_CONFIG_EVENTID, (event)->attr.config) argument
209 ALI_DRW_PMU_FORMAT_ATTR(event, "config:0-7"),
266 static int ali_drw_get_counter_idx(struct perf_event *event) in ali_drw_get_counter_idx() argument
268 struct ali_drw_pmu *drw_pmu = to_ali_drw_pmu(event->pmu); in ali_drw_get_counter_idx()
280 static u64 ali_drw_pmu_read_counter(struct perf_event *event) in ali_drw_pmu_read_counter() argument
282 struct ali_drw_pmu *drw_pmu = to_ali_drw_pmu(event->pmu); in ali_drw_pmu_read_counter()
285 if (GET_DRW_EVENTID(event) == ALI_DRW_PMU_CYCLE_EVT_ID) { in ali_drw_pmu_read_counter()
294 ALI_DRW_PMU_COMMON_COUNTERn(event->hw.idx)); in ali_drw_pmu_read_counter()
297 static void ali_drw_pmu_event_update(struct perf_event *event) in ali_drw_pmu_event_update() argument
299 struct hw_perf_event *hwc = &event->hw; in ali_drw_pmu_event_update()
[all …]
H A Darm_pmu.c112 static inline u64 arm_pmu_event_max_period(struct perf_event *event) in arm_pmu_event_max_period() argument
114 if (event->hw.flags & ARMPMU_EVT_64BIT) in arm_pmu_event_max_period()
116 else if (event->hw.flags & ARMPMU_EVT_63BIT) in arm_pmu_event_max_period()
118 else if (event->hw.flags & ARMPMU_EVT_47BIT) in arm_pmu_event_max_period()
178 armpmu_map_event(struct perf_event *event, in armpmu_map_event() argument
186 u64 config = event->attr.config; in armpmu_map_event()
187 int type = event->attr.type; in armpmu_map_event()
189 if (type == event->pmu->type) in armpmu_map_event()
204 int armpmu_event_set_period(struct perf_event *event) in armpmu_event_set_period() argument
206 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_event_set_period()
[all …]
/linux/drivers/md/
H A 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/drivers/firmware/
H A Darm_sdei.c77 struct sdei_event *event; member
82 #define CROSSCALL_INIT(arg, event) \ argument
84 arg.event = event; \
90 struct sdei_event *event) in sdei_do_local_call() argument
94 CROSSCALL_INIT(arg, event); in sdei_do_local_call()
101 struct sdei_event *event) in sdei_do_cross_call() argument
105 CROSSCALL_INIT(arg, event); in sdei_do_cross_call()
191 static int sdei_api_event_get_info(u32 event, u32 info, u64 *result) in sdei_api_event_get_info() argument
193 return invoke_sdei_fn(SDEI_1_0_FN_SDEI_EVENT_GET_INFO, event, info, 0, in sdei_api_event_get_info()
203 struct sdei_event *event; in sdei_event_create() local
[all …]
/linux/Documentation/ABI/testing/
H A 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/scripts/dtc/
H A 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/arch/powerpc/kernel/
H A 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_obj(*event, GFP_ATOMIC); in __eeh_send_failure_event()
[all …]
/linux/arch/sh/kernel/
H A 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/drivers/perf/hisilicon/
H A Dhisi_uncore_pmu.c97 static bool hisi_validate_event_group(struct perf_event *event) in hisi_validate_event_group() argument
99 struct perf_event *sibling, *leader = event->group_leader; in hisi_validate_event_group()
100 struct hisi_pmu *hisi_pmu = to_hisi_pmu(event->pmu); in hisi_validate_event_group()
109 if (leader->pmu != event->pmu) in hisi_validate_event_group()
113 if (leader != event) in hisi_validate_event_group()
117 for_each_sibling_event(sibling, event->group_leader) { in hisi_validate_event_group()
120 if (sibling->pmu != event->pmu) in hisi_validate_event_group()
130 int hisi_uncore_pmu_get_event_idx(struct perf_event *event) in hisi_uncore_pmu_get_event_idx() argument
132 struct hisi_pmu *hisi_pmu = to_hisi_pmu(event->pmu); in hisi_uncore_pmu_get_event_idx()
155 struct perf_event *event; in hisi_uncore_pmu_isr() local
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_pmu.c91 static struct xe_gt *event_to_gt(struct perf_event *event) in event_to_gt() argument
93 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_to_gt()
94 u64 gt = config_to_gt_id(event->attr.config); in event_to_gt()
99 static struct xe_hw_engine *event_to_hwe(struct perf_event *event) in event_to_hwe() argument
101 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_to_hwe()
103 u64 config = event->attr.config; in event_to_hwe()
125 static bool is_gt_frequency_event(struct perf_event *event) in is_gt_frequency_event() argument
127 u32 id = config_to_event_id(event->attr.config); in is_gt_frequency_event()
133 static bool event_gt_forcewake(struct perf_event *event) in event_gt_forcewake() argument
135 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_gt_forcewake()
[all …]
/linux/include/linux/
H A Dperf_event.h385 int (*event_init) (struct perf_event *event);
391 void (*event_mapped) (struct perf_event *event, struct mm_struct *mm); /* optional */
392 void (*event_unmapped) (struct perf_event *event, struct mm_struct *mm); /* optional */
432 int (*add) (struct perf_event *event, int flags);
433 void (*del) (struct perf_event *event, int flags);
465 void (*start) (struct perf_event *event, int flags);
466 void (*stop) (struct perf_event *event, int flags);
474 void (*read) (struct perf_event *event);
509 int (*event_idx) (struct perf_event *event); /*optional */
525 void *(*setup_aux) (struct perf_event *event, void **pages,
[all …]
/linux/tools/perf/tests/
H A Dparse-metric.c18 const char *event; member
26 while (v->event) { in find_value()
27 if (!strcmp(name, v->event)) in find_value()
136 { .event = "inst_retired.any", .val = 300 }, in test_ipc()
137 { .event = "cpu_clk_unhalted.thread", .val = 200 }, in test_ipc()
138 { .event = NULL, }, in test_ipc()
153 { .event = "idq_uops_not_delivered.core", .val = 300 }, in test_frontend()
154 { .event = "cpu_clk_unhalted.thread", .val = 200 }, in test_frontend()
155 { .event = "cpu_clk_unhalted.one_thread_active", .val = 400 }, in test_frontend()
156 { .event = "cpu_clk_unhalted.ref_xclk", .val = 600 }, in test_frontend()
[all …]
/linux/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dmmcra_thresh_marked_sample_test.c25 struct event event; in mmcra_thresh_marked_sample() local
33 event_init_sampling(&event, EventCode); in mmcra_thresh_marked_sample()
34 event.attr.sample_regs_intr = platform_extended_mask; in mmcra_thresh_marked_sample()
35 FAIL_IF(event_open(&event)); in mmcra_thresh_marked_sample()
36 event.mmap_buffer = event_sample_buf_mmap(event.fd, 1); in mmcra_thresh_marked_sample()
38 FAIL_IF(event_enable(&event)); in mmcra_thresh_marked_sample()
43 FAIL_IF(event_disable(&event)); in mmcra_thresh_marked_sample()
46 FAIL_IF(!collect_samples(event.mmap_buffer)); in mmcra_thresh_marked_sample()
48 intr_regs = get_intr_regs(&event, event.mmap_buffer); in mmcra_thresh_marked_sample()
58 FAIL_IF(EV_CODE_EXTRACT(event.attr.config, thd_sel) != in mmcra_thresh_marked_sample()
[all …]

12345678910>>...99