annotate_get_basic_blocks(9)
β¨ NAME β¨
okay so bestie, welcome to annotate_get_basic_blocks(9) from the Kernel API Manual β literally the function for Get basic blocks for given address range. no cap, that's the whole name. π
π SYNOPSIS π
int annotate_get_basic_blocks (struct symbol *sym , s64 src , s64 dst ,
struct list_head *head );
πΈ ARGUMENTS πΈ
symβ symbol to annotate. main character energy. π§srcβ source address. where the journey starts. β¨dstβ destination address. where we're headed. π¦headβ list head to save basic blocks. the collection point, periodt. π
π¦ DESCRIPTION π¦
okay so here's the tea, bestie: this function traverses disasm_lines from src to dst and saves them in a list of annotated_basic_block to head. It uses BFS to find the shortest path between the two. The basic_block_link is to maintain parent links so that it can build a list of blocks from the start. slay. π
π₯ SEE ALSO π₯
- Kernel file
./tools/perf/util/annotate.c annotate_get_insn_location(9)hist_entry__get_data_type(9)
π that's the whole page, bestie β source/version ./tools/perf/util, date October 2026, manual annotate_get_basic_blocks(9). mwah, go annotate those basic blocks. π«Ά
π¦ 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