D | libbpf.c | 828 const char *ev_name, const char *fn_name, uint64_t fn_offset) in bpf_attach_kprobe() argument 848 snprintf(event_alias, sizeof(event_alias), "%s_bcc_%d", ev_name, getpid()); in bpf_attach_kprobe() 944 const char *ev_name, const char *binary_path, in bpf_attach_uprobe() argument 964 res = snprintf(event_alias, sizeof(event_alias), "%s_bcc_%d", ev_name, getpid()); in bpf_attach_uprobe() 966 fprintf(stderr, "Event name (%s) is too long for buffer\n", ev_name); in bpf_attach_uprobe() 1004 static int bpf_detach_probe(const char *ev_name, const char *event_type) in bpf_detach_probe() argument 1026 res = snprintf(buf, sizeof(buf), "%ss/%s_bcc_%d", event_type, ev_name, getpid()); in bpf_detach_probe() 1028 fprintf(stderr, "snprintf(%s): %d\n", ev_name, res); in bpf_detach_probe() 1051 res = snprintf(buf, sizeof(buf), "-:%ss/%s_bcc_%d", event_type, ev_name, getpid()); in bpf_detach_probe() 1053 fprintf(stderr, "snprintf(%s): %d\n", ev_name, res); in bpf_detach_probe() [all …]
|