Skip to content
New issue

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

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

Already on GitHub? # to your account

[tools/oomkill.py](https://github.com/iovisor/bcc/blob/master/tools/oomkill.py) (and associated [tools/oomkill_example.txt](https://github.com/iovisor/bcc/blob/master/tools/oomkill_example.txt)) are a good start. You'd have to add a [bpf_get_task_stack](https://github.com/iovisor/bcc/blob/598aba3f491174c2ff258265795ab75e6a582616/src/cc/export/helpers.h#L816) call and associated changes to oomkill's perf buf output. #5162

Open
nasrin256 opened this issue Nov 28, 2024 · 1 comment

Comments

@nasrin256
Copy link

          [`tools/oomkill.py`](https://github.com/iovisor/bcc/blob/master/tools/oomkill.py) (and associated [`tools/oomkill_example.txt`](https://github.com/iovisor/bcc/blob/master/tools/oomkill_example.txt)) are a good start. You'd have to add a [`bpf_get_task_stack`](https://github.com/iovisor/bcc/blob/598aba3f491174c2ff258265795ab75e6a582616/src/cc/export/helpers.h#L816) call and associated changes to oomkill's perf buf output.

This would be a useful feature to add to oomkill so if you end up doing this please send a PR!

Originally posted by @davemarchevsky in #3654 (comment)

@nasrin256
Copy link
Author

      [`tools/oomkill.py`](https://github.com/iovisor/bcc/blob/master/tools/oomkill.py) (and associated [`tools/oomkill_example.txt`](https://github.com/iovisor/bcc/blob/master/tools/oomkill_example.txt)) are a good start. You'd have to add a [`bpf_get_task_stack`](https://github.com/iovisor/bcc/blob/598aba3f491174c2ff258265795ab75e6a582616/src/cc/export/helpers.h#L816) call and associated changes to oomkill's perf buf output.

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

No branches or pull requests

1 participant