Git Product home page Git Product logo

Comments (2)

dtrace4linux avatar dtrace4linux commented on May 23, 2024

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.

Vicente-Cheng avatar Vicente-Cheng commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.