Searched refs:event (Results 76 - 100 of 2972) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/powerpc/pmu/ebb/
H A Dmulti_ebb_procs_test.c32 struct event event; local
39 event_init_named(&event, 0x1001e, "cycles");
40 event_leader_ebb_init(&event);
42 event.attr.exclude_kernel = 1;
43 event.attr.exclude_hv = 1;
44 event.attr.exclude_idle = 1;
46 FAIL_IF(event_open(&event));
52 FAIL_IF(ebb_event_enable(&event));
66 event_close(&event);
[all...]
/linux-master/drivers/perf/hisilicon/
H A Dhisi_uncore_pmu.c3 * HiSilicon SoC Hardware event counters support
26 * PMU event attributes
51 static bool hisi_validate_event_group(struct perf_event *event) argument
53 struct perf_event *sibling, *leader = event->group_leader;
54 struct hisi_pmu *hisi_pmu = to_hisi_pmu(event->pmu);
55 /* Include count for the event */
63 if (leader->pmu != event->pmu)
67 if (leader != event)
71 for_each_sibling_event(sibling, event->group_leader) {
74 if (sibling->pmu != event
84 hisi_uncore_pmu_get_event_idx(struct perf_event *event) argument
119 struct perf_event *event; local
170 hisi_uncore_pmu_event_init(struct perf_event *event) argument
228 hisi_uncore_pmu_enable_event(struct perf_event *event) argument
246 hisi_uncore_pmu_disable_event(struct perf_event *event) argument
258 hisi_uncore_pmu_set_event_period(struct perf_event *event) argument
278 hisi_uncore_pmu_event_update(struct perf_event *event) argument
299 hisi_uncore_pmu_start(struct perf_event *event, int flags) argument
322 hisi_uncore_pmu_stop(struct perf_event *event, int flags) argument
339 hisi_uncore_pmu_add(struct perf_event *event, int flags) argument
362 hisi_uncore_pmu_del(struct perf_event *event, int flags) argument
374 hisi_uncore_pmu_read(struct perf_event *event) argument
[all...]
/linux-master/drivers/staging/media/atomisp/pci/runtime/event/src/
H A Devent.c38 * @brief Encode the information into the software-event.
73 u32 event,
84 * In case of a PORT_EOF event we overwrite with
89 payload[0] = event & 0xff; /*event_code */
90 payload[1] = (event >> 8) & 0xff;
91 payload[2] = (event >> 16) & 0xff;
97 payload[3] = (event >> 24) & 0xff;
105 payload[3] = (event >> 24) & 0xff;
72 ia_css_event_decode( u32 event, uint8_t *payload) argument
/linux-master/tools/perf/python/
H A Dtwatch.py35 event = evlist.read_on_cpu(cpu)
36 if not event:
38 print("cpu: {0}, pid: {1}, tid: {2} {3}".format(event.sample_cpu,
39 event.sample_pid,
40 event.sample_tid,
41 event))
55 It is possible as well to use event.misc & perf.PERF_RECORD_MISC_SWITCH_OUT
/linux-master/tools/perf/util/
H A Devent.c15 #include "event.h"
33 #include "bpf-event.h"
150 struct perf_record_stat_config *event)
154 for (i = 0; i < event->nr; i++) {
156 switch (event->data[i].tag) {
159 config->__val = event->data[i].val; \
169 event->data[i].tag);
174 size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp) argument
178 if (event->header.misc & PERF_RECORD_MISC_COMM_EXEC)
183 return fprintf(fp, "%s: %s:%d/%d\n", s, event
149 perf_event__read_stat_config(struct perf_stat_config *config, struct perf_record_stat_config *event) argument
186 perf_event__fprintf_namespaces(union perf_event *event, FILE *fp) argument
213 perf_event__fprintf_cgroup(union perf_event *event, FILE *fp) argument
219 perf_event__process_comm(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
227 perf_event__process_namespaces(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
235 perf_event__process_cgroup(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
243 perf_event__process_lost(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
251 perf_event__process_aux(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine) argument
259 perf_event__process_itrace_start(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine) argument
267 perf_event__process_aux_output_hw_id(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine) argument
275 perf_event__process_lost_samples(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
283 perf_event__process_switch(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine) argument
291 perf_event__process_ksymbol(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine) argument
299 perf_event__process_bpf(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
307 perf_event__process_text_poke(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
315 perf_event__fprintf_mmap(union perf_event *event, FILE *fp) argument
324 perf_event__fprintf_mmap2(union perf_event *event, FILE *fp) argument
358 perf_event__fprintf_thread_map(union perf_event *event, FILE *fp) argument
374 perf_event__fprintf_cpu_map(union perf_event *event, FILE *fp) argument
390 perf_event__process_mmap(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
398 perf_event__process_mmap2(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
406 perf_event__fprintf_task(union perf_event *event, FILE *fp) argument
413 perf_event__process_fork(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
421 perf_event__process_exit(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
429 perf_event__fprintf_aux(union perf_event *event, FILE *fp) argument
439 perf_event__fprintf_itrace_start(union perf_event *event, FILE *fp) argument
445 perf_event__fprintf_aux_output_hw_id(union perf_event *event, FILE *fp) argument
451 perf_event__fprintf_switch(union perf_event *event, FILE *fp) argument
467 perf_event__fprintf_lost(union perf_event *event, FILE *fp) argument
472 perf_event__fprintf_ksymbol(union perf_event *event, FILE *fp) argument
480 perf_event__fprintf_bpf(union perf_event *event, FILE *fp) argument
503 perf_event__fprintf_text_poke(union perf_event *event, struct machine *machine, FILE *fp) argument
533 perf_event__fprintf(union perf_event *event, struct machine *machine, FILE *fp) argument
590 perf_event__process(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
[all...]
H A Dsample-raw.h9 void evlist__s390_sample_raw(struct evlist *evlist, union perf_event *event,
12 void evlist__amd_sample_raw(struct evlist *evlist, union perf_event *event,
/linux-master/arch/x86/include/uapi/asm/
H A Dist.h26 __u32 event; member in struct:ist_info
/linux-master/include/linux/dma/
H A Dk3-event-router.h13 int (*set_event)(void *priv, u32 event);
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_idc_int.h11 void ice_send_event_to_aux(struct ice_pf *pf, struct iidc_event *event);
/linux-master/fs/notify/
H A Dnotification.c9 * the event happened. When inotify gets an event it will need to add that
10 * event to the group notify queue. Since a single event might need to be on
11 * multiple group's notification queues we can't add the event directly to each
13 * has a pointer back to the original event. Since the majority of events are
15 * event_holder into each event. This means we have a single allocation instead
51 struct fsnotify_event *event)
54 if (!event || event
50 fsnotify_destroy_event(struct fsnotify_group *group, struct fsnotify_event *event) argument
81 fsnotify_insert_event(struct fsnotify_group *group, struct fsnotify_event *event, int (*merge)(struct fsnotify_group *, struct fsnotify_event *), void (*insert)(struct fsnotify_group *, struct fsnotify_event *)) argument
132 fsnotify_remove_queued_event(struct fsnotify_group *group, struct fsnotify_event *event) argument
165 struct fsnotify_event *event = fsnotify_peek_first_event(group); local
183 struct fsnotify_event *event; local
[all...]
/linux-master/tools/testing/selftests/connector/
H A Dproc_filter.c134 int handle_packet(char *buff, int fd, struct proc_event *event) argument
144 event = (struct proc_event *)
147 switch (event->what) {
150 event->event_data.exit.process_pid,
151 event->event_data.exit.process_tgid,
152 event->event_data.exit.exit_code,
153 event->event_data.exit.exit_signal);
157 event->event_data.fork.child_pid,
158 event->event_data.fork.child_tgid,
159 event
[all...]
/linux-master/drivers/acpi/
H A Devent.c3 * event.c - exporting ACPI events via procfs
29 struct acpi_bus_event event; local
31 strcpy(event.device_class, dev->pnp.device_class);
32 strcpy(event.bus_id, dev->pnp.bus_id);
33 event.type = type;
34 event.data = data;
35 return (blocking_notifier_call_chain(&acpi_chain_head, 0, (void *)&event)
64 ACPI_GENL_ATTR_EVENT, /* ACPI event info needed by user space */
100 struct acpi_genl_event *event; local
130 event
[all...]
H A Devged.c58 struct acpi_ged_event *event = data; local
61 acpi_ret = acpi_execute_simple_method(event->handle, NULL, event->gsi);
63 dev_err_once(event->dev, "IRQ method execution failed\n");
71 struct acpi_ged_event *event; local
118 event = devm_kzalloc(dev, sizeof(*event), GFP_KERNEL);
119 if (!event)
122 event->gsi = gsi;
123 event
166 struct acpi_ged_event *event, *next; local
[all...]
/linux-master/drivers/net/wireless/rsi/
H A Drsi_common.h34 static inline int rsi_wait_event(struct rsi_event *event, u32 timeout) argument
39 status = wait_event_interruptible(event->event_queue,
40 (atomic_read(&event->event_condition) == 0));
42 status = wait_event_interruptible_timeout(event->event_queue,
43 (atomic_read(&event->event_condition) == 0),
48 static inline void rsi_set_event(struct rsi_event *event) argument
50 atomic_set(&event->event_condition, 0);
51 wake_up_interruptible(&event->event_queue);
54 static inline void rsi_reset_event(struct rsi_event *event) argument
56 atomic_set(&event
[all...]
/linux-master/tools/perf/arch/x86/tests/
H A Dsample-parsing.c10 #include "event.h"
49 union perf_event *event; local
61 event = malloc(bufsz);
62 if (!event) {
67 memset(event, 0xff, bufsz);
68 event->header.type = PERF_RECORD_SAMPLE;
69 event->header.misc = 0;
70 event->header.size = sz;
72 err = perf_event__synthesize_sample(event, sample_type, 0, &sample);
81 if (*(i - 1 + (u8 *)event) !
[all...]
/linux-master/arch/powerpc/perf/
H A Disa207-common.c11 PMU_FORMAT_ATTR(event, "config:0-49");
45 static inline bool event_is_fab_match(u64 event) argument
48 event &= 0xff0fe;
51 return (event == 0x30056 || event == 0x4f052);
54 static bool is_event_valid(u64 event) argument
63 return !(event & ~valid_mask);
66 static inline bool is_event_marked(u64 event) argument
68 if (event & EVENT_IS_MARKED)
74 static unsigned long sdar_mod_val(u64 event) argument
82 mmcra_sdar_mode(u64 event, unsigned long *mmcra) argument
164 combine_from_event(u64 event) argument
180 event_is_threshold(u64 event) argument
185 is_thresh_cmp_valid(u64 event) argument
206 dc_ic_rld_quad_l1_sel(u64 event) argument
401 isa207_get_constraint(u64 event, unsigned long *maskp, unsigned long *valp, u64 event_config1) argument
558 isa207_compute_mmcr(u64 event[], int n_ev, unsigned int hwc[], struct mmcr_regs *mmcr, struct perf_event *pevents[], u32 flags) argument
739 find_alternative(u64 event, const unsigned int ev_alt[][MAX_ALT], int size) argument
755 isa207_get_alternatives(u64 event, u64 alt[], int size, unsigned int flags, const unsigned int ev_alt[][MAX_ALT]) argument
803 u64 event = ev->attr.config; local
[all...]
H A Dcore-book3s.c3 * Performance event support - powerpc architecture code
39 struct perf_event *event[MAX_HWEVENTS]; member in struct:cpu_hw_events
109 static inline void perf_get_data_addr(struct perf_event *event, struct pt_regs *regs, u64 *addrp) { } argument
124 static bool is_ebb_event(struct perf_event *event) { return false; } argument
125 static int ebb_event_check(struct perf_event *event) { return 0; } argument
126 static void ebb_event_add(struct perf_event *event) { } argument
133 static inline void power_pmu_bhrb_enable(struct perf_event *event) {} argument
134 static inline void power_pmu_bhrb_disable(struct perf_event *event) {} argument
136 static inline void power_pmu_bhrb_read(struct perf_event *event, struct cpu_hw_events *cpuhw) {} argument
202 static inline void perf_get_data_addr(struct perf_event *event, struc argument
414 power_pmu_bhrb_enable(struct perf_event *event) argument
430 power_pmu_bhrb_disable(struct perf_event *event) argument
490 power_pmu_bhrb_read(struct perf_event *event, struct cpu_hw_events *cpuhw) argument
578 is_ebb_event(struct perf_event *event) argument
589 ebb_event_check(struct perf_event *event) argument
615 ebb_event_add(struct perf_event *event) argument
969 power_check_constraints(struct cpu_hw_events *cpuhw, u64 event_id[], unsigned int cflags[], int n_ev, struct perf_event **event) argument
1097 struct perf_event *event; local
1157 power_pmu_read(struct perf_event *event) argument
1220 struct perf_event *event; local
1240 struct perf_event *event; local
1419 struct perf_event *event; local
1598 struct perf_event *event; local
1626 power_pmu_add(struct perf_event *event, int ef_flags) argument
1702 power_pmu_del(struct perf_event *event, int ef_flags) argument
1758 power_pmu_start(struct perf_event *event, int ef_flags) argument
1790 power_pmu_stop(struct perf_event *event, int ef_flags) argument
1898 can_go_on_limited_pmc(struct perf_event *event, u64 ev, unsigned int flags) argument
1951 hw_perf_event_destroy(struct perf_event *event) argument
2003 power_pmu_event_init(struct perf_event *event) argument
2198 power_pmu_event_idx(struct perf_event *event) argument
2237 record_and_restart(struct perf_event *event, unsigned long val, struct pt_regs *regs) argument
2400 struct perf_event *event; local
[all...]
/linux-master/tools/perf/tests/
H A Dparse-metric.c17 const char *event; member in struct:value
25 while (v->event) {
26 if (!strcmp(name, v->event))
141 { .event = "inst_retired.any", .val = 300 },
142 { .event = "cpu_clk_unhalted.thread", .val = 200 },
143 { .event = NULL, },
158 { .event = "idq_uops_not_delivered.core", .val = 300 },
159 { .event = "cpu_clk_unhalted.thread", .val = 200 },
160 { .event = "cpu_clk_unhalted.one_thread_active", .val = 400 },
161 { .event
[all...]
/linux-master/drivers/perf/
H A Darm_pmu.c10 * This code is based on the sparc64 perf event code, which is in turn based
108 static inline u64 arm_pmu_event_max_period(struct perf_event *event) argument
110 if (event->hw.flags & ARMPMU_EVT_64BIT)
112 else if (event->hw.flags & ARMPMU_EVT_63BIT)
114 else if (event->hw.flags & ARMPMU_EVT_47BIT)
174 armpmu_map_event(struct perf_event *event, argument
182 u64 config = event->attr.config;
183 int type = event->attr.type;
185 if (type == event->pmu->type)
200 int armpmu_event_set_period(struct perf_event *event) argument
242 armpmu_event_update(struct perf_event *event) argument
266 armpmu_read(struct perf_event *event) argument
272 armpmu_stop(struct perf_event *event, int flags) argument
288 armpmu_start(struct perf_event *event, int flags) argument
313 armpmu_del(struct perf_event *event, int flags) argument
329 armpmu_add(struct perf_event *event, int flags) argument
364 validate_event(struct pmu *pmu, struct pmu_hw_events *hw_events, struct perf_event *event) argument
391 validate_group(struct perf_event *event) argument
444 __hw_perf_event_init(struct perf_event *event) argument
499 armpmu_event_init(struct perf_event *event) argument
742 struct perf_event *event; local
[all...]
H A Dqcom_l3_pmu.c31 /* Mask for the event type field within perf_event_attr.config and EVTYPE reg */
35 * Reserve some space between the event type and this flag to allow expansion
36 * in the event type field.
132 * - config: bits 0-7: event type
136 static inline u32 get_event_type(struct perf_event *event) argument
138 return (event->attr.config) & L3_EVTYPE_MASK;
141 static inline bool event_uses_long_counter(struct perf_event *event) argument
143 return !!(event->attr.config & BIT_ULL(L3_EVENT_LC_BIT));
146 static inline int event_num_counters(struct perf_event *event) argument
148 return event_uses_long_counter(event)
193 qcom_l3_cache__64bit_counter_start(struct perf_event *event) argument
224 qcom_l3_cache__64bit_counter_stop(struct perf_event *event, int flags) argument
239 qcom_l3_cache__64bit_counter_update(struct perf_event *event) argument
274 qcom_l3_cache__32bit_counter_start(struct perf_event *event) argument
299 qcom_l3_cache__32bit_counter_stop(struct perf_event *event, int flags) argument
316 qcom_l3_cache__32bit_counter_update(struct perf_event *event) argument
338 l3cache_event_get_ops(struct perf_event *event) argument
402 struct perf_event *event; local
451 qcom_l3_cache__validate_event_group(struct perf_event *event) argument
478 qcom_l3_cache__event_init(struct perf_event *event) argument
524 qcom_l3_cache__event_start(struct perf_event *event, int flags) argument
533 qcom_l3_cache__event_stop(struct perf_event *event, int flags) argument
547 qcom_l3_cache__event_add(struct perf_event *event, int flags) argument
575 qcom_l3_cache__event_del(struct perf_event *event, int flags) argument
590 qcom_l3_cache__event_read(struct perf_event *event) argument
[all...]
H A Darm_dsu_pmu.c34 /* PMU event codes */
69 /* All event counters are 32bit, with a 64bit Cycle counter */
103 * @hw_events : Holds the event counter state.
107 * @num_counters : Number of event counters implemented by the PMU,
139 return sysfs_emit(buf, "event=0x%lx\n", (unsigned long)eattr->var);
167 DSU_FORMAT_ATTR(event, "config:0-31"),
230 static inline u64 dsu_pmu_read_counter(struct perf_event *event) argument
234 struct dsu_pmu *dsu_pmu = to_dsu_pmu(event->pmu);
235 int idx = event->hw.idx;
242 dev_err(event
257 dsu_pmu_write_counter(struct perf_event *event, u64 val) argument
281 dsu_pmu_get_event_idx(struct dsu_hw_events *hw_events, struct perf_event *event) argument
314 dsu_pmu_set_event(struct dsu_pmu *dsu_pmu, struct perf_event *event) argument
331 dsu_pmu_event_update(struct perf_event *event) argument
346 dsu_pmu_read(struct perf_event *event) argument
363 dsu_pmu_set_event_period(struct perf_event *event) argument
385 struct perf_event *event = hw_events->events[i]; local
397 dsu_pmu_start(struct perf_event *event, int pmu_flags) argument
411 dsu_pmu_stop(struct perf_event *event, int pmu_flags) argument
422 dsu_pmu_add(struct perf_event *event, int flags) argument
448 dsu_pmu_del(struct perf_event *event, int flags) argument
491 dsu_pmu_validate_event(struct pmu *pmu, struct dsu_hw_events *hw_events, struct perf_event *event) argument
507 dsu_pmu_validate_group(struct perf_event *event) argument
525 dsu_pmu_event_init(struct perf_event *event) argument
[all...]
/linux-master/tools/tracing/rtla/src/
H A Dtrace.c109 * collect_registered_events - call the existing callback function for the event
111 * If an event has a registered callback function, call it.
112 * Otherwise, ignore the event.
115 collect_registered_events(struct tep_event *event, struct tep_record *record, argument
121 if (!event->handler)
124 event->handler(s, record, event, context);
222 * trace_event_alloc - alloc and parse a single trace event
238 tevent->event = strstr(tevent->system, ":");
239 if (tevent->event) {
250 trace_event_add_filter(struct trace_events *event, char *filter) argument
265 trace_event_add_trigger(struct trace_events *event, char *trigger) argument
[all...]
/linux-master/fs/notify/fanotify/
H A Dfanotify.h13 /* Possible states of the permission event */
237 * userspace. The type of event determines how it was allocated, how it will
266 static inline void fanotify_init_event(struct fanotify_event *event, argument
269 fsnotify_init_event(&event->fse);
270 INIT_HLIST_NODE(&event->merge_list);
271 event->hash = hash;
272 event->mask = mask;
273 event->pid = NULL;
291 FANOTIFY_FE(struct fanotify_event *event) argument
293 return container_of(event, struc
303 FANOTIFY_NE(struct fanotify_event *event) argument
319 FANOTIFY_EE(struct fanotify_event *event) argument
324 fanotify_event_fsid(struct fanotify_event *event) argument
336 fanotify_event_object_fh( struct fanotify_event *event) argument
349 fanotify_event_info( struct fanotify_event *event) argument
358 fanotify_event_object_fh_len(struct fanotify_event *event) argument
369 fanotify_event_dir_fh_len(struct fanotify_event *event) argument
376 fanotify_event_dir2_fh_len(struct fanotify_event *event) argument
383 fanotify_event_has_object_fh(struct fanotify_event *event) argument
391 fanotify_event_has_dir_fh(struct fanotify_event *event) argument
396 fanotify_event_has_dir2_fh(struct fanotify_event *event) argument
401 fanotify_event_has_any_dir_fh(struct fanotify_event *event) argument
413 FANOTIFY_PE(struct fanotify_event *event) argument
438 FANOTIFY_PERM(struct fanotify_event *event) argument
459 fanotify_event_path(struct fanotify_event *event) argument
485 fanotify_event_hash_bucket( struct fsnotify_group *group, struct fanotify_event *event) argument
[all...]
/linux-master/sound/core/seq/
H A Dseq_ump_convert.h3 * ALSA sequencer event conversion between UMP and legacy clients
14 struct snd_seq_event *event,
19 struct snd_seq_event *event,
/linux-master/net/rds/
H A Drdma_transport.h21 struct rdma_cm_event *event);
23 struct rdma_cm_event *event);

Completed in 407 milliseconds

1234567891011>>