Home
last modified time | relevance | path

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

1234567

/linux-6.12.1/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.c758 static void set_breakpoint(int i, struct arch_hw_breakpoint *brk) in set_breakpoint() argument
761 __set_breakpoint(i, brk); in set_breakpoint()
805 static inline int set_dabr(struct arch_hw_breakpoint *brk) in set_dabr() argument
809 dabr = brk->address | (brk->type & HW_BRK_TYPE_DABR); in set_dabr()
810 dabrx = ((brk->type >> 3) & 0x7); in set_dabr()
830 static inline int set_breakpoint_8xx(struct arch_hw_breakpoint *brk) in set_breakpoint_8xx() argument
835 unsigned long start_addr = ALIGN_DOWN(brk->address, HW_BREAKPOINT_SIZE); in set_breakpoint_8xx()
836 unsigned long end_addr = ALIGN(brk->address + brk->len, HW_BREAKPOINT_SIZE); in set_breakpoint_8xx()
847 if ((brk->type & HW_BRK_TYPE_RDWR) == 0) in set_breakpoint_8xx()
850 if ((brk->type & HW_BRK_TYPE_RDWR) == HW_BRK_TYPE_READ) in set_breakpoint_8xx()
[all …]
/linux-6.12.1/arch/powerpc/kernel/ptrace/
Dptrace-noadv.c202 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-6.12.1/mm/
Dinit-mm.c51 void *end_data, void *brk) in setup_initial_init_mm() argument
56 init_mm.brk = (unsigned long)brk; in setup_initial_init_mm()
Dnommu.c370 SYSCALL_DEFINE1(brk, unsigned long, brk) in SYSCALL_DEFINE1() argument
374 if (brk < mm->start_brk || brk > mm->context.end_brk) in SYSCALL_DEFINE1()
375 return mm->brk; in SYSCALL_DEFINE1()
377 if (mm->brk == brk) in SYSCALL_DEFINE1()
378 return mm->brk; in SYSCALL_DEFINE1()
383 if (brk <= mm->brk) { in SYSCALL_DEFINE1()
384 mm->brk = brk; in SYSCALL_DEFINE1()
385 return brk; in SYSCALL_DEFINE1()
391 flush_icache_user_range(mm->brk, brk); in SYSCALL_DEFINE1()
392 return mm->brk = brk; in SYSCALL_DEFINE1()
Dmmap.c115 SYSCALL_DEFINE1(brk, unsigned long, brk) in SYSCALL_DEFINE1() argument
128 origbrk = mm->brk; in SYSCALL_DEFINE1()
143 if (brk < min_brk) in SYSCALL_DEFINE1()
152 if (check_data_rlimit(rlimit(RLIMIT_DATA), brk, mm->start_brk, in SYSCALL_DEFINE1()
156 newbrk = PAGE_ALIGN(brk); in SYSCALL_DEFINE1()
157 oldbrk = PAGE_ALIGN(mm->brk); in SYSCALL_DEFINE1()
159 mm->brk = brk; in SYSCALL_DEFINE1()
164 if (brk <= mm->brk) { in SYSCALL_DEFINE1()
175 mm->brk = brk; in SYSCALL_DEFINE1()
200 mm->brk = brk; in SYSCALL_DEFINE1()
[all …]
/linux-6.12.1/arch/s390/kernel/
Dprocess.c252 ret = PAGE_ALIGN(mm->brk + brk_rnd()); in arch_randomize_brk()
253 return (ret > mm->brk) ? ret : mm->brk; in arch_randomize_brk()
/linux-6.12.1/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);
/linux-6.12.1/arch/x86/kernel/
Dvmlinux.lds.S409 .brk : AT(ADDR(.brk) - LOAD_OFFSET) {
412 *(.bss..brk) /* areas brk users have reserved */ argument
/linux-6.12.1/arch/arm64/kernel/probes/
Dkprobes_trampoline.S18 brk #KRETPROBES_BRK_IMM
/linux-6.12.1/include/linux/
Delf-randomize.h13 # define arch_randomize_brk(mm) (mm->brk)
Dserial.h42 __u32 frame, parity, overrun, brk; member
/linux-6.12.1/Documentation/arch/arm64/
Dtagged-address-abi.rst36 - ``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-6.12.1/Documentation/bpf/
Dprog_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);
/linux-6.12.1/arch/arm64/include/asm/
Dasm-bug.h40 brk BUG_BRK_IMM
/linux-6.12.1/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>;
/linux-6.12.1/drivers/tty/serial/
Dzs.c578 icount->brk++; in zs_receive_chars()
652 u8 status, brk; in zs_status_handle() local
660 brk = status & BRK_ABRT; in zs_status_handle()
661 if (brk && !zport->brk) { in zs_status_handle()
669 zport->brk = brk; in zs_status_handle()
797 zport->brk = read_zsreg(zport, R0) & BRK_ABRT; in zs_startup()
Dfsl_linflexuart.c232 bool brk; in linflex_rxint() local
239 brk = false; in linflex_rxint()
249 brk = true; in linflex_rxint()
250 sport->icount.brk++; in linflex_rxint()
261 if (brk) { in linflex_rxint()
/linux-6.12.1/Documentation/translations/zh_CN/mm/
Dovercommit-accounting.rst76 * 我们的审计 brk
/linux-6.12.1/tools/testing/selftests/nolibc/
Dnolibc-test.c703 char *brk = sbrk(0) != (void *)-1 ? sbrk(0) : &end; in run_startup() local
718 CASE_TEST(argv_addr); EXPECT_PTRGT(1, test_argv, brk); break; in run_startup()
721 CASE_TEST(argv0_addr); EXPECT_PTRGT(1, argv0, brk); break; in run_startup()
722 CASE_TEST(argv0_str); EXPECT_STRNZ(1, argv0 > brk ? argv0 : NULL); break; in run_startup()
723 CASE_TEST(argv0_len); EXPECT_GE(1, argv0 > brk ? strlen(argv0) : 0, 1); break; in run_startup()
724 CASE_TEST(environ_addr); EXPECT_PTRGT(1, environ, brk); break; in run_startup()
729 CASE_TEST(auxv_addr); EXPECT_PTRGT(test_auxv != (void *)-1, test_auxv, brk); break; in run_startup()
1013 has_brk = brk(0) == 0; in run_syscall()
1032 CASE_TEST(brk); EXPECT_SYSZR(has_brk, brk(sbrk(0))); break; in run_syscall()
/linux-6.12.1/arch/x86/include/asm/
Dsetup.h147 .pushsection .bss..brk, "aw"
/linux-6.12.1/include/uapi/linux/
Dserial.h106 int frame, overrun, parity, brk; member
/linux-6.12.1/drivers/tty/
Dn_gsm.c457 static int gsm_modem_update(struct gsm_dlci *dlci, u8 brk);
1309 u8 brk) in gsm_dlci_modem_output() argument
1321 if (brk > 0) in gsm_dlci_modem_output()
1340 if (brk == 0) { in gsm_dlci_modem_output()
1344 *dp++ = (brk << 4) | 2 | EA; /* Length, Break, EA */ in gsm_dlci_modem_output()
1511 u8 brk = 0; in gsm_process_modem() local
1522 brk = modem & 0x7f; in gsm_process_modem()
1552 if (brk & 0x01) in gsm_process_modem()
4117 static void gsm_modem_upd_via_data(struct gsm_dlci *dlci, u8 brk) in gsm_modem_upd_via_data() argument
4126 gsm_dlci_modem_output(gsm, dlci, brk); in gsm_modem_upd_via_data()
[all …]
/linux-6.12.1/arch/alpha/kernel/
Dosf_sys.c59 SYSCALL_DEFINE1(osf_brk, unsigned long, brk) in SYSCALL_DEFINE1() argument
61 unsigned long retval = sys_brk(brk); in SYSCALL_DEFINE1()
62 if (brk && brk != retval) in SYSCALL_DEFINE1()
79 mm->brk = bss_start + bss_len; in SYSCALL_DEFINE4()

1234567