Home
last modified time | relevance | path

Searched refs:num_events (Results 1 – 25 of 38) sorted by relevance

12

/linux/tools/perf/util/
H A Ddrm_pmu.c44 int num_events;
133 static int add_event(struct drm_pmu_event **events, int *num_events, in starts_with()
142 tmp = reallocarray(*events, *num_events + 1, sizeof(struct drm_pmu_event)); in add_event()
145 tmp[*num_events].unit = unit; in add_event()
146 tmp[*num_events].desc = desc; in add_event()
147 tmp[*num_events].name = strndup(line, colon - line); in add_event()
148 if (!tmp[*num_events].name) in add_event()
150 (*num_events)++; in add_event()
164 int num_events = 0; in read_drm_pmus_cb()
184 add_event(&events, &num_events, lin in read_drm_pmus_cb()
43 int num_events; global() member
137 add_event(struct drm_pmu_event ** events,int * num_events,const char * line,enum drm_pmu_unit unit,const char * desc) add_event() argument
168 int num_events = 0; read_drm_pmus_cb() local
[all...]
H A Dbpf_counter_cgroup.c51 sk->rodata->num_events = evlist_size / nr_cgroups; in setup_rodata()
200 int num_events = evlist__nr_entries(evlist) / nr_cgroups; in bperf_load_program()
203 leader = evlist__find_evsel(evlist, evsel->core.idx % num_events);
H A Dintel-bts.c63 unsigned long num_events; member
281 bts->num_events++ <= bts->synth_opts.initial_skip) in intel_bts_synth_branch_sample()
/linux/arch/sh/kernel/
H A Dperf_event.c39 static atomic_t num_events; variable
65 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy()
67 if (atomic_dec_return(&num_events) == 0) in hw_perf_event_destroy()
118 if (!atomic_inc_not_zero(&num_events)) { in __hw_perf_event_init()
120 if (atomic_read(&num_events) == 0 && in __hw_perf_event_init()
124 atomic_inc(&num_events); in __hw_perf_event_init()
254 idx = find_first_zero_bit(cpuc->used_mask, sh_pmu->num_events); in sh_pmu_add()
255 if (idx == sh_pmu->num_events) in sh_pmu_add()
357 WARN_ON(_pmu->num_events > MAX_HWEVENTS); in register_sh_pmu()
H A Dhw_breakpoint.c35 static struct sh_ubc ubc_dummy = { .num_events = 0 };
52 for (i = 0; i < sh_ubc->num_events; i++) { in arch_install_hw_breakpoint()
61 if (WARN_ONCE(i == sh_ubc->num_events, "Can't find any breakpoint slot")) in arch_install_hw_breakpoint()
84 for (i = 0; i < sh_ubc->num_events; i++) { in arch_uninstall_hw_breakpoint()
93 if (WARN_ONCE(i == sh_ubc->num_events, "Can't find any breakpoint slot")) in arch_uninstall_hw_breakpoint()
267 for (i = 0; i < sh_ubc->num_events; i++) { in flush_ptrace_hw_breakpoint()
297 for (i = 0; i < sh_ubc->num_events; i++) { in hw_breakpoint_handler()
405 WARN_ON(ubc->num_events > HBP_NUM); in register_sh_ubc()
/linux/arch/sh/kernel/cpu/sh4a/
H A Dubc.c48 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_enable_all()
58 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_disable_all()
68 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_active_mask()
87 .num_events = 2,
114 for (i = 0; i < sh4a_ubc.num_events; i++) { in sh4a_ubc_init()
H A Dperf_event.c261 for (i = 0; i < sh4a_pmu.num_events; i++) in sh4a_pmu_disable_all()
269 for (i = 0; i < sh4a_pmu.num_events; i++) in sh4a_pmu_enable_all()
275 .num_events = 2,
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_pmu.c92 unsigned int num_events; member
138 .num_events = ARRAY_SIZE(vega20_events),
173 .num_events = ARRAY_SIZE(df_vega20_events),
203 .num_events = ARRAY_SIZE(arcturus_events),
435 int num_events) in amdgpu_pmu_create_attrs() argument
438 num_events, AMDGPU_PMU_EVENT_CONFIG_TYPE_NONE); in amdgpu_pmu_create_attrs()
460 *evt_attr = kzalloc_objs(**evt_attr, config->num_events); in amdgpu_pmu_alloc_pmu_attrs()
466 config->num_events + 1); in amdgpu_pmu_alloc_pmu_attrs()
532 config->events, config->num_events); in init_pmu_entry_by_type_and_add()
533 total_num_events = config->num_events; in init_pmu_entry_by_type_and_add()
/linux/arch/powerpc/perf/
H A De500-pmu.c83 static int num_events = 128; variable
91 if (event_low >= num_events) in e500_xlate_event()
125 num_events = 256; in init_e500_pmu()
H A De6500-pmu.c85 static int num_events = 512; variable
91 if (event_low >= num_events || in e6500_xlate_event()
/linux/arch/sh/kernel/cpu/sh4/
H A Dperf_event.c227 for (i = 0; i < sh7750_pmu.num_events; i++) in sh7750_pmu_disable_all()
235 for (i = 0; i < sh7750_pmu.num_events; i++) in sh7750_pmu_enable_all()
241 .num_events = 2,
/linux/tools/perf/util/bpf_skel/
H A Dbperf_cgroup.bpf.c56 const volatile __u32 num_events = 1; variable
160 if (idx == num_events) in bperf_cgroup_count()
194 key = cgrp * num_events + idx; in bperf_cgroup_count()
/linux/drivers/firmware/arm_scmi/
H A Dnotify.c163 if (pd_ && eid_ < pd_->num_events) \
304 int num_events; member
309 struct scmi_registered_event *registered_events[] __counted_by(num_events);
698 int num_events, in scmi_allocate_registered_events_desc() argument
710 struct_size(pd, registered_events, num_events), in scmi_allocate_registered_events_desc()
715 pd->num_events = num_events; in scmi_allocate_registered_events_desc()
782 for (i = 0; i < ee->num_events; i++) in scmi_register_protocol_events()
787 payld_sz, ee->num_events, in scmi_register_protocol_events()
793 for (i = 0; i < ee->num_events; i++, evt++) { in scmi_register_protocol_events()
/linux/drivers/irqchip/
H A Dirq-gic-v5-its.c43 u32 num_events; member
193 unsigned int num_events) in gicv5_its_create_itt_two_level() argument
237 complete_tables = num_events / events_per_l2_table; in gicv5_its_create_itt_two_level()
238 final_span = order_base_2(num_events % events_per_l2_table); in gicv5_its_create_itt_two_level()
489 event_id_bits = order_base_2(its_dev->num_events); in gicv5_its_device_register()
513 its_dev->num_events); in gicv5_its_device_register()
765 its_dev->num_events = nvec; in gicv5_its_alloc_device()
775 its_dev->event_map = (unsigned long *)bitmap_zalloc(its_dev->num_events, GFP_KERNEL); in gicv5_its_alloc_device()
832 if (WARN_ON_ONCE(!bitmap_empty(its_dev->event_map, its_dev->num_events))) in gicv5_its_msi_teardown()
890 its_dev->num_events, in gicv5_its_alloc_eventid()
[all …]
/linux/arch/sh/include/asm/
H A Dperf_event.h11 unsigned int num_events; member
H A Dhw_breakpoint.h31 unsigned int num_events; member
/linux/drivers/gpib/include/
H A Dgpib_types.h202 unsigned int num_events; member
209 queue->num_events = 0; in init_event_queue()
/linux/drivers/devfreq/event/
H A Dexynos-ppmu.c36 unsigned int num_events; member
525 info->num_events = count; in of_get_devfreq_events()
666 size = sizeof(struct devfreq_event_dev *) * info->num_events; in exynos_ppmu_probe()
674 for (i = 0; i < info->num_events; i++) { in exynos_ppmu_probe()
/linux/drivers/iio/accel/
H A Dmma9553.c178 int num_events; member
221 data->num_events = MMA9553_EVENTS_INFO_SIZE; in mma9553_init_events()
222 for (i = 0; i < data->num_events; i++) { in mma9553_init_events()
235 for (i = 0; i < data->num_events; i++) in mma9553_get_event()
250 for (i = 0; i < data->num_events; i++) in mma9553_is_any_event_enabled()
/linux/include/sound/
H A Dsoc-topology.h186 const struct snd_soc_tplg_widget_events *events, int num_events,
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dmain.c399 u32 start_idx, u32 num_events, in iwl_print_cont_event_trace() argument
424 if (WARN_ON(num_events > capacity - start_idx)) in iwl_print_cont_event_trace()
425 num_events = capacity - start_idx; in iwl_print_cont_event_trace()
431 for (i = 0; i < num_events; i++) { in iwl_print_cont_event_trace()
1699 u32 num_events, u32 mode, in iwl_print_event_log() argument
1710 if (num_events == 0) in iwl_print_event_log()
1738 for (i = 0; i < num_events; i++) { in iwl_print_event_log()
/linux/drivers/dma/
H A Dpl330.c284 unsigned int num_events:6; member
1676 if (pl330->pcfg.num_events < 32 in pl330_update()
1677 && val & ~((1 << pl330->pcfg.num_events) - 1)) { in pl330_update()
1685 for (ev = 0; ev < pl330->pcfg.num_events; ev++) { in pl330_update()
1748 for (ev = 0; ev < pl330->pcfg.num_events; ev++) in _alloc_event()
1801 if (ev >= 0 && ev < pl330->pcfg.num_events in _free_event()
1860 pl330->pcfg.num_events = val; in read_dmac_config()
1961 if (pl330->pcfg.num_events == 0) { in pl330_add()
1976 for (i = 0; i < pl330->pcfg.num_events; i++) in pl330_add()
3179 pcfg->num_peri, pcfg->num_events); in pl330_probe()
/linux/arch/s390/kernel/
H A Dperf_cpum_sf.c538 static refcount_t num_events; variable
581 if (refcount_dec_and_mutex_lock(&num_events, &pmc_reserve_mutex)) { in hw_perf_event_destroy()
743 if (!refcount_inc_not_zero(&num_events)) { in __hw_perf_event_init()
745 refcount_set(&num_events, 1); in __hw_perf_event_init()
1975 if (!refcount_read(&num_events)) in cpusf_pmu_setup()
/linux/drivers/pci/controller/plda/
H A Dpcie-plda.h189 int num_events; member
/linux/include/linux/
H A Dmhi.h301 u32 num_events; member

12