-
Notifications
You must be signed in to change notification settings - Fork 108
Aer support #229
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
Aer support #229
Conversation
|
After applying it on the top of current upstream, I'm getting some errors: ras-events.c: In function ‘parse_ras_data’: Please rebase and fix. |
c93bd5d to
d1bd710
Compare
|
Hi, Sorry about this, it should work now |
|
Still didn't build here: ras-aer-handler.c: In function ‘ras_aer_handler_init’: |
The long's size is hardcoded to 64 bits. It prevents the event parsing to work on 32-bits architecture. Use the KBUFFER_LSIZE_SAME_AS_HOST to set the long's size so libtraceevent will automatically select the relevant size. Also use KBUFFER_ENDIAN_SAME_AS_HOST to set the endianness for consistency. Signed-off-by: Bastien Curutchet <[email protected]>
tep_set_file_bigendian() is never called so for big-endian hosts, the libtraceevents thinks it's handling a little-endian file on a big-endian architecture and swap the bytes when accessing 16-bits or 32-bits words. It leads to tep_print_event failing because the event ID isn't recognized. Call tep_set_file_bigendian() before tep_print_event() to make the libtraceevent aware of the file's endianness. Use the ENDIAN macro to state the endianness as this macro is not used elsewhere. Signed-off-by: Bastien Curutchet <[email protected]>
Triggers aren't supported on AER events. Add support for triggers on AER events. It relies on the AER_CE_TRIGGER and AER_UE_TRIGGER environment variables Signed-off-by: Bastien Curutchet <[email protected]>
d1bd710 to
02a7acf
Compare
|
Should be OK now, I had only tested with / without aer, not with --enable-all sorry |
|
merged, thanks! |
Hi,
Here's a PR to add support for the 'trigger feature' on AER events.
My use case is on a powperpc P2020 which is a 32-bit big-endian platform. So the first two commits fix some endianness-related bugs and the last commit actually adds the support for AER events
Best regards,
Bastien