__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2012 ARM Ltd.
 */

#ifndef __ASM_PMUV3_H
#define __ASM_PMUV3_H

#include <asm/cp15.h>
#include <asm/cputype.h>

#define PMCCNTR			__ACCESS_CP15_64(0, c9)

#define PMCR			__ACCESS_CP15(c9,  0, c12, 0)
#define PMCNTENSET		__ACCESS_CP15(c9,  0, c12, 1)
#define PMCNTENCLR		__ACCESS_CP15(c9,  0, c12, 2)
#define PMOVSR			__ACCESS_CP15(c9,  0, c12, 3)
#define PMSELR			__ACCESS_CP15(c9,  0, c12, 5)
#define PMCEID0			__ACCESS_CP15(c9,  0, c12, 6)
#define PMCEID1			__ACCESS_CP15(c9,  0, c12, 7)
#define PMXEVTYPER		__ACCESS_CP15(c9,  0, c13, 1)
#define PMXEVCNTR		__ACCESS_CP15(c9,  0, c13, 2)
#define PMUSERENR		__ACCESS_CP15(c9,  0, c14, 0)
#define PMINTENSET		__ACCESS_CP15(c9,  0, c14, 1)
#define PMINTENCLR		__ACCESS_CP15(c9,  0, c14, 2)
#define PMCEID2			__ACCESS_CP15(c9,  0, c14, 4)
#define PMCEID3			__ACCESS_CP15(c9,  0, c14, 5)
#define PMMIR			__ACCESS_CP15(c9,  0, c14, 6)
#define PMCCFILTR		__ACCESS_CP15(c14, 0, c15, 7)

#define PMEVCNTR0		__ACCESS_CP15(c14, 0, c8, 0)
#define PMEVCNTR1		__ACCESS_CP15(c14, 0, c8, 1)
#define PMEVCNTR2		__ACCESS_CP15(c14, 0, c8, 2)
#define PMEVCNTR3		__ACCESS_CP15(c14, 0, c8, 3)
#define PMEVCNTR4		__ACCESS_CP15(c14, 0, c8, 4)
#define PMEVCNTR5		__ACCESS_CP15(c14, 0, c8, 5)
#define PMEVCNTR6		__ACCESS_CP15(c14, 0, c8, 6)
#define PMEVCNTR7		__ACCESS_CP15(c14, 0, c8, 7)
#define PMEVCNTR8		__ACCESS_CP15(c14, 0, c9, 0)
#define PMEVCNTR9		__ACCESS_CP15(c14, 0, c9, 1)
#define PMEVCNTR10		__ACCESS_CP15(c14, 0, c9, 2)
#define PMEVCNTR11		__ACCESS_CP15(c14, 0, c9, 3)
#define PMEVCNTR12		__ACCESS_CP15(c14, 0, c9, 4)
#define PMEVCNTR13		__ACCESS_CP15(c14, 0, c9, 5)
#define PMEVCNTR14		__ACCESS_CP15(c14, 0, c9, 6)
#define PMEVCNTR15		__ACCESS_CP15(c14, 0, c9, 7)
#define PMEVCNTR16		__ACCESS_CP15(c14, 0, c10, 0)
#define PMEVCNTR17		__ACCESS_CP15(c14, 0, c10, 1)
#define PMEVCNTR18		__ACCESS_CP15(c14, 0, c10, 2)
#define PMEVCNTR19		__ACCESS_CP15(c14, 0, c10, 3)
#define PMEVCNTR20		__ACCESS_CP15(c14, 0, c10, 4)
#define PMEVCNTR21		__ACCESS_CP15(c14, 0, c10, 5)
#define PMEVCNTR22		__ACCESS_CP15(c14, 0, c10, 6)
#define PMEVCNTR23		__ACCESS_CP15(c14, 0, c10, 7)
#define PMEVCNTR24		__ACCESS_CP15(c14, 0, c11, 0)
#define PMEVCNTR25		__ACCESS_CP15(c14, 0, c11, 1)
#define PMEVCNTR26		__ACCESS_CP15(c14, 0, c11, 2)
#define PMEVCNTR27		__ACCESS_CP15(c14, 0, c11, 3)
#define PMEVCNTR28		__ACCESS_CP15(c14, 0, c11, 4)
#define PMEVCNTR29		__ACCESS_CP15(c14, 0, c11, 5)
#define PMEVCNTR30		__ACCESS_CP15(c14, 0, c11, 6)

#define PMEVTYPER0		__ACCESS_CP15(c14, 0, c12, 0)
#define PMEVTYPER1		__ACCESS_CP15(c14, 0, c12, 1)
#define PMEVTYPER2		__ACCESS_CP15(c14, 0, c12, 2)
#define PMEVTYPER3		__ACCESS_CP15(c14, 0, c12, 3)
#define PMEVTYPER4		__ACCESS_CP15(c14, 0, c12, 4)
#define PMEVTYPER5		__ACCESS_CP15(c14, 0, c12, 5)
#define PMEVTYPER6		__ACCESS_CP15(c14, 0, c12, 6)
#define PMEVTYPER7		__ACCESS_CP15(c14, 0, c12, 7)
#define PMEVTYPER8		__ACCESS_CP15(c14, 0, c13, 0)
#define PMEVTYPER9		__ACCESS_CP15(c14, 0, c13, 1)
#define PMEVTYPER10		__ACCESS_CP15(c14, 0, c13, 2)
#define PMEVTYPER11		__ACCESS_CP15(c14, 0, c13, 3)
#define PMEVTYPER12		__ACCESS_CP15(c14, 0, c13, 4)
#define PMEVTYPER13		__ACCESS_CP15(c14, 0, c13, 5)
#define PMEVTYPER14		__ACCESS_CP15(c14, 0, c13, 6)
#define PMEVTYPER15		__ACCESS_CP15(c14, 0, c13, 7)
#define PMEVTYPER16		__ACCESS_CP15(c14, 0, c14, 0)
#define PMEVTYPER17		__ACCESS_CP15(c14, 0, c14, 1)
#define PMEVTYPER18		__ACCESS_CP15(c14, 0, c14, 2)
#define PMEVTYPER19		__ACCESS_CP15(c14, 0, c14, 3)
#define PMEVTYPER20		__ACCESS_CP15(c14, 0, c14, 4)
#define PMEVTYPER21		__ACCESS_CP15(c14, 0, c14, 5)
#define PMEVTYPER22		__ACCESS_CP15(c14, 0, c14, 6)
#define PMEVTYPER23		__ACCESS_CP15(c14, 0, c14, 7)
#define PMEVTYPER24		__ACCESS_CP15(c14, 0, c15, 0)
#define PMEVTYPER25		__ACCESS_CP15(c14, 0, c15, 1)
#define PMEVTYPER26		__ACCESS_CP15(c14, 0, c15, 2)
#define PMEVTYPER27		__ACCESS_CP15(c14, 0, c15, 3)
#define PMEVTYPER28		__ACCESS_CP15(c14, 0, c15, 4)
#define PMEVTYPER29		__ACCESS_CP15(c14, 0, c15, 5)
#define PMEVTYPER30		__ACCESS_CP15(c14, 0, c15, 6)

#define RETURN_READ_PMEVCNTRN(n) \
	return read_sysreg(PMEVCNTR##n)
static inline unsigned long read_pmevcntrn(int n)
{
	PMEVN_SWITCH(n, RETURN_READ_PMEVCNTRN);
	return 0;
}

#define WRITE_PMEVCNTRN(n) \
	write_sysreg(val, PMEVCNTR##n)
static inline void write_pmevcntrn(int n, unsigned long val)
{
	PMEVN_SWITCH(n, WRITE_PMEVCNTRN);
}

#define WRITE_PMEVTYPERN(n) \
	write_sysreg(val, PMEVTYPER##n)
static inline void write_pmevtypern(int n, unsigned long val)
{
	PMEVN_SWITCH(n, WRITE_PMEVTYPERN);
}

static inline unsigned long read_pmmir(void)
{
	return read_sysreg(PMMIR);
}

static inline u32 read_pmuver(void)
{
	/* PMUVers is not a signed field */
	u32 dfr0 = read_cpuid_ext(CPUID_EXT_DFR0);

	return (dfr0 >> 24) & 0xf;
}

static inline bool pmuv3_has_icntr(void)
{
	/* FEAT_PMUv3_ICNTR not accessible for 32-bit */
	return false;
}

static inline void write_pmcr(u32 val)
{
	write_sysreg(val, PMCR);
}

static inline u32 read_pmcr(void)
{
	return read_sysreg(PMCR);
}

static inline void write_pmselr(u32 val)
{
	write_sysreg(val, PMSELR);
}

static inline void write_pmccntr(u64 val)
{
	write_sysreg(val, PMCCNTR);
}

static inline u64 read_pmccntr(void)
{
	return read_sysreg(PMCCNTR);
}

static inline void write_pmicntr(u64 val) {}

static inline u64 read_pmicntr(void)
{
	return 0;
}

static inline void write_pmcntenset(u32 val)
{
	write_sysreg(val, PMCNTENSET);
}

static inline void write_pmcntenclr(u32 val)
{
	write_sysreg(val, PMCNTENCLR);
}

static inline void write_pmintenset(u32 val)
{
	write_sysreg(val, PMINTENSET);
}

static inline void write_pmintenclr(u32 val)
{
	write_sysreg(val, PMINTENCLR);
}

static inline void write_pmccfiltr(u32 val)
{
	write_sysreg(val, PMCCFILTR);
}

static inline void write_pmicfiltr(u64 val) {}

static inline u64 read_pmicfiltr(void)
{
	return 0;
}

static inline void write_pmovsclr(u32 val)
{
	write_sysreg(val, PMOVSR);
}

static inline u32 read_pmovsclr(void)
{
	return read_sysreg(PMOVSR);
}

static inline void write_pmuserenr(u32 val)
{
	write_sysreg(val, PMUSERENR);
}

static inline void write_pmuacr(u64 val) {}

static inline void kvm_set_pmu_events(u32 set, struct perf_event_attr *attr) {}
static inline void kvm_clr_pmu_events(u32 clr) {}
static inline bool kvm_pmu_counter_deferred(struct perf_event_attr *attr)
{
	return false;
}

static inline bool kvm_set_pmuserenr(u64 val)
{
	return false;
}

static inline void kvm_vcpu_pmu_resync_el0(void) {}

/* PMU Version in DFR Register */
#define ARMV8_PMU_DFR_VER_NI        0
#define ARMV8_PMU_DFR_VER_V3P1      0x4
#define ARMV8_PMU_DFR_VER_V3P4      0x5
#define ARMV8_PMU_DFR_VER_V3P5      0x6
#define ARMV8_PMU_DFR_VER_V3P9      0x9
#define ARMV8_PMU_DFR_VER_IMP_DEF   0xF

static inline bool pmuv3_implemented(int pmuver)
{
	return !(pmuver == ARMV8_PMU_DFR_VER_IMP_DEF ||
		 pmuver == ARMV8_PMU_DFR_VER_NI);
}

static inline bool is_pmuv3p4(int pmuver)
{
	return pmuver >= ARMV8_PMU_DFR_VER_V3P4;
}

static inline bool is_pmuv3p5(int pmuver)
{
	return pmuver >= ARMV8_PMU_DFR_VER_V3P5;
}

static inline bool is_pmuv3p9(int pmuver)
{
	return pmuver >= ARMV8_PMU_DFR_VER_V3P9;
}

static inline u64 read_pmceid0(void)
{
	u64 val = read_sysreg(PMCEID0);

	if (read_pmuver() >= ARMV8_PMU_DFR_VER_V3P1)
		val |= (u64)read_sysreg(PMCEID2) << 32;

	return val;
}

static inline u64 read_pmceid1(void)
{
	u64 val = read_sysreg(PMCEID1);

	if (read_pmuver() >= ARMV8_PMU_DFR_VER_V3P1)
		val |= (u64)read_sysreg(PMCEID3) << 32;

	return val;
}

#endif

Filemanager

Name Type Size Permission Actions
hardware Folder 0755
mach Folder 0755
vdso Folder 0755
xen Folder 0755
Kbuild File 186 B 0644
arch_gicv3.h File 6.25 KB 0644
arch_timer.h File 3.05 KB 0644
archrandom.h File 229 B 0644
arm-cci.h File 535 B 0644
arm_pmuv3.h File 7.38 KB 0644
asm-offsets.h File 35 B 0644
assembler.h File 16.77 KB 0644
atomic.h File 12.59 KB 0644
auxvec.h File 29 B 0644
bL_switcher.h File 2.13 KB 0644
barrier.h File 2.84 KB 0644
bitops.h File 7.55 KB 0644
bitrev.h File 451 B 0644
bug.h File 2.56 KB 0644
bugs.h File 297 B 0644
cache.h File 896 B 0644
cacheflush.h File 15.14 KB 0644
cachetype.h File 3.02 KB 0644
checksum.h File 3.96 KB 0644
clocksource.h File 161 B 0644
cmpxchg.h File 6.31 KB 0644
compiler.h File 978 B 0644
cp15.h File 3.22 KB 0644
cpu.h File 370 B 0644
cpufeature.h File 1.26 KB 0644
cpuidle.h File 1.59 KB 0644
cputype.h File 8.68 KB 0644
cti.h File 3.62 KB 0644
current.h File 1.8 KB 0644
dcc.h File 623 B 0644
delay.h File 2.83 KB 0644
device.h File 533 B 0644
div64.h File 2.69 KB 0644
dma-iommu.h File 906 B 0644
dma.h File 4.17 KB 0644
dmi.h File 378 B 0644
domain.h File 3.35 KB 0644
ecard.h File 5.98 KB 0644
edac.h File 995 B 0644
efi.h File 2.62 KB 0644
elf.h File 4.58 KB 0644
exception.h File 416 B 0644
fiq.h File 1.36 KB 0644
firmware.h File 1.69 KB 0644
fixmap.h File 1.84 KB 0644
floppy.h File 2.26 KB 0644
fncpy.h File 2.49 KB 0644
fpstate.h File 1.34 KB 0644
fpu.h File 309 B 0644
ftrace.h File 1.96 KB 0644
futex.h File 4.25 KB 0644
glue-cache.h File 2.88 KB 0644
glue-df.h File 2.06 KB 0644
glue-pf.h File 1005 B 0644
glue-proc.h File 4.32 KB 0644
glue.h File 613 B 0644
hardirq.h File 246 B 0644
highmem.h File 2.32 KB 0644
hugetlb-3level.h File 740 B 0644
hugetlb.h File 541 B 0644
hw_breakpoint.h File 3.76 KB 0644
hw_irq.h File 349 B 0644
hwcap.h File 378 B 0644
hypervisor.h File 282 B 0644
idmap.h File 359 B 0644
insn.h File 1.29 KB 0644
io.h File 13.81 KB 0644
irq.h File 808 B 0644
irq_work.h File 234 B 0644
irqflags.h File 3.88 KB 0644
jump_label.h File 1.12 KB 0644
kasan.h File 708 B 0644
kasan_def.h File 2.66 KB 0644
kexec-internal.h File 272 B 0644
kexec.h File 2.16 KB 0644
kfence.h File 1.03 KB 0644
kgdb.h File 2.72 KB 0644
kprobes.h File 2.1 KB 0644
krait-l2-accessors.h File 231 B 0644
linkage.h File 216 B 0644
mc146818rtc.h File 720 B 0644
mcpm.h File 11.78 KB 0644
mcs_spinlock.h File 570 B 0644
memblock.h File 248 B 0644
memory.h File 10.24 KB 0644
mman.h File 369 B 0644
mmu.h File 949 B 0644
mmu_context.h File 3.76 KB 0644
module.h File 1.26 KB 0644
module.lds.h File 134 B 0644
mpu.h File 3.22 KB 0644
mtd-xip.h File 520 B 0644
neon.h File 1.02 KB 0644
nwflash.h File 195 B 0644
opcodes-sec.h File 350 B 0644
opcodes-virt.h File 684 B 0644
opcodes.h File 8.06 KB 0644
outercache.h File 3.19 KB 0644
page-nommu.h File 811 B 0644
page.h File 4.69 KB 0644
paravirt.h File 477 B 0644
paravirt_api_clock.h File 26 B 0644
pci.h File 687 B 0644
percpu.h File 1.7 KB 0644
perf_event.h File 477 B 0644
pgalloc.h File 3.29 KB 0644
pgtable-2level-hwdef.h File 3.31 KB 0644
pgtable-2level-types.h File 1.25 KB 0644
pgtable-2level.h File 8.54 KB 0644
pgtable-3level-hwdef.h File 4.34 KB 0644
pgtable-3level-types.h File 1.3 KB 0644
pgtable-3level.h File 8 KB 0644
pgtable-hwdef.h File 321 B 0644
pgtable-nommu.h File 1.89 KB 0644
pgtable.h File 10.16 KB 0644
probes.h File 1.3 KB 0644
proc-fns.h File 4.88 KB 0644
processor.h File 3 KB 0644
procinfo.h File 1.13 KB 0644
prom.h File 552 B 0644
psci.h File 379 B 0644
ptdump.h File 969 B 0644
ptrace.h File 4.93 KB 0644
seccomp.h File 281 B 0644
sections.h File 622 B 0644
secure_cntvoff.h File 152 B 0644
semihost.h File 643 B 0644
set_memory.h File 788 B 0644
setup.h File 1.13 KB 0644
shmparam.h File 419 B 0644
signal.h File 694 B 0644
simd.h File 185 B 0644
smp.h File 2.83 KB 0644
smp_plat.h File 2.48 KB 0644
smp_scu.h File 1.32 KB 0644
smp_twd.h File 590 B 0644
sparsemem.h File 714 B 0644
spectre.h File 991 B 0644
spinlock.h File 5.51 KB 0644
spinlock_types.h File 547 B 0644
stackprotector.h File 1.11 KB 0644
stacktrace.h File 1.47 KB 0644
string.h File 2.11 KB 0644
suspend.h File 445 B 0644
swab.h File 1005 B 0644
switch_to.h File 1.17 KB 0644
sync_bitops.h File 1.48 KB 0644
syscall.h File 2.07 KB 0644
syscalls.h File 1.96 KB 0644
system_info.h File 763 B 0644
system_misc.h File 1005 B 0644
tcm.h File 991 B 0644
text-patching.h File 438 B 0644
therm.h File 655 B 0644
thread_info.h File 5.07 KB 0644
thread_notify.h File 1.06 KB 0644
timex.h File 431 B 0644
tlb.h File 1.28 KB 0644
tlbflush.h File 17.66 KB 0644
tls.h File 3.31 KB 0644
topology.h File 1.14 KB 0644
traps.h File 1.38 KB 0644
uaccess-asm.h File 3.72 KB 0644
uaccess.h File 16.99 KB 0644
ucontext.h File 2.68 KB 0644
unified.h File 979 B 0644
unistd.h File 1.51 KB 0644
unwind.h File 1.28 KB 0644
uprobes.h File 948 B 0644
user.h File 4.06 KB 0644
v7m.h File 3.21 KB 0644
vdso.h File 507 B 0644
vermagic.h File 800 B 0644
vfp.h File 2.89 KB 0644
vfpmacros.h File 1.72 KB 0644
vga.h File 351 B 0644
virt.h File 1.81 KB 0644
vmalloc.h File 87 B 0644
vmlinux.lds.h File 4.52 KB 0644
word-at-a-time.h File 2.11 KB 0644
xor.h File 5.63 KB 0644
Filemanager