gui774ume / etrace Goto Github PK
View Code? Open in Web Editor NEWETrace is a syscall tracing utility powered by eBPF
License: Apache License 2.0
ETrace is a syscall tracing utility powered by eBPF
License: Apache License 2.0
hi, i try to use 'kprobe/kretprobe' hook sys function: 'sys_execve'.
i want to cache the param: const __user char *const __user *argv
but in kprobe, i can't get argv value , it is empty.
So, why? please tell me, thanks!
this is my code:
when i run : ls or clear or cat ...
cat trace_pipe, it appear :
git-58259 [000] d... 226270.286553: bpf_trace_printk: enter save args info buffer agrp, agrp value
empty!!!
i's confused, may be i use wrong method. but i don't know correct ways. i hope you can help me!!! thanks!!!
Syscall parameters are fetched on syscall return. The rationale was that I wanted to avoid page faults (and thus the -14 error on return of the bpf_probe_read*
helpers). Unfortunately some parameters (like the execve
arguments) need to be fetched on entry, since the values will no longer exist once the new binary is executed.
I see 2 options to resolve the page fault problem:
execve
syscall call path (I'm thinking something like security_bprm_committed_creds
) to read the parameters.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.