Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/pwru: Match entire string for --filter-func
Currently --filter-func=kfree_skb matches all functions whose name contains the "kfree_skb" string, including __kfree_skb(), kfree_skbmem() etc. To match kfree_skb() only, one has to do something like --filter-func="^kfree_skb$". This is counterintuitive. Match the entire string instead in GetFuncs(), so that --filter-func=kfree_skb only matches kfree_skb(). To match all function names containing "kfree_skb", one should do something like --filter-func=".*kfree_skb.*" instead. Signed-off-by: Peilin Ye <peilin.ye@bytedance.com>
- Loading branch information
1 parent
ec75700
commit ea2dca0
Showing
3 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters