/
usr
/
src
/
linux-headers-5.15.0-181
/
arch
/
arm
/
include
/
asm
/
/usr/src/linux-headers-5.15.0-181/arch/arm/include/asm
mkdir
upload
Name
Size
Mode
Actions
hardware/
-
0755
rm
mach/
-
0755
rm
vdso/
-
0755
rm
xen/
-
0755
rm
archrandom.h
192
0644
edit
dl
rm
arch_gicv3.h
6327
0644
edit
dl
rm
arch_timer.h
3124
0644
edit
dl
rm
arm-cci.h
535
0644
edit
dl
rm
asm-offsets.h
35
0644
edit
dl
rm
assembler.h
13106
0644
edit
dl
rm
atomic.h
12536
0644
edit
dl
rm
auxvec.h
29
0644
edit
dl
rm
barrier.h
2910
0644
edit
dl
rm
bitops.h
7627
0644
edit
dl
rm
bitrev.h
451
0644
edit
dl
rm
bL_switcher.h
2186
0644
edit
dl
rm
bug.h
2620
0644
edit
dl
rm
bugs.h
297
0644
edit
dl
rm
cache.h
794
0644
edit
dl
rm
cacheflush.h
15794
0644
edit
dl
rm
cachetype.h
2779
0644
edit
dl
rm
checksum.h
4026
0644
edit
dl
rm
clocksource.h
161
0644
edit
dl
rm
cmpxchg.h
6328
0644
edit
dl
rm
compiler.h
978
0644
edit
dl
rm
cp15.h
3302
0644
edit
dl
rm
cpu.h
387
0644
edit
dl
rm
cpufeature.h
1291
0644
edit
dl
rm
cpuidle.h
1628
0644
edit
dl
rm
cputype.h
8766
0644
edit
dl
rm
cti.h
3703
0644
edit
dl
rm
dcc.h
623
0644
edit
dl
rm
delay.h
2903
0644
edit
dl
rm
device.h
636
0644
edit
dl
rm
div64.h
2640
0644
edit
dl
rm
dma-direct.h
1341
0644
edit
dl
rm
dma-iommu.h
908
0644
edit
dl
rm
dma-mapping.h
4714
0644
edit
dl
rm
dma.h
4287
0644
edit
dl
rm
dmi.h
378
0644
edit
dl
rm
domain.h
3751
0644
edit
dl
rm
ecard.h
6119
0644
edit
dl
rm
edac.h
995
0644
edit
dl
rm
efi.h
2501
0644
edit
dl
rm
elf.h
4636
0644
edit
dl
rm
entry-macro-multi.S
336
0644
edit
dl
rm
exception.h
416
0644
edit
dl
rm
fb.h
375
0644
edit
dl
rm
fiq.h
1391
0644
edit
dl
rm
firmware.h
1728
0644
edit
dl
rm
fixmap.h
1881
0644
edit
dl
rm
floppy.h
2318
0644
edit
dl
rm
fncpy.h
2552
0644
edit
dl
rm
fpstate.h
1478
0644
edit
dl
rm
ftrace.h
1821
0644
edit
dl
rm
futex.h
4357
0644
edit
dl
rm
glue-cache.h
3515
0644
edit
dl
rm
glue-df.h
2110
0644
edit
dl
rm
glue-pf.h
1005
0644
edit
dl
rm
glue-proc.h
4424
0644
edit
dl
rm
glue.h
613
0644
edit
dl
rm
gpio.h
615
0644
edit
dl
rm
hardirq.h
246
0644
edit
dl
rm
highmem.h
2379
0644
edit
dl
rm
hugetlb-3level.h
690
0644
edit
dl
rm
hugetlb.h
513
0644
edit
dl
rm
hwcap.h
378
0644
edit
dl
rm
hw_breakpoint.h
3811
0644
edit
dl
rm
hw_irq.h
349
0644
edit
dl
rm
hypervisor.h
224
0644
edit
dl
rm
ide.h
566
0644
edit
dl
rm
idmap.h
359
0644
edit
dl
rm
insn.h
636
0644
edit
dl
rm
io.h
15027
0644
edit
dl
rm
irq.h
887
0644
edit
dl
rm
irqflags.h
3969
0644
edit
dl
rm
irq_work.h
234
0644
edit
dl
rm
jump_label.h
1009
0644
edit
dl
rm
kasan.h
708
0644
edit
dl
rm
kasan_def.h
2726
0644
edit
dl
rm
Kbuild
186
0644
edit
dl
rm
kexec-internal.h
272
0644
edit
dl
rm
kexec.h
2255
0644
edit
dl
rm
kgdb.h
2783
0644
edit
dl
rm
kprobes.h
2248
0644
edit
dl
rm
krait-l2-accessors.h
231
0644
edit
dl
rm
linkage.h
216
0644
edit
dl
rm
mc146818rtc.h
720
0644
edit
dl
rm
mcpm.h
12061
0644
edit
dl
rm
mcs_spinlock.h
570
0644
edit
dl
rm
memblock.h
248
0644
edit
dl
rm
memory.h
10945
0644
edit
dl
rm
mmu.h
953
0644
edit
dl
rm
mmu_context.h
3461
0644
edit
dl
rm
module.h
1216
0644
edit
dl
rm
module.lds.h
134
0644
edit
dl
rm
mpu.h
3300
0644
edit
dl
rm
mtd-xip.h
520
0644
edit
dl
rm
neon.h
1041
0644
edit
dl
rm
nwflash.h
195
0644
edit
dl
rm
opcodes-sec.h
350
0644
edit
dl
rm
opcodes-virt.h
684
0644
edit
dl
rm
opcodes.h
8118
0644
edit
dl
rm
outercache.h
3268
0644
edit
dl
rm
page-nommu.h
811
0644
edit
dl
rm
page.h
3448
0644
edit
dl
rm
paravirt.h
477
0644
edit
dl
rm
patch.h
438
0644
edit
dl
rm
pci.h
794
0644
edit
dl
rm
percpu.h
1069
0644
edit
dl
rm
perf_event.h
708
0644
edit
dl
rm
pgalloc.h
3373
0644
edit
dl
rm
pgtable-2level-hwdef.h
3385
0644
edit
dl
rm
pgtable-2level-types.h
1278
0644
edit
dl
rm
pgtable-2level.h
8645
0644
edit
dl
rm
pgtable-3level-hwdef.h
3435
0644
edit
dl
rm
pgtable-3level-types.h
1331
0644
edit
dl
rm
pgtable-3level.h
8148
0644
edit
dl
rm
pgtable-hwdef.h
321
0644
edit
dl
rm
pgtable-nommu.h
1979
0644
edit
dl
rm
pgtable.h
10492
0644
edit
dl
rm
probes.h
1332
0644
edit
dl
rm
proc-fns.h
4754
0644
edit
dl
rm
processor.h
3166
0644
edit
dl
rm
procinfo.h
1152
0644
edit
dl
rm
prom.h
552
0644
edit
dl
rm
psci.h
379
0644
edit
dl
rm
ptdump.h
923
0644
edit
dl
rm
ptrace.h
4841
0644
edit
dl
rm
seccomp.h
281
0644
edit
dl
rm
sections.h
622
0644
edit
dl
rm
secure_cntvoff.h
152
0644
edit
dl
rm
setup.h
773
0644
edit
dl
rm
set_memory.h
720
0644
edit
dl
rm
shmparam.h
419
0644
edit
dl
rm
signal.h
559
0644
edit
dl
rm
smp.h
2839
0644
edit
dl
rm
smp_plat.h
2535
0644
edit
dl
rm
smp_scu.h
1352
0644
edit
dl
rm
smp_twd.h
590
0644
edit
dl
rm
sparsemem.h
716
0644
edit
dl
rm
spectre.h
906
0644
edit
dl
rm
spinlock.h
5645
0644
edit
dl
rm
spinlock_types.h
541
0644
edit
dl
rm
stackprotector.h
1357
0644
edit
dl
rm
stacktrace.h
742
0644
edit
dl
rm
string.h
2165
0644
edit
dl
rm
suspend.h
369
0644
edit
dl
rm
swab.h
1005
0644
edit
dl
rm
switch_to.h
1058
0644
edit
dl
rm
sync_bitops.h
1514
0644
edit
dl
rm
syscall.h
2347
0644
edit
dl
rm
system_info.h
763
0644
edit
dl
rm
system_misc.h
1005
0644
edit
dl
rm
tcm.h
925
0644
edit
dl
rm
therm.h
655
0644
edit
dl
rm
thread_info.h
4974
0644
edit
dl
rm
thread_notify.h
1086
0644
edit
dl
rm
timex.h
431
0644
edit
dl
rm
tlb.h
1442
0644
edit
dl
rm
tlbflush.h
17909
0644
edit
dl
rm
tls.h
3166
0644
edit
dl
rm
topology.h
1139
0644
edit
dl
rm
traps.h
911
0644
edit
dl
rm
uaccess-asm.h
2703
0644
edit
dl
rm
uaccess.h
17431
0644
edit
dl
rm
ucontext.h
2745
0644
edit
dl
rm
unified.h
979
0644
edit
dl
rm
unistd.h
1578
0644
edit
dl
rm
unwind.h
1173
0644
edit
dl
rm
uprobes.h
948
0644
edit
dl
rm
user.h
4302
0644
edit
dl
rm
v7m.h
3233
0644
edit
dl
rm
vdso.h
507
0644
edit
dl
rm
vdso_datapage.h
444
0644
edit
dl
rm
vermagic.h
800
0644
edit
dl
rm
vfp.h
2969
0644
edit
dl
rm
vfpmacros.h
2074
0644
edit
dl
rm
vga.h
305
0644
edit
dl
rm
virt.h
1855
0644
edit
dl
rm
vmalloc.h
87
0644
edit
dl
rm
vmlinux.lds.h
4490
0644
edit
dl
rm
word-at-a-time.h
2128
0644
edit
dl
rm
xor.h
5204
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-181/arch/arm/include/asm/hw_breakpoint.h
(3811B)
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ARM_HW_BREAKPOINT_H #define _ARM_HW_BREAKPOINT_H #ifdef __KERNEL__ struct task_struct; #ifdef CONFIG_HAVE_HW_BREAKPOINT struct arch_hw_breakpoint_ctrl { u32 __reserved : 9, mismatch : 1, : 9, len : 8, type : 2, privilege : 2, enabled : 1; }; struct arch_hw_breakpoint { u32 address; u32 trigger; struct arch_hw_breakpoint_ctrl step_ctrl; struct arch_hw_breakpoint_ctrl ctrl; }; static inline u32 encode_ctrl_reg(struct arch_hw_breakpoint_ctrl ctrl) { return (ctrl.mismatch << 22) | (ctrl.len << 5) | (ctrl.type << 3) | (ctrl.privilege << 1) | ctrl.enabled; } static inline void decode_ctrl_reg(u32 reg, struct arch_hw_breakpoint_ctrl *ctrl) { ctrl->enabled = reg & 0x1; reg >>= 1; ctrl->privilege = reg & 0x3; reg >>= 2; ctrl->type = reg & 0x3; reg >>= 2; ctrl->len = reg & 0xff; reg >>= 17; ctrl->mismatch = reg & 0x1; } /* Debug architecture numbers. */ #define ARM_DEBUG_ARCH_RESERVED 0 /* In case of ptrace ABI updates. */ #define ARM_DEBUG_ARCH_V6 1 #define ARM_DEBUG_ARCH_V6_1 2 #define ARM_DEBUG_ARCH_V7_ECP14 3 #define ARM_DEBUG_ARCH_V7_MM 4 #define ARM_DEBUG_ARCH_V7_1 5 #define ARM_DEBUG_ARCH_V8 6 #define ARM_DEBUG_ARCH_V8_1 7 #define ARM_DEBUG_ARCH_V8_2 8 #define ARM_DEBUG_ARCH_V8_4 9 /* Breakpoint */ #define ARM_BREAKPOINT_EXECUTE 0 /* Watchpoints */ #define ARM_BREAKPOINT_LOAD 1 #define ARM_BREAKPOINT_STORE 2 #define ARM_FSR_ACCESS_MASK (1 << 11) /* Privilege Levels */ #define ARM_BREAKPOINT_PRIV 1 #define ARM_BREAKPOINT_USER 2 /* Lengths */ #define ARM_BREAKPOINT_LEN_1 0x1 #define ARM_BREAKPOINT_LEN_2 0x3 #define ARM_BREAKPOINT_LEN_4 0xf #define ARM_BREAKPOINT_LEN_8 0xff /* Limits */ #define ARM_MAX_BRP 16 #define ARM_MAX_WRP 16 #define ARM_MAX_HBP_SLOTS (ARM_MAX_BRP + ARM_MAX_WRP) /* DSCR method of entry bits. */ #define ARM_DSCR_MOE(x) ((x >> 2) & 0xf) #define ARM_ENTRY_BREAKPOINT 0x1 #define ARM_ENTRY_ASYNC_WATCHPOINT 0x2 #define ARM_ENTRY_SYNC_WATCHPOINT 0xa /* DSCR monitor/halting bits. */ #define ARM_DSCR_HDBGEN (1 << 14) #define ARM_DSCR_MDBGEN (1 << 15) /* OSLSR os lock model bits */ #define ARM_OSLSR_OSLM0 (1 << 0) /* opcode2 numbers for the co-processor instructions. */ #define ARM_OP2_BVR 4 #define ARM_OP2_BCR 5 #define ARM_OP2_WVR 6 #define ARM_OP2_WCR 7 /* Base register numbers for the debug registers. */ #define ARM_BASE_BVR 64 #define ARM_BASE_BCR 80 #define ARM_BASE_WVR 96 #define ARM_BASE_WCR 112 /* Accessor macros for the debug registers. */ #define ARM_DBG_READ(N, M, OP2, VAL) do {\ asm volatile("mrc p14, 0, %0, " #N "," #M ", " #OP2 : "=r" (VAL));\ } while (0) #define ARM_DBG_WRITE(N, M, OP2, VAL) do {\ asm volatile("mcr p14, 0, %0, " #N "," #M ", " #OP2 : : "r" (VAL));\ } while (0) struct perf_event_attr; struct notifier_block; struct perf_event; struct pmu; extern int arch_bp_generic_fields(struct arch_hw_breakpoint_ctrl ctrl, int *gen_len, int *gen_type); extern int arch_check_bp_in_kernelspace(struct arch_hw_breakpoint *hw); extern int hw_breakpoint_arch_parse(struct perf_event *bp, const struct perf_event_attr *attr, struct arch_hw_breakpoint *hw); extern int hw_breakpoint_exceptions_notify(struct notifier_block *unused, unsigned long val, void *data); extern u8 arch_get_debug_arch(void); extern u8 arch_get_max_wp_len(void); extern void clear_ptrace_hw_breakpoint(struct task_struct *tsk); int arch_install_hw_breakpoint(struct perf_event *bp); void arch_uninstall_hw_breakpoint(struct perf_event *bp); void hw_breakpoint_pmu_read(struct perf_event *bp); int hw_breakpoint_slots(int type); #else static inline void clear_ptrace_hw_breakpoint(struct task_struct *tsk) {} #endif /* CONFIG_HAVE_HW_BREAKPOINT */ #endif /* __KERNEL__ */ #endif /* _ARM_HW_BREAKPOINT_H */
Save
cmd:
run