|
@@ -3456,11 +3456,23 @@ struct ftrace_glob {
|
|
int type;
|
|
int type;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+/*
|
|
|
|
+ * If symbols in an architecture don't correspond exactly to the user-visible
|
|
|
|
+ * name of what they represent, it is possible to define this function to
|
|
|
|
+ * perform the necessary adjustments.
|
|
|
|
+*/
|
|
|
|
+char * __weak arch_ftrace_match_adjust(char *str, const char *search)
|
|
|
|
+{
|
|
|
|
+ return str;
|
|
|
|
+}
|
|
|
|
+
|
|
static int ftrace_match(char *str, struct ftrace_glob *g)
|
|
static int ftrace_match(char *str, struct ftrace_glob *g)
|
|
{
|
|
{
|
|
int matched = 0;
|
|
int matched = 0;
|
|
int slen;
|
|
int slen;
|
|
|
|
|
|
|
|
+ str = arch_ftrace_match_adjust(str, g->search);
|
|
|
|
+
|
|
switch (g->type) {
|
|
switch (g->type) {
|
|
case MATCH_FULL:
|
|
case MATCH_FULL:
|
|
if (strcmp(str, g->search) == 0)
|
|
if (strcmp(str, g->search) == 0)
|