Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we trace all open() calls? #121

Open
qlibp opened this issue Feb 19, 2024 · 3 comments
Open

Can we trace all open() calls? #121

qlibp opened this issue Feb 19, 2024 · 3 comments

Comments

@qlibp
Copy link

qlibp commented Feb 19, 2024

As said in the doc, there's a flag named builtin in Filtering session, but I still can't get it tracing open() calls with the following snippet.

import hunter
hunter.trace(hunter.Q(builtin=True, function="open", action=hunter.CallPrinter))

f = open("test_trace.py", "r")
lines = f.readlines()
print(lines[0])
f.close()
@ionelmc
Copy link
Owner

ionelmc commented May 1, 2024

Well it would appear that particular function doesn't emit any trace events. May I ask what are you trying to trace, or what the goals are?

@fubuki8087
Copy link

Actually I have similar needs. I want to trace the arguments of eval() and exec(). They are also builtin functions. I cannot find call in the trace about these two functions.

@qlibp
Copy link
Author

qlibp commented Jun 27, 2024

would like

Well it would appear that particular function doesn't emit any trace events. May I ask what are you trying to trace, or what the goals are?

would like to trace all accessed files in python rather than using strace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants