Comments (2)
These should work, but whether it does work may depend on either the CTF record defining what types the args[] array is, or, you defining the appropriate "struct" to mimic what the driver does.
I normally start by printing the values as pure hex numbers, see if they are plausible pointers, and try one step at a time. If you are trying to trace a loadable module, chances are very high that the kernel CTF file does not have your function prototype available, so it doesnt know the types of the parameters. You may need explicit type casts using arg0, arg1, etc.
from linux.
Dear:
I use arg0, arg1, ...etc with explicit type. (For this goal, I modify the driver/ctf_struct.c for supporting my data struct).
Now, it can work when I use arg0 with explicit type. (I solve the problem in Issue#30 by your suggestion.)
I try to realize how the CTF file work. I think the reason that I can not use args[0] directly is that CTF file does not have my function prototype.
But there is one thing made me confused.
If we can use the arg0, arg1, ...etc with the explicit type, why the CTF file does not have our function prototype?
Thanks!!!
from linux.
Related Issues (20)
- 4.4.8-300.fc23.x86_64, gcc-5.3.1 compile error HOT 3
- Fedora 18 VM freeze on executing dtrace HOT 2
- /home/aschipor/Desktop/linux-master/build-3.13.0-37-generic/driver/ctf_hash.c:1:1: error: expected identifier or '(' before '.' token ../common/ctf/ctf_hash.c ^ HOT 1
- Build errors on Linux 4.7 HOT 2
- Question: Why aren't there any release tarballs here? HOT 2
- build error on SUSE Linux Enterprise Server HOT 2
- Dtrace is not collecting any data for NodeJS HOT 8
- make all failing HOT 6
- ..
- no build support for RPM or ARCH based distro's -_-
- implicit declaration of function copy_from_user, redefinition of 'struct in6_addr' HOT 3
- make all fails on Ubuntu 17.10 - field 'pr_altstack' has incomplete type HOT 4
- KP on Ubuntu 14.04 with std 3.13.0-145-generic
- Make load crashes RHEL 6.9 kernel
- Ubuntu building problems
- When I install dtrace on CentOS7,I can't pass it.
- unable to load on ubuntu 16.04(amazon image)
- make all falling on centos HOT 1
- 🥰
- make all failing on Kernel v5.9 because `proc_create` kernel api is changed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linux.