Re: [PATCH net-next] bpf: add support for %s specifier to bpf_trace_printk()

From: Alexei Starovoitov
Date: Thu Aug 27 2015 - 21:58:40 EST

On 8/27/15 4:43 PM, Steven Rostedt wrote:
On Thu, 27 Aug 2015 16:20:39 -0700 (PDT)
David Miller <davem@xxxxxxxxxxxxx> wrote:

From: Alexei Starovoitov <ast@xxxxxxxxxxxx>
Date: Thu, 27 Aug 2015 16:06:14 -0700

Fair or you still think it should be per byte copy?

I'm terribly surprised we don't have an equivalent of strncpy()
for unsafe kernel pointers.

You probably won't be the last person to want this, and it's silly
to optimize it in one place and then wait for cut&paste into the
next guy.

If it doesn't exist. Perhaps its time to create it.

all makes sense. Working on generalizing FETCH_FUNC_NAME
from trace_kprobe.c. Seems to fit quite well.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at