Home
last modified time | relevance | path

Searched refs:pebs (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/events/intel/
H A Dds.c343 if (!x86_pmu.pebs) in alloc_pebs_buffer()
378 if (!x86_pmu.pebs) in release_pebs_buffer()
453 if (!x86_pmu.bts && !x86_pmu.pebs) in release_ds_buffers()
482 if (!x86_pmu.bts && !x86_pmu.pebs) in reserve_ds_buffers()
488 if (!x86_pmu.pebs) in reserve_ds_buffers()
524 if (x86_pmu.pebs && !pebs_err) in reserve_ds_buffers()
1355 struct pebs_record_skl *pebs = __pebs; in setup_pebs_fixed_sample_data() local
1359 if (pebs == NULL) in setup_pebs_fixed_sample_data()
1373 data->weight = pebs->lat; in setup_pebs_fixed_sample_data()
1379 data->data_src.val = get_data_src(event, pebs in setup_pebs_fixed_sample_data()
[all...]
H A Dp4.c36 #define P4_GEN_PEBS_BIND(name, pebs, vert) \
38 .metric_pebs = pebs | P4_PEBS_ENABLE_UOP_TAG, \
H A Dcore.c3716 if (x86_pmu.pebs && x86_pmu.pebs_no_isolation) { in intel_guest_get_msrs()
4393 x86_pmu.pebs = 0; in intel_clovertown_quirk()
4856 return x86_pmu.pebs ? attr->mode : 0; in pebs_is_visible()
/kernel/linux/linux-6.6/arch/x86/events/intel/
H A Dds.c517 if (!x86_pmu.pebs) in alloc_pebs_buffer()
552 if (!x86_pmu.pebs) in release_pebs_buffer()
627 if (!x86_pmu.bts && !x86_pmu.pebs) in release_ds_buffers()
656 if (!x86_pmu.bts && !x86_pmu.pebs) in reserve_ds_buffers()
662 if (!x86_pmu.pebs) in reserve_ds_buffers()
698 if (x86_pmu.pebs && !pebs_err) in reserve_ds_buffers()
1621 struct pebs_record_skl *pebs = __pebs; in setup_pebs_fixed_sample_data() local
1625 if (pebs == NULL) in setup_pebs_fixed_sample_data()
1639 data->weight.full = pebs->lat; in setup_pebs_fixed_sample_data()
1647 data->data_src.val = get_data_src(event, pebs in setup_pebs_fixed_sample_data()
[all...]
H A Dp4.c36 #define P4_GEN_PEBS_BIND(name, pebs, vert) \
38 .metric_pebs = pebs | P4_PEBS_ENABLE_UOP_TAG, \
H A Dcore.c4078 if (!x86_pmu.pebs) in intel_guest_get_msrs()
5045 x86_pmu.pebs = 0; in intel_clovertown_quirk()
5511 return x86_pmu.pebs ? attr->mode : 0; in pebs_is_visible()
/kernel/linux/linux-5.10/drivers/mtd/ubi/
H A Dvmt.c406 int i, err, pebs; in ubi_resize_volume() local
444 pebs = reserved_pebs - vol->reserved_pebs; in ubi_resize_volume()
445 if (pebs > 0) { in ubi_resize_volume()
447 if (pebs > ubi->avail_pebs) { in ubi_resize_volume()
449 pebs, ubi->avail_pebs); in ubi_resize_volume()
458 ubi->avail_pebs -= pebs; in ubi_resize_volume()
459 ubi->rsvd_pebs += pebs; in ubi_resize_volume()
467 if (pebs < 0) { in ubi_resize_volume()
468 for (i = 0; i < -pebs; i++) { in ubi_resize_volume()
474 ubi->rsvd_pebs += pebs; in ubi_resize_volume()
[all...]
H A Dfastmap-wl.c61 e = ubi->lookuptbl[pool->pebs[i]]; in return_unused_pool_pebs()
101 * has_enough_free_count - whether ubi has enough free pebs to fill fm pools
105 * This helper function checks whether there are enough free pebs (deducted
106 * by fastmap pebs) to fill fm_pool and fm_wl_pool, above rule works after
107 * there is at least one of free pebs is filled into fm_wl_pool.
108 * For wear leveling pool, UBI should also reserve free pebs for bad pebs
109 * handling, because there maybe no enough free pebs for user volumes after
110 * producing new bad pebs.
114 int fm_used = 0; // fastmap non anchor pebs in has_enough_free_count()
[all...]
H A Dfastmap.c392 * @pebs: an array of all PEB numbers in the to be scanned pool
393 * @pool_size: size of the pool (number of entries in @pebs)
401 __be32 *pebs, int pool_size, unsigned long long *max_sqnum, in scan_pool()
432 pnum = be32_to_cpu(pebs[i]); in scan_pool()
765 ret = scan_pool(ubi, ai, fmpl->pebs, pool_size, &max_sqnum, &free); in ubi_attach_fastmap()
769 ret = scan_pool(ubi, ai, fmpl_wl->pebs, wl_pool_size, &max_sqnum, &free); in ubi_attach_fastmap()
1196 fmpl->pebs[i] = cpu_to_be32(ubi->fm_pool.pebs[i]); in ubi_write_fastmap()
1197 set_seen(ubi, ubi->fm_pool.pebs[i], seen_pebs); in ubi_write_fastmap()
1207 fmpl_wl->pebs[ in ubi_write_fastmap()
400 scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai, __be32 *pebs, int pool_size, unsigned long long *max_sqnum, struct list_head *free) scan_pool() argument
[all...]
H A Dubi-media.h447 * @pebs: an array containing the location of all PEBs in this pool
453 __be32 pebs[UBI_FM_MAX_POOL_SIZE]; member
H A Dcdev.c910 int pebs; in ubi_cdev_ioctl() local
930 pebs = div_u64(req.bytes + desc->vol->usable_leb_size - 1, in ubi_cdev_ioctl()
934 err = ubi_resize_volume(desc, pebs); in ubi_cdev_ioctl()
H A Dubi.h250 * @pebs: PEBs in this pool
261 int pebs[UBI_FM_MAX_POOL_SIZE]; member
/kernel/linux/linux-6.6/drivers/mtd/ubi/
H A Dvmt.c406 int i, err, pebs; in ubi_resize_volume() local
443 pebs = reserved_pebs - vol->reserved_pebs; in ubi_resize_volume()
444 if (pebs > 0) { in ubi_resize_volume()
446 if (pebs > ubi->avail_pebs) { in ubi_resize_volume()
448 pebs, ubi->avail_pebs); in ubi_resize_volume()
456 ubi->avail_pebs -= pebs; in ubi_resize_volume()
457 ubi->rsvd_pebs += pebs; in ubi_resize_volume()
463 if (pebs < 0) { in ubi_resize_volume()
464 for (i = 0; i < -pebs; i++) { in ubi_resize_volume()
470 ubi->rsvd_pebs += pebs; in ubi_resize_volume()
[all...]
H A Dfastmap-wl.c61 e = ubi->lookuptbl[pool->pebs[i]]; in return_unused_pool_pebs()
101 * has_enough_free_count - whether ubi has enough free pebs to fill fm pools
105 * This helper function checks whether there are enough free pebs (deducted
106 * by fastmap pebs) to fill fm_pool and fm_wl_pool, above rule works after
107 * there is at least one of free pebs is filled into fm_wl_pool.
108 * For wear leveling pool, UBI should also reserve free pebs for bad pebs
109 * handling, because there maybe no enough free pebs for user volumes after
110 * producing new bad pebs.
114 int fm_used = 0; // fastmap non anchor pebs in has_enough_free_count()
[all...]
H A Dfastmap.c392 * @pebs: an array of all PEB numbers in the to be scanned pool
393 * @pool_size: size of the pool (number of entries in @pebs)
401 __be32 *pebs, int pool_size, unsigned long long *max_sqnum, in scan_pool()
432 pnum = be32_to_cpu(pebs[i]); in scan_pool()
765 ret = scan_pool(ubi, ai, fmpl->pebs, pool_size, &max_sqnum, &free); in ubi_attach_fastmap()
769 ret = scan_pool(ubi, ai, fmpl_wl->pebs, wl_pool_size, &max_sqnum, &free); in ubi_attach_fastmap()
1206 fmpl->pebs[i] = cpu_to_be32(ubi->fm_pool.pebs[i]); in ubi_write_fastmap()
1207 set_seen(ubi, ubi->fm_pool.pebs[i], seen_pebs); in ubi_write_fastmap()
1217 fmpl_wl->pebs[ in ubi_write_fastmap()
400 scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai, __be32 *pebs, int pool_size, unsigned long long *max_sqnum, struct list_head *free) scan_pool() argument
[all...]
H A Dubi-media.h447 * @pebs: an array containing the location of all PEBs in this pool
453 __be32 pebs[UBI_FM_MAX_POOL_SIZE]; member
H A Dcdev.c910 int pebs; in ubi_cdev_ioctl() local
930 pebs = div_u64(req.bytes + desc->vol->usable_leb_size - 1, in ubi_cdev_ioctl()
934 err = ubi_resize_volume(desc, pebs); in ubi_cdev_ioctl()
H A Dubi.h250 * @pebs: PEBs in this pool
261 int pebs[UBI_FM_MAX_POOL_SIZE]; member
/kernel/linux/linux-6.6/arch/x86/kvm/
H A Dpmu.c145 * For some model specific pebs counters with special capabilities in pmc_get_pebs_precise_level()
180 bool pebs = test_bit(pmc->idx, (unsigned long *)&pmu->pebs_enable); in pmc_reprogram_counter() local
193 if (pebs) { in pmc_reprogram_counter()
214 pmc->intr = intr || pebs; in pmc_reprogram_counter()
/kernel/linux/linux-5.10/arch/x86/events/
H A Dcore.c1488 u64 pebs, debugctl; in perf_event_print_debug() local
1513 rdmsrl(MSR_IA32_PEBS_ENABLE, pebs); in perf_event_print_debug()
1514 pr_info("CPU#%d: pebs: %016llx\n", cpu, pebs); in perf_event_print_debug()
H A Dperf_event.h724 pebs :1, member
/kernel/linux/linux-6.6/arch/x86/events/
H A Dcore.c1522 u64 pebs, debugctl; in perf_event_print_debug() local
1548 rdmsrl(MSR_IA32_PEBS_ENABLE, pebs); in perf_event_print_debug()
1549 pr_info("CPU#%d: pebs: %016llx\n", cpu, pebs); in perf_event_print_debug()
H A Dperf_event.h832 pebs :1, member
/kernel/linux/linux-6.6/tools/perf/util/
H A Dintel-pt.c228 struct intel_pt_pebs_event pebs[INTEL_PT_MAX_PEBS]; member
2389 pe = &ptq->pebs[hw_id]; in intel_pt_synth_pebs_sample()
3374 ptq->pebs[hw_id].evsel = evsel; in intel_pt_process_aux_output_hw_id()
3375 ptq->pebs[hw_id].id = sample->id; in intel_pt_process_aux_output_hw_id()

Completed in 52 milliseconds