D | libbpf.c | 840 const char *ev_name, const char *fn_name, uint64_t fn_offset) in bpf_attach_kprobe() argument 867 snprintf(event_alias, sizeof(event_alias), "%s_bcc_%d", ev_name, getpid()); in bpf_attach_kprobe() 969 const char *ev_name, const char *binary_path, in bpf_attach_uprobe() argument 995 res = snprintf(event_alias, sizeof(event_alias), "%s_bcc_%d", ev_name, getpid()); in bpf_attach_uprobe() 997 fprintf(stderr, "Event name (%s) is too long for buffer\n", ev_name); in bpf_attach_uprobe() 1039 static int bpf_detach_probe(const char *ev_name, const char *event_type) in bpf_detach_probe() argument 1067 res = snprintf(buf, sizeof(buf), "%ss/%s_bcc_%d", event_type, ev_name, getpid()); in bpf_detach_probe() 1069 fprintf(stderr, "snprintf(%s): %d\n", ev_name, res); in bpf_detach_probe() 1095 res = snprintf(buf, sizeof(buf), "-:%ss/%s_bcc_%d", event_type, ev_name, getpid()); in bpf_detach_probe() 1097 fprintf(stderr, "snprintf(%s): %d\n", ev_name, res); in bpf_detach_probe() [all …]
|