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

examples: Use pid as filter instead of tid and make some improvements for stacksnoop.py #3934

Merged
merged 2 commits into from
Apr 25, 2022

Conversation

xingfeng2510
Copy link
Contributor

@xingfeng2510 xingfeng2510 commented Apr 6, 2022

For examples/stacksnoop.py:

  • Use pid as filter instead of tid, keep consistent with -p option of other tools.
  • Make some improvements (remove ctypes & 'b' prefixes).

@xingfeng2510
Copy link
Contributor Author

ci failed due to following error (in mdflush.py, bio->bi_disk not found).

error: no member named 'bi_disk' in 'struct bio'
     struct gendisk *bi_disk = bio->bi_disk;
                              ~~~  ^
1 error generated.
Traceback (most recent call last):
   File "/bcc/tools/mdflush.py", line 54, in <module>

I guess CI runtime env (such as kernel version) had changed in recent days, and I will make another pull request to fix it.

@xingfeng2510
Copy link
Contributor Author

CI build failure has been fixed in #3936.

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