Skip to content

Can we trace all open() calls? #121

Open

Description

@qlibp

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()

Activity

  1. ionelmc commented on May 1, 2024

    @ionelmc
    Owner

    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?

  2. fubuki8087 commented on Jun 27, 2024

    @fubuki8087

    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.

  3. qlibp commented on Jun 27, 2024

    @qlibp
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions