Home
last modified time | relevance | path

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

/external/bcc/examples/lua/
Duprobe-tailkt.lua43 function (ptregs)
46 if ptregs.parm5 ~= writeable then return end
49 ffi.copy(line, ffi.cast('char *', ptregs.parm2))
52 if ptregs.parm3 ~= klen then return false end
55 print('%s write:%d\n', line, ptregs.parm5)
Dkprobe-latency.lua30 local trace_start = bpf.kprobe('myprobe:blk_start_request', function (ptregs)
31 map[ptregs.parm1] = time()
33 local trace_end = bpf.kprobe('myprobe2:blk_account_io_completion', function (ptregs)
40 local delta = time() - map[ptregs.parm1]
Duprobe-readline.lua24 local probe = bpf.uprobe('/bin/bash:readline', function (ptregs)
26 ffi.copy(line, ffi.cast('char *', ptregs.ax)) -- Cast `ax` to string pointer and copy to buffer
Duprobe-readline-perf.lua27 local probe = bpf.uprobe('/bin/bash:readline', function (ptregs)
30 …ffi.copy(sample.str, ffi.cast('char *', ptregs.ax)) -- Cast `ax` to string pointer and copy to buf…
Dkprobe-write.lua26 local probe = bpf.kprobe('myprobe:sys_write', function (ptregs)
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.cc97 explicit ProbeChecker(Expr *arg, const set<tuple<Decl *, int>> &ptregs, in ProbeChecker() argument
99 : needs_probe_(false), is_transitive_(false), ptregs_(ptregs), in ProbeChecker()
107 explicit ProbeChecker(Expr *arg, const set<tuple<Decl *, int>> &ptregs, in ProbeChecker() argument
109 : ProbeChecker(arg, ptregs, is_transitive, false) {} in ProbeChecker()
209 explicit ProbeSetter(set<tuple<Decl *, int>> *ptregs, int nb_addrof) in ProbeSetter() argument
210 : ptregs_(ptregs), nb_derefs_(-nb_addrof) {} in ProbeSetter()
216 explicit ProbeSetter(set<tuple<Decl *, int>> *ptregs) in ProbeSetter() argument
217 : ProbeSetter(ptregs, 0) {} in ProbeSetter()
/external/bcc/src/lua/
DREADME.md89 bpf.uprobe('/bin/bash:readline' function (ptregs)