summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorDmitry Safonov <dsafonov@virtuozzo.com>2016-08-25 18:21:09 +0300
committerSteven Rostedt <rostedt@goodmis.org>2016-09-01 11:18:09 -0400
commit5ba8a4a96f6eaa6af88e24c7794f142217aa3b6f (patch)
tree030711fc98ed05e5be08a344a1965a28cc6e546b /kernel
parent3eab887a55424fc2c27553b7bfe32330df83f7b8 (diff)
downloadlinux-5ba8a4a96f6eaa6af88e24c7794f142217aa3b6f.tar.gz
linux-5ba8a4a96f6eaa6af88e24c7794f142217aa3b6f.tar.bz2
linux-5ba8a4a96f6eaa6af88e24c7794f142217aa3b6f.zip
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_uprobe.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c
index c53485441c88..a74f2d9ff379 100644
--- a/kernel/trace/trace_uprobe.c
+++ b/kernel/trace/trace_uprobe.c
@@ -427,10 +427,6 @@ static int create_trace_uprobe(int argc, char **argv)
pr_info("Probe point is not specified.\n");
return -EINVAL;
}
- if (isdigit(argv[1][0])) {
- pr_info("probe point must be have a filename.\n");
- return -EINVAL;
- }
arg = strchr(argv[1], ':');
if (!arg) {
ret = -EINVAL;