/linux/arch/powerpc/kernel/ |
A D | dawr.c | 18 int set_dawr(int nr, struct arch_hw_breakpoint *brk) in set_dawr() argument 22 dawr = brk->address; in set_dawr() 24 dawrx = (brk->type & (HW_BRK_TYPE_READ | HW_BRK_TYPE_WRITE)) in set_dawr() 26 dawrx |= ((brk->type & (HW_BRK_TYPE_TRANSLATE)) >> 2) << (63 - 59); in set_dawr() 27 dawrx |= (brk->type & (HW_BRK_TYPE_PRIV_ALL)) >> 3; in set_dawr() 35 mrd = ((brk->hw_len + 7) >> 3) - 1; in set_dawr()
|
A D | process.c | 766 __set_breakpoint(i, brk); in set_breakpoint() 814 dabr = brk->address | (brk->type & HW_BRK_TYPE_DABR); in set_dabr() 815 dabrx = ((brk->type >> 3) & 0x7); in set_dabr() 841 unsigned long end_addr = ALIGN(brk->address + brk->len, HW_BREAKPOINT_SIZE); in set_breakpoint_8xx() 870 memcpy(this_cpu_ptr(¤t_brk[nr]), brk, sizeof(*brk)); in __set_breakpoint() 874 set_dawr(nr, brk); in __set_breakpoint() 876 set_breakpoint_8xx(brk); in __set_breakpoint() 879 set_dabr(brk); in __set_breakpoint() 2293 unsigned long base = mm->brk; in arch_randomize_brk() 2311 if (ret < mm->brk) in arch_randomize_brk() [all …]
|
/linux/arch/powerpc/kernel/ptrace/ |
A D | ptrace-noadv.c | 202 struct arch_hw_breakpoint brk; in ppc_set_hwdebug() local 217 brk.address = ALIGN_DOWN(bp_info->addr, HW_BREAKPOINT_SIZE); in ppc_set_hwdebug() 218 brk.type = HW_BRK_TYPE_TRANSLATE | HW_BRK_TYPE_PRIV_ALL; in ppc_set_hwdebug() 219 brk.len = DABR_MAX_LEN; in ppc_set_hwdebug() 220 brk.hw_len = DABR_MAX_LEN; in ppc_set_hwdebug() 222 brk.type |= HW_BRK_TYPE_READ; in ppc_set_hwdebug() 224 brk.type |= HW_BRK_TYPE_WRITE; in ppc_set_hwdebug() 241 arch_bp_generic_fields(brk.type, &attr.bp_type); in ppc_set_hwdebug() 263 child->thread.hw_brk[i] = brk; in ppc_set_hwdebug()
|
/linux/mm/ |
A D | init-mm.c | 45 void *end_data, void *brk) in setup_initial_init_mm() argument 50 init_mm.brk = (unsigned long)brk; in setup_initial_init_mm()
|
A D | nommu.c | 380 SYSCALL_DEFINE1(brk, unsigned long, brk) in SYSCALL_DEFINE1() argument 384 if (brk < mm->start_brk || brk > mm->context.end_brk) in SYSCALL_DEFINE1() 385 return mm->brk; in SYSCALL_DEFINE1() 387 if (mm->brk == brk) in SYSCALL_DEFINE1() 388 return mm->brk; in SYSCALL_DEFINE1() 393 if (brk <= mm->brk) { in SYSCALL_DEFINE1() 394 mm->brk = brk; in SYSCALL_DEFINE1() 395 return brk; in SYSCALL_DEFINE1() 401 flush_icache_user_range(mm->brk, brk); in SYSCALL_DEFINE1() 402 return mm->brk = brk; in SYSCALL_DEFINE1()
|
A D | mmap.c | 194 SYSCALL_DEFINE1(brk, unsigned long, brk) in SYSCALL_DEFINE1() argument 207 origbrk = mm->brk; in SYSCALL_DEFINE1() 222 if (brk < min_brk) in SYSCALL_DEFINE1() 235 newbrk = PAGE_ALIGN(brk); in SYSCALL_DEFINE1() 236 oldbrk = PAGE_ALIGN(mm->brk); in SYSCALL_DEFINE1() 238 mm->brk = brk; in SYSCALL_DEFINE1() 246 if (brk <= mm->brk) { in SYSCALL_DEFINE1() 254 mm->brk = brk; in SYSCALL_DEFINE1() 257 mm->brk = origbrk; in SYSCALL_DEFINE1() 273 mm->brk = brk; in SYSCALL_DEFINE1() [all …]
|
/linux/arch/parisc/kernel/ |
A D | process.c | 294 unsigned long ret = PAGE_ALIGN(mm->brk + brk_rnd()); in arch_randomize_brk() 296 if (ret < mm->brk) in arch_randomize_brk() 297 return mm->brk; in arch_randomize_brk()
|
/linux/arch/s390/kernel/ |
A D | process.c | 229 ret = PAGE_ALIGN(mm->brk + brk_rnd()); in arch_randomize_brk() 230 return (ret > mm->brk) ? ret : mm->brk; in arch_randomize_brk()
|
/linux/arch/x86/include/asm/ |
A D | setup.h | 147 .brk.name: \ 149 .size .brk.name,.-1b; \
|
/linux/arch/powerpc/include/asm/ |
A D | hw_breakpoint.h | 121 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
|
A D | debug.h | 48 void __set_breakpoint(int nr, struct arch_hw_breakpoint *brk);
|
/linux/arch/ia64/kernel/ |
A D | sys_ia64.c | 91 ia64_brk (unsigned long brk) in ia64_brk() argument 93 unsigned long retval = sys_brk(brk); in ia64_brk()
|
/linux/tools/testing/selftests/timers/ |
A D | posix_timers.c | 40 err = brk(addr + 4096); in kernel_loop() 41 err |= brk(addr); in kernel_loop()
|
/linux/Documentation/arm64/ |
A D | tagged-address-abi.rst | 36 - ``brk()`` syscall (i.e. the heap area between the initial location of 50 - ``brk()``, ``mmap()`` and the ``new_address`` argument to 55 incorrectly accept valid tagged pointers for the ``brk()``, 126 - ``brk()`` (since kernel v5.6).
|
/linux/arch/microblaze/boot/dts/ |
A D | system.dts | 93 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>;
|
/linux/drivers/tty/serial/ |
A D | zs.c | 577 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()
|
A D | fsl_linflexuart.c | 244 bool brk; in linflex_rxint() local 251 brk = false; in linflex_rxint() 261 brk = true; in linflex_rxint() 262 sport->icount.brk++; in linflex_rxint() 273 if (brk) { in linflex_rxint()
|
/linux/Documentation/bpf/ |
A D | bpf_lsm.rst | 31 unsigned long start_brk, brk, start_stack; 35 unsigned long start_brk, brk, start_stack; 80 vma->vm_end <= vma->vm_mm->brk);
|
/linux/include/linux/ |
A D | elf-randomize.h | 13 # define arch_randomize_brk(mm) (mm->brk)
|
A D | serial.h | 22 __u32 frame, parity, overrun, brk; member
|
/linux/arch/arm64/include/asm/ |
A D | asm-bug.h | 39 brk BUG_BRK_IMM
|
/linux/arch/x86/kernel/ |
A D | vmlinux.lds.S | 392 .brk : AT(ADDR(.brk) - LOAD_OFFSET) {
|
/linux/include/uapi/linux/ |
A D | serial.h | 105 int frame, overrun, parity, brk; member
|
/linux/arch/x86/ia32/ |
A D | ia32_aout.c | 151 current->mm->brk = ex.a_bss + in load_aout_binary() 220 error = set_brk(current->mm->start_brk, current->mm->brk); in load_aout_binary()
|
/linux/fs/ |
A D | binfmt_aout.c | 170 current->mm->brk = ex.a_bss + in load_aout_binary() 240 retval = set_brk(current->mm->start_brk, current->mm->brk); in load_aout_binary()
|