Home
last modified time | relevance | path

Searched refs:ksym (Results 1 – 25 of 45) sorted by relevance

12

/external/bcc/libbpf-tools/
Dklockstat.c259 const struct ksym *ksym; in caller_is_traced() local
263 ksym = ksyms__map_addr(ksyms, caller_pc); in caller_is_traced()
264 if (!ksym) in caller_is_traced()
266 return strncmp(env.caller, ksym->name, strlen(env.caller)) == 0; in caller_is_traced()
322 const struct ksym *ksym = ksyms__map_addr(ksyms, pc); in symname() local
324 if (!ksym) in symname()
326 snprintf(buf, n, "%s+0x%lx", ksym->name, pc - ksym->addr); in symname()
465 const struct ksym *ksym = ksyms__get_symbol(ksyms, lock_name); in get_lock_addr() local
467 return ksym ? (void*)ksym->addr : NULL; in get_lock_addr()
Dbiostacks.c103 const struct ksym *ksym; in print_map() local
120 ksym = ksyms__map_addr(ksyms, next_key.kern_stack[i]); in print_map()
121 printf("%s\n", ksym ? ksym->name : "Unknown"); in print_map()
Ddrsnoop.c151 const struct ksym *ksym; in main() local
178 ksym = ksyms__get_symbol(ksyms, "vm_zone_stat"); in main()
179 if (!ksym) { in main()
183 obj->rodata->vm_zone_stat_kaddr = ksym->addr; in main()
Dtrace_helpers.h9 struct ksym { struct
18 const struct ksym *ksyms__map_addr(const struct ksyms *ksyms, argument
20 const struct ksym *ksyms__get_symbol(const struct ksyms *ksyms,
Doffcputime.c194 const struct ksym *ksym; in print_map() local
223 ksym = ksyms__map_addr(ksyms, ip[i]); in print_map()
224 printf(" %s\n", ksym ? ksym->name : "Unknown"); in print_map()
Dtrace_helpers.c39 struct ksym *syms;
50 struct ksym *ksym; in ksyms__add_symbol() local
76 ksym = &ksyms->syms[ksyms->syms_sz]; in ksyms__add_symbol()
78 ksym->name = (void *)(unsigned long)ksyms->strs_sz; in ksyms__add_symbol()
79 ksym->addr = addr; in ksyms__add_symbol()
90 const struct ksym *s1 = p1, *s2 = p2; in ksym_cmp()
149 const struct ksym *ksyms__map_addr(const struct ksyms *ksyms, in ksyms__map_addr()
171 const struct ksym *ksyms__get_symbol(const struct ksyms *ksyms, in ksyms__get_symbol()
/external/bcc/tools/
Dcriticalstat.py279 s = b.ksym(addr, show_offset=True)
295 …print("Section start: {} -> {}".format(b.ksym(stext + event.addrs[0]), b.ksym(stext + event.addrs[…
296 …print("Section end: {} -> {}".format(b.ksym(stext + event.addrs[2]), b.ksym(stext + event.addrs[…
Dcachetop.py92 if re.match(b'mark_page_accessed', bpf.ksym(k)) is not None:
95 if re.match(b'mark_buffer_dirty', bpf.ksym(k)) is not None:
98 if re.match(b'add_to_page_cache_lru', bpf.ksym(k)) is not None:
101 if re.match(b'account_page_dirtied', bpf.ksym(k)) is not None:
Dstacksnoop.lua53 local ksym = BPF.SymbolCache()
90 local sym, offset = ksym:resolve(addr)
Doffwaketime.py365 line.extend([b.ksym(addr).decode('utf-8', 'replace')
372 line.extend([b.ksym(addr).decode('utf-8', 'replace')
399 print(" %s" % b.ksym(addr))
409 print(" %s" % b.ksym(addr))
Dtcpdrop.py181 sym = b.ksym(addr, show_offset=True)
193 sym = b.ksym(addr, show_offset=True)
Dwakeuptime.py251 [b.ksym(addr)
259 printb(b" %-16x %s" % (addr, b.ksym(addr)))
Dklockstat.py425 caller = b.ksym(stack[1], show_offset=True)
435 print("%40s" % b.ksym(addr, show_offset=True))
Dfuncslower.py323 [b.ksym(addr) for addr in reversed(kernel_stack)]
328 print(" %s" % b.ksym(addr))
Dstackcount.py295 print("%s" % self.probe.bpf.ksym(addr, show_offset=True))
297 print("%s" % self.probe.bpf.ksym(addr))
358 [b.ksym(addr).decode('utf-8', 'replace') for addr in reversed(kernel_stack)]
Dvfscount.py61 print("%-16x %-26s %8d" % (k.ip, b.ksym(k.ip), v.value))
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtrace_helpers.c18 static struct ksym syms[MAX_SYMS];
23 return ((struct ksym *)p1)->addr - ((struct ksym *)p2)->addr; in ksym_cmp()
48 qsort(syms, sym_cnt, sizeof(struct ksym), ksym_cmp); in load_kallsyms()
52 struct ksym *ksym_search(long key) in ksym_search()
Dtrace_helpers.h7 struct ksym { struct
13 struct ksym *ksym_search(long key); argument
/external/bcc/tools/old/
Doffwaketime.py244 line = line + b.ksym(k.tret[i])
256 line = line + b.ksym(k.wret[i])
269 b.ksym(k.wret[i])))
279 b.ksym(k.tret[i])))
Dsoftirqs.py190 dist.print_log2_hist(label, "softirq", section_print_fn=b.ksym)
195 print("%-26s %11d %11d" % (b.ksym(k.ip), k.cpu, v.value / factor))
199 print("%-26s %11d" % (b.ksym(k.ip), v.value / factor))
Doffcputime.py194 line = line + b.ksym(k.ret[i])
204 b.ksym(k.ret[i])))
Dwakeuptime.py208 line = line + b.ksym(k.ret[i])
219 b.ksym(k.ret[i])))
Dprofile.py293 return b.ksym(addr) + "_[k]"
295 return b.ksym(addr)
Dstacksnoop.py122 ip = b.ksym(int(addr, 16), show_offset=offset)
/external/bcc/examples/lua/
Doffcputime.lua85 local ksym = BPF.SymbolCache()
113 print(" %-16p %s" % {addr, ksym:resolve(addr)})

12