Home
last modified time | relevance | path

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

12345678910>>...113

/linux/tools/testing/selftests/powerpc/pmu/event_code_tests/
H A 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 …]
H A 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/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/kernel/events/
H A Dcore.c211 static bool is_kernel_event(struct perf_event *event) in is_kernel_event() argument
213 return READ_ONCE(event->owner) == TASK_TOMBSTONE; in is_kernel_event()
247 struct perf_event *event; member
255 struct perf_event *event = efs->event; in event_function() local
256 struct perf_event_context *ctx = event->ctx; in event_function()
291 efs->func(event, cpuctx, ctx, efs->data); in event_function()
298 static void event_function_call(struct perf_event *event, event_f func, void *data) in event_function_call() argument
300 struct perf_event_context *ctx = event->ctx; in event_function_call()
304 .event = event, in event_function_call()
309 if (!event->parent) { in event_function_call()
[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/arch/powerpc/perf/
H A 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 …]
H A Disa207-common.c11 PMU_FORMAT_ATTR(event, "config:0-49");
45 static inline bool event_is_fab_match(u64 event) in event_is_fab_match() argument
48 event &= 0xff0fe; in event_is_fab_match()
51 return (event == 0x30056 || event == 0x4f052); in event_is_fab_match()
54 static bool is_event_valid(u64 event) in is_event_valid() argument
63 return !(event & ~valid_mask); in is_event_valid()
66 static inline bool is_event_marked(u64 event) in is_event_marked() argument
68 if (event & EVENT_IS_MARKED) in is_event_marked()
74 static unsigned long sdar_mod_val(u64 event) in sdar_mod_val() argument
77 return p10_SDAR_MODE(event); in sdar_mod_val()
[all …]
/linux/tools/perf/util/
H A Dsession.c43 union perf_event *event,
127 struct ordered_event *event) in ordered_events__deliver_event() argument
132 return perf_session__deliver_event(session, event->event, in ordered_events__deliver_event()
133 session->tool, event->file_offset, in ordered_events__deliver_event()
134 event->file_path); in ordered_events__deliver_event()
201 * kernel MMAP event, in perf_event__process_mmap(). in __perf_session__new()
262 static void swap_sample_id_all(union perf_event *event, void *data) in swap_sample_id_all() argument
264 void *end = (void *) event + event in swap_sample_id_all()
271 perf_event__all64_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__all64_swap() argument
278 perf_event__comm_swap(union perf_event * event,bool sample_id_all) perf_event__comm_swap() argument
291 perf_event__mmap_swap(union perf_event * event,bool sample_id_all) perf_event__mmap_swap() argument
308 perf_event__mmap2_swap(union perf_event * event,bool sample_id_all) perf_event__mmap2_swap() argument
331 perf_event__task_swap(union perf_event * event,bool sample_id_all) perf_event__task_swap() argument
343 perf_event__read_swap(union perf_event * event,bool sample_id_all) perf_event__read_swap() argument
356 perf_event__aux_swap(union perf_event * event,bool sample_id_all) perf_event__aux_swap() argument
366 perf_event__itrace_start_swap(union perf_event * event,bool sample_id_all) perf_event__itrace_start_swap() argument
376 perf_event__switch_swap(union perf_event * event,bool sample_id_all) perf_event__switch_swap() argument
389 perf_event__text_poke_swap(union perf_event * event,bool sample_id_all) perf_event__text_poke_swap() argument
407 perf_event__throttle_swap(union perf_event * event,bool sample_id_all) perf_event__throttle_swap() argument
418 perf_event__namespaces_swap(union perf_event * event,bool sample_id_all) perf_event__namespaces_swap() argument
438 perf_event__cgroup_swap(union perf_event * event,bool sample_id_all) perf_event__cgroup_swap() argument
528 perf_event__hdr_attr_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__hdr_attr_swap() argument
540 perf_event__event_update_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__event_update_swap() argument
547 perf_event__event_type_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__event_type_swap() argument
554 perf_event__tracing_data_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__tracing_data_swap() argument
560 perf_event__auxtrace_info_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__auxtrace_info_swap() argument
572 perf_event__auxtrace_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__auxtrace_swap() argument
583 perf_event__auxtrace_error_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__auxtrace_error_swap() argument
601 perf_event__thread_map_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__thread_map_swap() argument
612 perf_event__cpu_map_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__cpu_map_swap() argument
653 perf_event__stat_config_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__stat_config_swap() argument
663 perf_event__stat_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__stat_swap() argument
674 perf_event__stat_round_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__stat_round_swap() argument
681 perf_event__time_conv_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__time_conv_swap() argument
783 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
972 evlist__print_tstamp(struct evlist * evlist,union perf_event * event,struct perf_sample * sample) evlist__print_tstamp() argument
1023 dump_event(struct evlist * evlist,union perf_event * event,u64 file_offset,struct perf_sample * sample,const char * file_path) dump_event() argument
1052 dump_sample(struct evsel * evsel,union perf_event * event,struct perf_sample * sample,const char * arch) dump_sample() argument
1110 dump_read(struct evsel * evsel,union perf_event * event) dump_read() argument
1140 machines__find_for_cpumode(struct machines * machines,union perf_event * event,struct perf_sample * sample) machines__find_for_cpumode() argument
1171 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) deliver_sample_value() argument
1203 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) deliver_sample_group() argument
1225 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
1247 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
1337 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
1366 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
1453 perf_session__deliver_synth_event(struct perf_session * session,union perf_event * event,struct perf_sample * sample) perf_session__deliver_synth_event() argument
1491 event_swap(union perf_event * event,bool sample_id_all) event_swap() argument
1505 union perf_event *event; perf_session__peek_event() local
1561 union perf_event *event; perf_session__peek_events() local
1585 perf_session__process_event(struct perf_session * session,union perf_event * event,u64 file_offset,const char * file_path) perf_session__process_event() argument
1778 union perf_event *event; __perf_session__process_pipe_events() local
1898 union perf_event *event; prefetch_event() local
1955 union perf_event *event = fetch_decomp_event(decomp->head, decomp->size, decomp->data, __perf_session__process_decomp_events() local
2105 union perf_event *event; reader__read_event() local
2188 process_simple(struct perf_session * session,union perf_event * event,u64 file_offset,const char * file_path) process_simple() argument
2572 perf_event__process_id_index(struct perf_session * session,union perf_event * event) perf_event__process_id_index() argument
[all...]
H A Devent.c150 struct perf_record_stat_config *event) in perf_event__read_stat_config() argument
154 for (i = 0; i < event->nr; i++) { in perf_event__read_stat_config()
156 switch (event->data[i].tag) { in perf_event__read_stat_config()
159 config->__val = event->data[i].val; \ in perf_event__read_stat_config()
169 event->data[i].tag); in perf_event__read_stat_config()
174 size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp) in perf_event__fprintf_comm() argument
178 if (event->header.misc & PERF_RECORD_MISC_COMM_EXEC) in perf_event__fprintf_comm()
183 return fprintf(fp, "%s: %s:%d/%d\n", s, event->comm.comm, event->comm.pid, event->comm.tid); in perf_event__fprintf_comm()
186 size_t perf_event__fprintf_namespaces(union perf_event *event, FILE *fp) in perf_event__fprintf_namespaces() argument
192 ns_link_info = event->namespaces.link_info; in perf_event__fprintf_namespaces()
[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 Darm_pmu.c108 static inline u64 arm_pmu_event_max_period(struct perf_event *event) in arm_pmu_event_max_period() argument
110 if (event->hw.flags & ARMPMU_EVT_64BIT) in arm_pmu_event_max_period()
112 else if (event->hw.flags & ARMPMU_EVT_63BIT) in arm_pmu_event_max_period()
114 else if (event->hw.flags & ARMPMU_EVT_47BIT) in arm_pmu_event_max_period()
174 armpmu_map_event(struct perf_event *event, in armpmu_map_event() argument
182 u64 config = event->attr.config; in armpmu_map_event()
183 int type = event->attr.type; in armpmu_map_event()
185 if (type == event->pmu->type) in armpmu_map_event()
200 int armpmu_event_set_period(struct perf_event *event) in armpmu_event_set_period() argument
202 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/arch/s390/kernel/
H A Dperf_pai_crypto.c39 struct perf_event *event; /* Perf event for sampling */ member
87 static void paicrypt_event_destroy_cpu(struct perf_event *event, int cpu) in paicrypt_event_destroy_cpu() argument
94 "refcnt %u\n", __func__, event->attr.config, in paicrypt_event_destroy_cpu()
95 event->cpu, cpump->active_events, in paicrypt_event_destroy_cpu()
110 static void paicrypt_event_destroy(struct perf_event *event) in paicrypt_event_destroy() argument
115 free_page(PAI_SAVE_AREA(event)); in paicrypt_event_destroy()
116 if (event->cpu == -1) { in paicrypt_event_destroy()
117 struct cpumask *mask = PAI_CPU_MASK(event); in paicrypt_event_destroy()
120 paicrypt_event_destroy_cpu(event, cpu); in paicrypt_event_destroy()
123 paicrypt_event_destroy_cpu(event, event->cpu); in paicrypt_event_destroy()
[all …]
H A Dperf_pai_ext.c52 struct perf_event *event; /* Perf event for sampling */ member
120 static void paiext_event_destroy_cpu(struct perf_event *event, int cpu) in paiext_event_destroy_cpu() argument
132 static void paiext_event_destroy(struct perf_event *event) in paiext_event_destroy() argument
136 free_page(PAI_SAVE_AREA(event)); in paiext_event_destroy()
137 if (event->cpu == -1) { in paiext_event_destroy()
138 struct cpumask *mask = PAI_CPU_MASK(event); in paiext_event_destroy()
141 paiext_event_destroy_cpu(event, cpu); in paiext_event_destroy()
144 paiext_event_destroy_cpu(event, event->cpu); in paiext_event_destroy()
147 event->cpu); in paiext_event_destroy()
164 static int paiext_alloc_cpu(struct perf_event *event, int cpu) in paiext_alloc_cpu() argument
[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/drivers/perf/hisilicon/
H A Dhisi_uncore_pmu.c51 static bool hisi_validate_event_group(struct perf_event *event) in hisi_validate_event_group() argument
53 struct perf_event *sibling, *leader = event->group_leader; in hisi_validate_event_group()
54 struct hisi_pmu *hisi_pmu = to_hisi_pmu(event->pmu); in hisi_validate_event_group()
63 if (leader->pmu != event->pmu) in hisi_validate_event_group()
67 if (leader != event) in hisi_validate_event_group()
71 for_each_sibling_event(sibling, event->group_leader) { in hisi_validate_event_group()
74 if (sibling->pmu != event->pmu) in hisi_validate_event_group()
84 int hisi_uncore_pmu_get_event_idx(struct perf_event *event) in hisi_uncore_pmu_get_event_idx() argument
86 struct hisi_pmu *hisi_pmu = to_hisi_pmu(event->pmu); in hisi_uncore_pmu_get_event_idx()
119 struct perf_event *event; in hisi_uncore_pmu_isr() local
[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(sizeof(*event), GFP_ATOMIC); in __eeh_send_failure_event()
[all …]
/linux/include/trace/events/
H A 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/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/fs/notify/fanotify/
H A 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