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 get_kprobe_functions #1750

Merged
merged 1 commit into from
May 11, 2018
Merged

fix get_kprobe_functions #1750

merged 1 commit into from
May 11, 2018

Conversation

yonghong-song
Copy link
Collaborator

Fix issue #1747.

In commit #1647, we excluded all symbols outside [_stext, _etext].
This is incorrect as it excluded module symbols as well.

This patch changed the algorithm to only skip symbols
in init sections [__init_begin, __init_end].

Signed-off-by: Yonghong Song [email protected]

Fix issue #1747.

In commit #1647, we excluded all symbols outside [_stext, _etext].
This is incorrect as it excluded module symbols as well.

This patch changed the algorithm to only skip symbols
in init sections [__init_begin, __init_end].

Signed-off-by: Yonghong Song <[email protected]>
@yonghong-song
Copy link
Collaborator Author

cc @markdrayton Could you double check whether it works for your case or not?

@markdrayton
Copy link
Contributor

Looks good to me. Thanks!

$ sudo funccount nfs_opendir
Tracing 1 functions for "nfs_opendir"... Hit Ctrl-C to end.

@4ast 4ast merged commit bad7a20 into master May 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants