Home
last modified time | relevance | path

Searched refs:ev_name (Results 1 – 6 of 6) sorted by relevance

/external/bcc/src/python/bcc/
D__init__.py627 ev_name = b"p_" + event.replace(b"+", b"_").replace(b".", b"_")
628 fd = lib.bpf_attach_kprobe(fn.fd, 0, ev_name, event, event_off)
632 self._add_kprobe_fd(ev_name, fd)
651 ev_name = b"r_" + event.replace(b"+", b"_").replace(b".", b"_")
652 fd = lib.bpf_attach_kprobe(fn.fd, 1, ev_name, event, 0)
656 self._add_kprobe_fd(ev_name, fd)
659 def detach_kprobe_event(self, ev_name): argument
660 if ev_name not in self.kprobe_fds:
661 raise Exception("Kprobe %s is not attached" % ev_name)
662 res = lib.bpf_close_perf_event_fd(self.kprobe_fds[ev_name])
[all …]
/external/bcc/src/lua/bcc/
Dbpf.lua195 local ev_name = string.format("%s_%s_0x%p", ptype, path:gsub("[^%a%d]", "_"), addr)
198 local res = libbcc.bpf_attach_uprobe(fn.fd, retprobe, ev_name, path, addr,
202 self:probe_store("uprobe", ev_name, res)
213 local ev_name = string.format("%s_%s", ptype, event:gsub("[%+%.]", "_"))
217 local res = libbcc.bpf_attach_kprobe(fn.fd, retprobe, ev_name, event, offset)
220 self:probe_store("kprobe", ev_name, res)
/external/bcc/src/cc/includes/
Dlibbpf.h74 const char *ev_name, const char *fn_name, uint64_t fn_offset);
75 int bpf_detach_kprobe(const char *ev_name);
78 const char *ev_name, const char *binary_path,
80 int bpf_detach_uprobe(const char *ev_name);
/external/bcc/src/cc/
Dlibbpf.h74 const char *ev_name, const char *fn_name, uint64_t fn_offset);
75 int bpf_detach_kprobe(const char *ev_name);
78 const char *ev_name, const char *binary_path,
80 int bpf_detach_uprobe(const char *ev_name);
Dlibbpf.c840 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 …]
/external/flatbuffers/src/
Didl_parser.cpp1941 EnumVal *CreateEnumerator(const std::string &ev_name) { in CreateEnumerator()
1945 temp = new EnumVal(ev_name, first ? 0 : enum_def.vals.vec.back()->value); in CreateEnumerator()
1949 EnumVal *CreateEnumerator(const std::string &ev_name, int64_t val) { in CreateEnumerator()
1952 temp = new EnumVal(ev_name, val); in CreateEnumerator()