Home
last modified time | relevance | path

Searched refs:stack_depth (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.6.21/fs/xfs/scrub/ !
Dxfarray.c807 if (si->stack_depth >= si->max_stack_depth - 1) { in xfarray_qsort_push()
808 ASSERT(si->stack_depth < si->max_stack_depth - 1); in xfarray_qsort_push()
813 si->stack_depth + 2); in xfarray_qsort_push()
815 si_lo[si->stack_depth + 1] = lo + 1; in xfarray_qsort_push()
816 si_hi[si->stack_depth + 1] = si_hi[si->stack_depth]; in xfarray_qsort_push()
817 si_hi[si->stack_depth++] = lo - 1; in xfarray_qsort_push()
823 if (si_hi[si->stack_depth] - si_lo[si->stack_depth] > in xfarray_qsort_push()
824 si_hi[si->stack_depth - 1] - si_lo[si->stack_depth - 1]) { in xfarray_qsort_push()
825 swap(si_lo[si->stack_depth], si_lo[si->stack_depth - 1]); in xfarray_qsort_push()
826 swap(si_hi[si->stack_depth], si_hi[si->stack_depth - 1]); in xfarray_qsort_push()
[all …]
Dxfarray.h78 int8_t stack_depth; member
Dtrace.h948 __field(int, stack_depth)
955 __entry->stack_depth = si->stack_depth;
963 __entry->stack_depth,
/linux-6.6.21/arch/s390/net/ !
Dbpf_jit_comp.c421 static void restore_regs(struct bpf_jit *jit, u32 rs, u32 re, u32 stack_depth) in restore_regs() argument
426 off += STK_OFF + stack_depth; in restore_regs()
470 static void save_restore_regs(struct bpf_jit *jit, int op, u32 stack_depth) in save_restore_regs() argument
492 restore_regs(jit, rs, re, stack_depth); in save_restore_regs()
552 u32 stack_depth) in bpf_jit_prologue() argument
574 save_restore_regs(jit, REGS_SAVE, stack_depth); in bpf_jit_prologue()
596 EMIT4_IMM(0xa70b0000, REG_15, -(STK_OFF + stack_depth)); in bpf_jit_prologue()
644 static void bpf_jit_epilogue(struct bpf_jit *jit, u32 stack_depth) in bpf_jit_epilogue() argument
650 save_restore_regs(jit, REGS_RESTORE, stack_depth); in bpf_jit_epilogue()
776 int i, bool extra_pass, u32 stack_depth) in bpf_jit_insn() argument
[all …]
/linux-6.6.21/lib/ !
Dtest_bpf.c84 int stack_depth; /* for eBPF only, since tests don't call verifier */ member
452 self->stack_depth = 40; in __bpf_fill_stxdw()
7859 .stack_depth = 8,
7879 .stack_depth = 8,
7896 .stack_depth = 0,
7912 .stack_depth = 0,
7928 .stack_depth = 0,
7948 .stack_depth = 8,
7968 .stack_depth = 8,
7985 .stack_depth = 0,
[all …]
/linux-6.6.21/drivers/firewire/ !
Dcore-topology.c177 int i, port_count, child_port_count, phy_id, parent_count, stack_depth; in build_tree() local
184 stack_depth = 0; in build_tree()
206 if (child_port_count > stack_depth) { in build_tree()
282 stack_depth += 1 - child_port_count; in build_tree()
/linux-6.6.21/arch/x86/net/ !
Dbpf_jit_comp.c293 static void emit_prologue(u8 **pprog, u32 stack_depth, bool ebpf_from_cbpf, in emit_prologue() argument
317 if (stack_depth) in emit_prologue()
318 EMIT3_off32(0x48, 0x81, 0xEC, round_up(stack_depth, 8)); in emit_prologue()
471 u32 stack_depth, u8 *ip, in emit_bpf_tail_call_indirect() argument
474 int tcc_off = -4 - round_up(stack_depth, 8); in emit_bpf_tail_call_indirect()
523 if (stack_depth) in emit_bpf_tail_call_indirect()
525 round_up(stack_depth, 8)); in emit_bpf_tail_call_indirect()
546 bool *callee_regs_used, u32 stack_depth, in emit_bpf_tail_call_direct() argument
549 int tcc_off = -4 - round_up(stack_depth, 8); in emit_bpf_tail_call_direct()
575 if (stack_depth) in emit_bpf_tail_call_direct()
[all …]
Dbpf_jit_comp32.c181 #define _STACK_SIZE (stack_depth + SCRATCH_SIZE)
1200 static void emit_prologue(u8 **pprog, u32 stack_depth) in emit_prologue() argument
1245 static void emit_epilogue(u8 **pprog, u32 stack_depth) in emit_epilogue() argument
1670 emit_prologue(&prog, bpf_prog->aux->stack_depth); in do_jit()
2472 emit_epilogue(&prog, bpf_prog->aux->stack_depth); in do_jit()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/bpf/ !
Dverifier.c714 frame_depths[frame] = nfp_prog->subprog[idx].stack_depth; in nfp_bpf_get_stack_usage()
782 nfp_prog->subprog[i].stack_depth = info[i].stack_depth; in nfp_bpf_finalize()
788 nfp_prog->subprog[i].stack_depth += REG_WIDTH; in nfp_bpf_finalize()
791 nfp_prog->subprog[i].stack_depth += BPF_REG_SIZE * 4; in nfp_bpf_finalize()
Dmain.h484 u16 stack_depth; member
Djit.c3264 u32 ret_tgt, stack_depth, offset_br; in bpf_to_bpf_call() local
3267 stack_depth = round_up(nfp_prog->stack_frame_depth, STACK_FRAME_ALIGN); in bpf_to_bpf_call()
3271 if (stack_depth) { in bpf_to_bpf_call()
3272 tmp_reg = ur_load_imm_any(nfp_prog, stack_depth, in bpf_to_bpf_call()
3331 if (stack_depth) { in bpf_to_bpf_call()
3332 tmp_reg = ur_load_imm_any(nfp_prog, stack_depth, in bpf_to_bpf_call()
3649 unsigned int depth = nfp_prog->subprog[meta->subprog_idx].stack_depth; in nfp_start_subprog()
3837 depth = nfp_prog->subprog[0].stack_depth; in nfp_translate()
/linux-6.6.21/include/linux/ !
Dkcsan-checks.h138 int stack_depth; member
Dbpf_verifier.h571 u16 stack_depth; /* max. stack depth used by this function */ member
Dbpf.h1396 u32 stack_depth; member
2322 void bpf_patch_call_args(struct bpf_insn *insn, u32 stack_depth);
/linux-6.6.21/kernel/kcsan/ !
Dcore.c437 reorder_access->stack_depth = get_kcsan_stack_depth(); in set_reorder_access()
1122 if (get_kcsan_stack_depth() <= reorder_access->stack_depth) { in __tsan_func_exit()
1133 reorder_access->stack_depth = INT_MIN; in __tsan_func_exit()
/linux-6.6.21/arch/powerpc/net/ !
Dbpf_jit_comp.c119 cgctx.stack_size = round_up(fp->aux->stack_depth, 16); in bpf_int_jit_compile()
/linux-6.6.21/kernel/bpf/ !
Dcore.c2229 void bpf_patch_call_args(struct bpf_insn *insn, u32 stack_depth) in bpf_patch_call_args() argument
2231 stack_depth = max_t(u32, stack_depth, 1); in bpf_patch_call_args()
2233 insn->imm = interpreters_args[(round_up(stack_depth, 32) / 32) - 1] - in bpf_patch_call_args()
2312 u32 stack_depth = max_t(u32, fp->aux->stack_depth, 1); in bpf_prog_select_func() local
2314 fp->bpf_func = interpreters[(round_up(stack_depth, 32) / 32) - 1]; in bpf_prog_select_func()
Dverifier.c1663 if (env->subprog_info[state->subprogno].stack_depth < size) in grow_stack_state()
1664 env->subprog_info[state->subprogno].stack_depth = size; in grow_stack_state()
5869 depth += round_up(max_t(u32, subprog[idx].stack_depth, 1), 32); in check_max_stack_depth_subprog()
5933 depth -= round_up(max_t(u32, subprog[idx].stack_depth, 1), 32); in check_max_stack_depth_subprog()
5968 return env->subprog_info[subprog].stack_depth; in get_callee_stack_depth()
18522 func[i]->aux->stack_depth = env->subprog_info[i].stack_depth; in jit_subprogs()
19016 prog->aux->stack_depth = MAX_BPF_STACK; in do_misc_fixups()
19475 u16 stack_depth = subprogs[cur_subprog].stack_depth; in optimize_bpf_loop() local
19476 u16 stack_depth_roundup = round_up(stack_depth, 8) - stack_depth; in optimize_bpf_loop()
19489 -(stack_depth + stack_depth_extra), in optimize_bpf_loop()
[all …]
/linux-6.6.21/arch/sparc/net/ !
Dbpf_jit_comp_64.c803 u32 stack_depth; in build_prologue() local
805 stack_depth = prog->aux->stack_depth; in build_prologue()
806 stack_needed += round_up(stack_depth, 16); in build_prologue()
/linux-6.6.21/fs/overlayfs/ !
Dsuper.c386 struct ovl_fs *ofs, int *stack_depth) in ovl_lower_dir() argument
395 *stack_depth = max(*stack_depth, path->mnt->mnt_sb->s_stack_depth); in ovl_lower_dir()
/linux-6.6.21/Documentation/bpf/ !
Ddrgn.rst132 .stack_depth = (u32)8,
/linux-6.6.21/security/ !
DKconfig.hardening213 the /proc file system. In particular, /proc/<pid>/stack_depth
/linux-6.6.21/arch/mips/net/ !
Dbpf_jit_comp64.c587 locals = ALIGN(ctx->program->aux->stack_depth, MIPS_STACK_ALIGNMENT); in build_prologue()
/linux-6.6.21/arch/parisc/net/ !
Dbpf_jit_comp64.c1113 bpf_stack_adjust = ctx->prog->aux->stack_depth; in bpf_jit_build_prologue()
/linux-6.6.21/arch/loongarch/net/ !
Dbpf_jit.c93 bpf_stack_adjust = round_up(ctx->prog->aux->stack_depth, 16); in build_prologue()

12