From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752044AbbCTVo1 (ORCPT ); Fri, 20 Mar 2015 17:44:27 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:36232 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751361AbbCTVoY (ORCPT ); Fri, 20 Mar 2015 17:44:24 -0400 Message-ID: <550C94B5.80301@plumgrid.com> Date: Fri, 20 Mar 2015 14:44:21 -0700 From: Alexei Starovoitov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Steven Rostedt CC: Ingo Molnar , Namhyung Kim , Arnaldo Carvalho de Melo , Jiri Olsa , Masami Hiramatsu , "David S. Miller" , Daniel Borkmann , Peter Zijlstra , linux-api@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 tip 5/9] tracing: allow BPF programs to call bpf_trace_printk() References: <1426816787-5001-1-git-send-email-ast@plumgrid.com> <1426816787-5001-6-git-send-email-ast@plumgrid.com> <20150320172219.45ff7157@gandalf.local.home> In-Reply-To: <20150320172219.45ff7157@gandalf.local.home> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/20/15 2:22 PM, Steven Rostedt wrote: >> +/* limited trace_printk() >> + * only %d %u %x %ld %lu %lx %lld %llu %llx %p conversion specifiers allowed >> + */ > > Ah! Again, don't contaminate the rest of the kernel with net comment > styles! :-) ok :) >> + } else if (fmt[i] == 'p') { >> + mod[fmt_cnt]++; >> + i++; >> + if (!isspace(fmt[i]) && fmt[i] != 0) > > I wonder if we should allow punctuation here too? None alpha-numeric > characters? yes. just checked all of ispunct characters after %p. All should be fine. Thanks!