-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
lib/vfscore: Improve and fix trace point format #899
lib/vfscore: Improve and fix trace point format #899
Conversation
✅ Checkpatch passed Beep boop! I ran Unikraft's
|
@mschlumpp, you mention Also, see the |
The interpolation happens in the post-processing phase (Python). Therefore, we are limited in the format strings what Python supports. |
f75a5ba
to
5d285fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Reviewed-by: Eduard-Florin Mihailescu mihailescu.eduard@gmail.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved-by: Razvan Deaconescu razvand@unikraft.io
There were multiple issues with the format string used in the trace points. For example, python, which is used to interpret the resulting trace files, does not support the `%p` specifier, and we instead have to use `%x`. Also, we can make use of the alternate format (e.g. `%#x`) to ensure the hexadecimal numbers have a `0x` prefixed. Some format strings also did not use the correct number of arguments. Signed-off-by: Marco Schlumpp <marco@unikraft.io>
5d285fd
to
b178c16
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-by: Razvan Deaconescu razvand@unikraft.io
Approved-by: Razvan Deaconescu razvand@unikraft.io
Prerequisite checklist
checkpatch.pl
on your commit series before opening this PR;Base target
Additional configuration
CONFIG_LIBVFSCORE=y
Description of changes
There were multiple issues with the format string used in the trace points. For example python, which is used to interpret the resulting trace files, doesn not support the
%p
specifier and we instead have to use%x
. Also we can make use of the alternate format (e.g.%#x
) to ensure the hexadecimal numbers have a0x
prefixed. Some format strings also did not use the correct amount of arguments.