From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755304AbbCXQe0 (ORCPT ); Tue, 24 Mar 2015 12:34:26 -0400 Received: from terminus.zytor.com ([198.137.202.10]:56918 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753368AbbCXQeW (ORCPT ); Tue, 24 Mar 2015 12:34:22 -0400 Date: Tue, 24 Mar 2015 09:33:48 -0700 From: "tip-bot for Steven Rostedt (Red Hat)" Message-ID: Cc: tglx@linutronix.de, rostedt@goodmis.org, akpm@linux-foundation.org, jolsa@redhat.com, shawn.bohrer@gmail.com, namhyung@kernel.org, hpa@zytor.com, acme@redhat.com, linux-kernel@vger.kernel.org, mingo@kernel.org Reply-To: jolsa@redhat.com, rostedt@goodmis.org, akpm@linux-foundation.org, tglx@linutronix.de, acme@redhat.com, linux-kernel@vger.kernel.org, hpa@zytor.com, shawn.bohrer@gmail.com, namhyung@kernel.org, mingo@kernel.org In-Reply-To: <20150324135922.844361717@goodmis.org> References: <20150324135922.844361717@goodmis.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] tools lib traceevent: Handle %z in bprint format Git-Commit-ID: 55426296963c678650e26fc5e61ea75a5598ef5a X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 55426296963c678650e26fc5e61ea75a5598ef5a Gitweb: http://git.kernel.org/tip/55426296963c678650e26fc5e61ea75a5598ef5a Author: Steven Rostedt (Red Hat) AuthorDate: Tue, 24 Mar 2015 09:57:51 -0400 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Mar 2015 12:15:12 -0300 tools lib traceevent: Handle %z in bprint format The %z printf specifier was not handled making trace_printk()s in the kernel that used this break on output. Reported-by: Shawn Bohrer Signed-off-by: Steven Rostedt Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: Shawn Bohrer Link: http://lkml.kernel.org/r/20150324135922.844361717@goodmis.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/lib/traceevent/event-parse.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index e71c472..bdb1dd6 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c @@ -4008,6 +4008,10 @@ static struct print_arg *make_bprint_args(char *fmt, void *data, int size, struc goto process_again; case '.': goto process_again; + case 'z': + case 'Z': + ls = 1; + goto process_again; case 'p': ls = 1; /* fall through */