DLPX-72430 Estat zil fails to run because of unknown types #50
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The estat zil command fails to load with the unknown type errors as show below.
There is also a warning about CC_USING_FENTRY that can be cleaned up. The zil script is a standalone and sets up it's own bpf include path. This change brings it in line with what estat uses for built in scripts and what the built in scripts like zpl include to access zfsvfs_t type.
I tested that the script loaded on esx and aws vms:
Running on esx(Linux 5.4.0-48-generic x86_64):
$ sudo ./estat.py zil
Tracing enabled... Hit Ctrl-C to end.
....
Running on aws(Linux 5.4.0-1025-aws x86_64)
$ sudo ./estat.py zil
Tracing enabled... Hit Ctrl-C to end.
...