From patchwork Tue Mar 24 20:08:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 11456295 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 581E6139A for ; Tue, 24 Mar 2020 20:10:03 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1E1C2208E0 for ; Tue, 24 Mar 2020 20:10:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E1C2208E0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E85E26B0007; Tue, 24 Mar 2020 16:09:59 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id BC5386B0003; Tue, 24 Mar 2020 16:09:59 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A3F186B0008; Tue, 24 Mar 2020 16:09:59 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0100.hostedemail.com [216.40.44.100]) by kanga.kvack.org (Postfix) with ESMTP id 750EE6B0003 for ; Tue, 24 Mar 2020 16:09:59 -0400 (EDT) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 17F52151A6E for ; Tue, 24 Mar 2020 20:09:59 +0000 (UTC) X-FDA: 76631346918.25.eye54_5720d7d0d612b X-Spam-Summary: 2,0,0,09ed7a77a2121c29,d41d8cd98f00b204,srs0=apyb=5j=goodmis.org=rostedt@kernel.org,,RULES_HIT:41:69:355:379:988:989:1183:1260:1345:1437:1534:1541:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:2693:3138:3139:3140:3141:3142:3352:3865:3866:3867:3870:3871:3874:4605:5007:6119:6261:7903:8660:10004:11026:11473:11658:11914:12043:12291:12297:12517:12519:12683:13069:13138:13148:13161:13229:13230:13231:13311:13357:14095:14096:14384:14394:14721:21080:21451:21627:21795:30012:30030:30051:30054:30090,0,RBL:198.145.29.99:@kernel.org:.lbl8.mailshell.net-62.2.0.100 64.100.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: eye54_5720d7d0d612b X-Filterd-Recvd-Size: 2274 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf11.hostedemail.com (Postfix) with ESMTP for ; Tue, 24 Mar 2020 20:09:58 +0000 (UTC) Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A608A2074D; Tue, 24 Mar 2020 20:09:57 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.93) (envelope-from ) id 1jGps4-001hPb-Fn; Tue, 24 Mar 2020 16:09:56 -0400 Message-Id: <20200324200845.763565368@goodmis.org> User-Agent: quilt/0.65 Date: Tue, 24 Mar 2020 16:08:45 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org, linux-trace-devel@vger.kernel.org Cc: Arnaldo Carvalho de Melo , Ingo Molnar , Jiri Olsa , Namhyung Kim , Andrew Morton , linux-mm@kvack.org, Jaewon Kim , Vlastimil Babka , Kees Cook Subject: [PATCH 0/3] tool lib traceevent: Fix some parsing errors X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Arnaldo, Here's a few patches for lib traceevent. The first one adds an "append()" helper function for appending to strings, which will also simplify the next patch. The second patch handles "__attribute__((user))" in the field of a trace event. This is needed after the stack leak code added this to parameters of system call events. The last patch adds handling of __builtin_expect(), as someone wanted to move IS_ERR_VALUE() from the fast path into the print fmt section, which breaks the parsing. This should also be useful for other macros that may evaluate down to a __builtin_expect(). Steven Rostedt (VMware) (3): tools lib traceevent: Add append() function helper for appending strings tools lib traceevent: Handle __attribute__((user)) in field names tools lib traceevent: Add handler for __builtin_expect() ---- tools/lib/traceevent/event-parse.c | 168 ++++++++++++++++++++++++------------- 1 file changed, 111 insertions(+), 57 deletions(-)