Home
last modified time | relevance | path

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

/external/v8/tools/
Dturbolizer-perf.py37 ev_name = param_dict['ev_name']
38 if ev_name not in json_obj['eventCounts']:
39 json_obj['eventCounts'][ev_name] = {}
40 if addr not in json_obj['eventCounts'][ev_name]:
41 json_obj['eventCounts'][ev_name][addr] = 0
42 json_obj['eventCounts'][ev_name][addr] += 1
/external/bcc/src/python/bcc/
D__init__.py602 ev_name = b"p_" + event.replace(b"+", b"_").replace(b".", b"_")
603 fd = lib.bpf_attach_kprobe(fn.fd, 0, ev_name, event, event_off)
606 self._add_kprobe_fd(ev_name, fd)
625 ev_name = b"r_" + event.replace(b"+", b"_").replace(b".", b"_")
626 fd = lib.bpf_attach_kprobe(fn.fd, 1, ev_name, event, 0)
629 self._add_kprobe_fd(ev_name, fd)
632 def detach_kprobe_event(self, ev_name): argument
633 if ev_name not in self.kprobe_fds:
635 res = lib.bpf_close_perf_event_fd(self.kprobe_fds[ev_name])
638 res = lib.bpf_detach_kprobe(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("[%+%.]", "_"))
216 local res = libbcc.bpf_attach_kprobe(fn.fd, retprobe, ev_name, event)
219 self:probe_store("kprobe", ev_name, res)
/external/v8/tools/turbolizer/src/
Ddisassembly-view.ts169 for (let ev_name in view.addr_event_counts) { variable
170 let keys = Object.keys(view.addr_event_counts[ev_name]);
171 let values = keys.map(key => view.addr_event_counts[ev_name][key]);
172 view.total_event_counts[ev_name] = values.reduce((a, b) => a + b);
173 view.max_event_counts[ev_name] = values.reduce((a, b) => Math.max(a, b));
/external/bcc/src/cc/
Dlibbpf.c828 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 …]
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/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);