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

Support patternized module name for dynamic patch #1211

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions libmcount/dynamic.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,13 @@ struct patt_list {
bool positive;
};

struct module_patt_list {
struct list_head list;
struct list_head func_patt;
struct uftrace_pattern module_patt;
char *module;
};

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this should be a separate commit. Please merge this into where it's actually used.

static bool match_pattern_list(struct list_head *patterns,
struct uftrace_mmap *map,
char *sym_name)
Expand Down