is_breg_access_indirect(9)
okay so bestie, welcome to is_breg_access_indirect(9) from the Kernel API Manual β this is the little helper that does a vibe check on whether breg based access implies type dereference, and honestly it's giving "tiny function, big brain" energy. π
β¨
πΈ NAME πΈ
is_breg_access_indirect β check if breg based access implies type dereference. That's the mission, no cap.
π SYNOPSIS π
bool is_breg_access_indirect (Dwarf_Op *ops , size_t nops );
π«Ά ARGUMENTS π«Ά
opsβ DWARF operations array. That's the ops pile, bestie.nopsβ number of operations inops. Literally how many ops are inops.
π₯ DESCRIPTION π₯
Okay so here's the tea: it returns true if the DWARF expression evaluates to the variable's value, so the memory access on that register needs type dereference. It returns false if the expression evaluates to the variable's address. And p.s. this is called after check_allowed_ops, so like, after that gate check this one swoops in. β¨
π SEE ALSO π
The kernel file is ./tools/perf/util/dwarf-aux.c, and these are all the linked besties in the SEE ALSO squad:
cu_find_realpath(9)cu_get_comp_dir(9)cu_find_lineinfo(9)cu_walk_functions_at(9)die_get_linkage_name(9)die_compare_name(9)die_match_name(9)die_get_call_lineno(9)die_get_type(9)die_get_real_type(9)die_get_pointer_type(9)die_is_signed_type(9)die_is_func_def(9)die_entrypc(9)die_is_func_instance(9)die_get_data_member_location(9)die_get_call_file(9)die_get_decl_file(9)die_find_child(9)die_find_tailfunc(9)die_find_realfunc(9)die_find_top_inlinefunc(9)die_find_inlinefunc(9)die_find_func_rettype(9)die_walk_instances(9)die_walk_lines(9)die_find_variable_at(9)die_find_member(9)die_get_typename_from_type(9)die_get_typename(9)die_get_varname(9)die_get_var_innermost_scope(9)die_get_var_range(9)die_find_variable_by_reg(9)die_find_variable_by_addr(9)die_collect_vars(9)die_collect_global_vars(9)die_get_cfa(9)die_get_scopes(9)die_get_member_type(9)die_deref_ptr_type(9)
π sign-off: source/version./tools/perf/utilΒ· dateOctober 2026Β· pageis_breg_access_indirect(9)β mwah, bye bestie! ππ¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms