diff options
Diffstat (limited to 'kernel/trace/trace_uprobe.c')
-rw-r--r-- | kernel/trace/trace_uprobe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c index 7dc1c8abecd6..74865465e0b7 100644 --- a/kernel/trace/trace_uprobe.c +++ b/kernel/trace/trace_uprobe.c | |||
@@ -196,7 +196,7 @@ DEFINE_FETCH_file_offset(string) | |||
196 | DEFINE_FETCH_file_offset(string_size) | 196 | DEFINE_FETCH_file_offset(string_size) |
197 | 197 | ||
198 | /* Fetch type information table */ | 198 | /* Fetch type information table */ |
199 | const struct fetch_type uprobes_fetch_type_table[] = { | 199 | static const struct fetch_type uprobes_fetch_type_table[] = { |
200 | /* Special types */ | 200 | /* Special types */ |
201 | [FETCH_TYPE_STRING] = __ASSIGN_FETCH_TYPE("string", string, string, | 201 | [FETCH_TYPE_STRING] = __ASSIGN_FETCH_TYPE("string", string, string, |
202 | sizeof(u32), 1, "__data_loc char[]"), | 202 | sizeof(u32), 1, "__data_loc char[]"), |
@@ -535,7 +535,8 @@ static int create_trace_uprobe(int argc, char **argv) | |||
535 | 535 | ||
536 | /* Parse fetch argument */ | 536 | /* Parse fetch argument */ |
537 | ret = traceprobe_parse_probe_arg(arg, &tu->tp.size, parg, | 537 | ret = traceprobe_parse_probe_arg(arg, &tu->tp.size, parg, |
538 | is_return, false); | 538 | is_return, false, |
539 | uprobes_fetch_type_table); | ||
539 | if (ret) { | 540 | if (ret) { |
540 | pr_info("Parse error at argument[%d]. (%d)\n", i, ret); | 541 | pr_info("Parse error at argument[%d]. (%d)\n", i, ret); |
541 | goto error; | 542 | goto error; |