[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <lsq.1539530741.426141349@decadent.org.uk>
Date: Sun, 14 Oct 2018 16:25:41 +0100
From: Ben Hutchings <ben@...adent.org.uk>
To: linux-kernel@...r.kernel.org, stable@...r.kernel.org
CC: akpm@...ux-foundation.org,
"Srikar Dronamraju" <srikar@...ux.vnet.ibm.com>,
"Dmitry Safonov" <dsafonov@...tuozzo.com>,
"Oleg Nesterov" <oleg@...hat.com>,
"Steven Rostedt" <rostedt@...dmis.org>
Subject: [PATCH 3.16 230/366] tracing/uprobe: Drop isdigit() check in
create_trace_uprobe
3.16.60-rc1 review patch. If anyone has any objections, please let me know.
------------------
From: Dmitry Safonov <dsafonov@...tuozzo.com>
commit 5ba8a4a96f6eaa6af88e24c7794f142217aa3b6f upstream.
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@...ux.vnet.ibm.com>
Acked-by: Oleg Nesterov <oleg@...hat.com>
Signed-off-by: Dmitry Safonov <dsafonov@...tuozzo.com>
Signed-off-by: Steven Rostedt <rostedt@...dmis.org>
Signed-off-by: Ben Hutchings <ben@...adent.org.uk>
---
kernel/trace/trace_uprobe.c | 4 ----
1 file changed, 4 deletions(-)
--- a/kernel/trace/trace_uprobe.c
+++ b/kernel/trace/trace_uprobe.c
@@ -430,10 +430,6 @@ static int create_trace_uprobe(int argc,
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;
Powered by blists - more mailing lists