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

Fix backend io collector post 5.x kernel upgrade #18

Merged
merged 3 commits into from
Dec 5, 2019

Conversation

prashks
Copy link
Contributor

@prashks prashks commented Dec 5, 2019

Upgrade to linux kernel 5.x breaks the backend IO collector, using estat or stbtrace fails with
Failed to attach BPF program disk_io_start to kprobe blk_start_request

This is a quick fix, verified on latest trunk VM using 5.x kernel.

@prashks prashks requested a review from brad-lewis December 5, 2019 00:28
@prashks
Copy link
Contributor Author

prashks commented Dec 5, 2019

Will rework this to handle both 4.x and 5.x kernels.

bpf/stbtrace/io.st Show resolved Hide resolved
@prashks
Copy link
Contributor Author

prashks commented Dec 5, 2019

Re-worked PR to handle both 4.x and 5.x kernels.

Verified both estat and stbtrace (and hence performance analytics from webUI) works on both 4.x and 5.x based VMs.

@brad-lewis, @sebroy please re-review.

@sebroy sebroy merged commit e86fb2e into delphix:master Dec 5, 2019
prashks added a commit to prashks/performance-diagnostics that referenced this pull request Dec 5, 2019
* Fix backend io collector post 5.x kernel upgrade

* Check for kprobe existence before attaching

* Fix lint 1
sebroy pushed a commit that referenced this pull request Dec 6, 2019
* Fix backend io collector post 5.x kernel upgrade

* Check for kprobe existence before attaching

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

Successfully merging this pull request may close these issues.

3 participants