Skip to content

Conversation

@iago-lito
Copy link

I had to tweak this today to get offcputime working.. does it make sense?

I had to tweak this today to get `offcputime` working.. does it make sense?
@iago-lito
Copy link
Author

Possibly related: bpftrace/bpftrace#1338

blacklist = set([])

avail_filter_file = "%s/tracing/available_filter_functions" % DEBUGFS
avail_filter_file = "%s/available_filter_functions" % TRACEFS
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use os.stat() to check the existence of tracefs/debugfs instead.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A test with os.path.exists is already done on line 50 up there. I figured that test covered the check logic and that this line (729) was a wrong application of it?
In any case, I for sure don't understand the thing at play here. Where is available_filter_functions supposed to live? Does it depend on the distro? What are tracefs/debugfs and how are they related?

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

Successfully merging this pull request may close these issues.

2 participants