Home
last modified time | relevance | path

Searched refs:brk (Results 1 – 25 of 183) sorted by relevance

12345678

/kernel/linux/linux-5.10/arch/powerpc/kernel/
Ddawr.c19 int set_dawr(int nr, struct arch_hw_breakpoint *brk) in set_dawr() argument
23 dawr = brk->address; in set_dawr()
25 dawrx = (brk->type & (HW_BRK_TYPE_READ | HW_BRK_TYPE_WRITE)) in set_dawr()
27 dawrx |= ((brk->type & (HW_BRK_TYPE_TRANSLATE)) >> 2) << (63 - 59); in set_dawr()
28 dawrx |= (brk->type & (HW_BRK_TYPE_PRIV_ALL)) >> 3; in set_dawr()
36 mrd = ((brk->hw_len + 7) >> 3) - 1; in set_dawr()
Dprocess.c763 static void set_breakpoint(int i, struct arch_hw_breakpoint *brk) in set_breakpoint() argument
766 __set_breakpoint(i, brk); in set_breakpoint()
833 static inline int set_dabr(struct arch_hw_breakpoint *brk) in set_dabr() argument
837 dabr = brk->address | (brk->type & HW_BRK_TYPE_DABR); in set_dabr()
838 dabrx = ((brk->type >> 3) & 0x7); in set_dabr()
846 static inline int set_breakpoint_8xx(struct arch_hw_breakpoint *brk) in set_breakpoint_8xx() argument
851 unsigned long start_addr = ALIGN_DOWN(brk->address, HW_BREAKPOINT_SIZE); in set_breakpoint_8xx()
852 unsigned long end_addr = ALIGN(brk->address + brk->len, HW_BREAKPOINT_SIZE); in set_breakpoint_8xx()
863 if ((brk->type & HW_BRK_TYPE_RDWR) == 0) in set_breakpoint_8xx()
866 if ((brk->type & HW_BRK_TYPE_RDWR) == HW_BRK_TYPE_READ) in set_breakpoint_8xx()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/
Dptrace-noadv.c206 struct arch_hw_breakpoint brk; in ppc_set_hwdebug() local
221 brk.address = ALIGN_DOWN(bp_info->addr, HW_BREAKPOINT_SIZE); in ppc_set_hwdebug()
222 brk.type = HW_BRK_TYPE_TRANSLATE | HW_BRK_TYPE_PRIV_ALL; in ppc_set_hwdebug()
223 brk.len = DABR_MAX_LEN; in ppc_set_hwdebug()
224 brk.hw_len = DABR_MAX_LEN; in ppc_set_hwdebug()
226 brk.type |= HW_BRK_TYPE_READ; in ppc_set_hwdebug()
228 brk.type |= HW_BRK_TYPE_WRITE; in ppc_set_hwdebug()
245 arch_bp_generic_fields(brk.type, &attr.bp_type); in ppc_set_hwdebug()
267 child->thread.hw_brk[i] = brk; in ppc_set_hwdebug()
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dprocess.c298 unsigned long ret = PAGE_ALIGN(mm->brk + brk_rnd()); in arch_randomize_brk()
300 if (ret < mm->brk) in arch_randomize_brk()
301 return mm->brk; in arch_randomize_brk()
/kernel/linux/linux-5.10/mm/
Dnommu.c391 SYSCALL_DEFINE1(brk, unsigned long, brk) in SYSCALL_DEFINE1() argument
395 if (brk < mm->start_brk || brk > mm->context.end_brk) in SYSCALL_DEFINE1()
396 return mm->brk; in SYSCALL_DEFINE1()
398 if (mm->brk == brk) in SYSCALL_DEFINE1()
399 return mm->brk; in SYSCALL_DEFINE1()
404 if (brk <= mm->brk) { in SYSCALL_DEFINE1()
405 mm->brk = brk; in SYSCALL_DEFINE1()
406 return brk; in SYSCALL_DEFINE1()
412 flush_icache_user_range(mm->brk, brk); in SYSCALL_DEFINE1()
413 return mm->brk = brk; in SYSCALL_DEFINE1()
Dmmap.c195 SYSCALL_DEFINE1(brk, unsigned long, brk) in SYSCALL_DEFINE1() argument
209 origbrk = mm->brk; in SYSCALL_DEFINE1()
224 if (brk < min_brk) in SYSCALL_DEFINE1()
233 if (check_data_rlimit(rlimit(RLIMIT_DATA), brk, mm->start_brk, in SYSCALL_DEFINE1()
237 newbrk = PAGE_ALIGN(brk); in SYSCALL_DEFINE1()
238 oldbrk = PAGE_ALIGN(mm->brk); in SYSCALL_DEFINE1()
240 mm->brk = brk; in SYSCALL_DEFINE1()
248 if (brk <= mm->brk) { in SYSCALL_DEFINE1()
256 mm->brk = brk; in SYSCALL_DEFINE1()
259 mm->brk = origbrk; in SYSCALL_DEFINE1()
[all …]
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dsetup.h152 .brk.name: \
154 .size .brk.name,.-1b; \
/kernel/linux/linux-5.10/arch/s390/kernel/
Dprocess.c218 ret = PAGE_ALIGN(mm->brk + brk_rnd()); in arch_randomize_brk()
219 return (ret > mm->brk) ? ret : mm->brk; in arch_randomize_brk()
/kernel/linux/build/test/kernel_ltp/syscalls/brk/
DBUILD.gn19 sources = [ "//third_party/ltp/testcases/kernel/syscalls/brk/brk01.c" ]
24 sources = [ "//third_party/ltp/testcases/kernel/syscalls/brk/brk02.c" ]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dhw_breakpoint.h121 int set_dawr(int nr, struct arch_hw_breakpoint *brk);
124 static inline int set_dawr(int nr, struct arch_hw_breakpoint *brk) { return -1; } in set_dawr() argument
Ddebug.h48 void __set_breakpoint(int nr, struct arch_hw_breakpoint *brk);
/kernel/linux/linux-5.10/arch/ia64/kernel/
Dsys_ia64.c91 ia64_brk (unsigned long brk) in ia64_brk() argument
93 unsigned long retval = sys_brk(brk); in ia64_brk()
/kernel/linux/linux-5.10/tools/testing/selftests/timers/
Dposix_timers.c40 err = brk(addr + 4096); in kernel_loop()
41 err |= brk(addr); in kernel_loop()
/kernel/linux/linux-5.10/include/linux/
Dserial.h22 __u32 frame, parity, overrun, brk; member
Delf-randomize.h13 # define arch_randomize_brk(mm) (mm->brk)
/kernel/liteos_m/kal/libc/newlib/porting/include/sys/
Dprctl.h46 uint64_t brk; member
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dasm-bug.h39 brk BUG_BRK_IMM
/kernel/linux/linux-5.10/Documentation/bpf/
Dbpf_lsm.rst31 unsigned long start_brk, brk, start_stack;
35 unsigned long start_brk, brk, start_stack;
80 vma->vm_end <= vma->vm_mm->brk);
/kernel/linux/linux-5.10/arch/microblaze/boot/dts/
Dsystem.dts93 xlnx,number-of-pc-brk = <0x1>;
94 xlnx,number-of-rd-addr-brk = <0x0>;
95 xlnx,number-of-wr-addr-brk = <0x0>;
106 xlnx,use-ext-brk = <0x1>;
107 xlnx,use-ext-nm-brk = <0x1>;
/kernel/linux/linux-5.10/drivers/tty/serial/
Dzs.c577 icount->brk++; in zs_receive_chars()
651 u8 status, brk; in zs_status_handle() local
659 brk = status & BRK_ABRT; in zs_status_handle()
660 if (brk && !zport->brk) { in zs_status_handle()
668 zport->brk = brk; in zs_status_handle()
796 zport->brk = read_zsreg(zport, R0) & BRK_ABRT; in zs_startup()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dserial.h75 int frame, overrun, parity, brk; member
/kernel/linux/linux-5.10/arch/riscv/kernel/
Dsetup.c80 init_mm.brk = (unsigned long) _end; in setup_arch()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dserial.h88 int frame, overrun, parity, brk; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dserial.h105 int frame, overrun, parity, brk; member
/kernel/linux/linux-5.10/arch/x86/kernel/
Dvmlinux.lds.S399 .brk : AT(ADDR(.brk) - LOAD_OFFSET) {

12345678