lkml.org 
[lkml]   [2011]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH -perf/perf/core 2/4] tracing/kprobes: support longer(>128) command
    Date
    Expand command line buffer of kprobe-tracer to 4096 bytes.

    Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
    Reported-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: linux-kernel@vger.kernel.org
    ---

    kernel/trace/trace_kprobe.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c
    index 2088893..c6ed886 100644
    --- a/kernel/trace/trace_kprobe.c
    +++ b/kernel/trace/trace_kprobe.c
    @@ -1129,7 +1129,7 @@ static int command_trace_probe(const char *buf)
    return ret;
    }

    -#define WRITE_BUFSIZE 128
    +#define WRITE_BUFSIZE 4096

    static ssize_t probes_write(struct file *file, const char __user *buffer,
    size_t count, loff_t *ppos)


    \
     
     \ /
      Last update: 2011-02-04 14:01    [W:0.020 / U:74.176 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site