Lines Matching refs:btp
53 struct bpf_raw_event_map *btp, *ret = NULL; in bpf_get_raw_tracepoint_module() local
60 btp = &btm->module->bpf_raw_events[i]; in bpf_get_raw_tracepoint_module()
61 if (!strcmp(btp->tp->name, name)) { in bpf_get_raw_tracepoint_module()
63 ret = btp; in bpf_get_raw_tracepoint_module()
2244 struct bpf_raw_event_map *btp = __start__bpf_raw_tp; in bpf_get_raw_tracepoint() local
2246 for (; btp < __stop__bpf_raw_tp; btp++) { in bpf_get_raw_tracepoint()
2247 if (!strcmp(btp->tp->name, name)) in bpf_get_raw_tracepoint()
2248 return btp; in bpf_get_raw_tracepoint()
2254 void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp) in bpf_put_raw_tracepoint() argument
2259 mod = __module_address((unsigned long)btp); in bpf_put_raw_tracepoint()
2324 static int __bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *prog) in __bpf_probe_register() argument
2326 struct tracepoint *tp = btp->tp; in __bpf_probe_register()
2332 if (prog->aux->max_ctx_offset > btp->num_args * sizeof(u64)) in __bpf_probe_register()
2335 if (prog->aux->max_tp_access > btp->writable_size) in __bpf_probe_register()
2338 return tracepoint_probe_register_may_exist(tp, (void *)btp->bpf_func, in __bpf_probe_register()
2342 int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *prog) in bpf_probe_register() argument
2344 return __bpf_probe_register(btp, prog); in bpf_probe_register()
2347 int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *prog) in bpf_probe_unregister() argument
2349 return tracepoint_probe_unregister(btp->tp, (void *)btp->bpf_func, prog); in bpf_probe_unregister()