-
Notifications
You must be signed in to change notification settings - Fork 500
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
utils: enable @k as an abbreviated form of @kernel #631
Conversation
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.
And you need to change setup_trigger()
function to handle kernel filters/symbols separately.
ff78151
to
a7a2047
Compare
I'm really sorry for the late response. I might not following you, but the thing
at here, the Lines 981 to 1017 in 2aac509
(ps. I've updated code with 'comparing whole word' ) |
Yes, |
It's not because of this change, but there is a different behavior between
Unlike
|
Yes, because the trigger also works for replay. Maybe it's better to remove |
a7a2047
to
438eab1
Compare
this commit allows to pass '@k' for kernel option as an abbreviated form of '@kernel' created a util function for strstr(buf, '@k') // before $uftrace -K 2 -F sys_openat@kernel --force ./echo-sync // after $uftrace -K 2 -F sys_openat@k --force ./echo-sync Signed-off-by: Daniel T. Lee <[email protected]>
438eab1
to
11e1442
Compare
updated. |
The replay output looks same if
|
I applied @DanielTimLee's update and the result looks good. |
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.
LGTM
this commit allows passing '@k' for kernel option as an abbreviated form of '@kernel'
created a util function for strstr(buf, '@k')
// before
$uftrace -K 2 -F sys_openat@kernel --force ./echo-sync
// after
$uftrace -K 2 -F sys_openat@k --force ./echo-sync
Signed-off-by: Daniel T. Lee [email protected]