Searched refs:stackid (Results 1 – 2 of 2) sorted by relevance
| /linux/kernel/bpf/ |
| H A D | stackmap.c | 513 struct stackid { struct 523 static int stackid_init(struct stackid *stackid, struct bpf_map *map, in stackid_init() argument 535 stackid->nr = min_t(u32, trace_nr - skip, max_depth - skip); in stackid_init() 536 stackid->len = stackid->nr * sizeof(u64); in stackid_init() 537 stackid->ips = trace->ip + skip; in stackid_init() 538 stackid->hash = jhash2((const u32 *)stackid->ips, stackid->len / sizeof(u32), 0); in stackid_init() 539 stackid->id = stackid->hash & (smap->n_buckets - 1); in stackid_init() 540 stackid->bucket = READ_ONCE(smap->buckets[stackid->id]); in stackid_init() 541 stackid->hash_matches = stackid->bucket && stackid->bucket->hash == stackid->hash; in stackid_init() 545 static int stackid_fastpath(struct stackid *stackid, struct bpf_map *map, in stackid_fastpath() argument [all …]
|
| /linux/samples/bpf/ |
| H A D | trace_event_user.c | 104 __u32 stackid = 0, next_id; in print_stacks() local 121 while (bpf_map_get_next_key(stack_map, &stackid, &next_id) == 0) { in print_stacks() 123 stackid = next_id; in print_stacks()
|