Skip to content

Commit 5ba8a4a

Browse files
0x7f454c46rostedt
authored andcommitted
tracing/uprobe: Drop isdigit() check in create_trace_uprobe
It's useless. Before: [tracing]# echo 'p:test /a:0x0' >> uprobe_events [tracing]# echo 'p:test a:0x0' >> uprobe_events -bash: echo: write error: No such file or directory [tracing]# echo 'p:test 1:0x0' >> uprobe_events -bash: echo: write error: Invalid argument After: [tracing]# echo 'p:test 1:0x0' >> uprobe_events -bash: echo: write error: No such file or directory Link: http://lkml.kernel.org/r/20160825152110.25663-3-dsafonov@virtuozzo.com Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Acked-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent 3eab887 commit 5ba8a4a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

kernel/trace/trace_uprobe.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,6 @@ static int create_trace_uprobe(int argc, char **argv)
427427
pr_info("Probe point is not specified.\n");
428428
return -EINVAL;
429429
}
430-
if (isdigit(argv[1][0])) {
431-
pr_info("probe point must be have a filename.\n");
432-
return -EINVAL;
433-
}
434430
arg = strchr(argv[1], ':');
435431
if (!arg) {
436432
ret = -EINVAL;

0 commit comments

Comments
 (0)