Received: by 10.223.148.5 with SMTP id 5csp6026844wrq; Wed, 17 Jan 2018 08:31:52 -0800 (PST) X-Google-Smtp-Source: ACJfBos5+YgAsUyCROzpO0aUFbY+sNVoTroWcrOz7ABlPvhLfERTKxNi9qALgiTOlMfgF4X/lAej X-Received: by 10.84.242.152 with SMTP id d24mr42459864pll.255.1516206712669; Wed, 17 Jan 2018 08:31:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516206712; cv=none; d=google.com; s=arc-20160816; b=nYmmbHzkzhB6Sre23JAJM4c6EvvWAIN/g6nRvadoUlxtJHEFCd1HtC9/XWi0BGWa8q 3KQm8x22FDdz8TFcp1ghv487sAguIVb4wUpLgQ8fKAuZZ5FZebI4AKusSrXP/LFMyL8Y a5V9bB2xu5wAKEI0LZ/UqzGe7KvRerkz9XMcJuNO6lt/ixuzGrPnS2XOWs7RO+768vVS ZyF0s0DO/H6cfC+wO5TFYz9VGxC0/GasY2lWrrkLcafnw1+QeKKPi2g+DrNw/O+rO6Li m9j/+j0gKKTPINxP21vee1sJwxdxAOg/8KEQNcIb/UoLbJT0hGovmo4/yC+uuSddMl3r 8xhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=mWvPFV29HXDTBvm0Qc8q93jcYQSTPVzAET1ePx/ETkU=; b=P8rgzAe9tJR0xU7TgZZpPJRZs3agfTBeMHeSsWFwP9YcGgEdfhcVnhHFh+MhYTF7G7 a8g8wBxbZfKZC/cc+t8G4rCcR/5D2HOczdbM2wm+JbkD5CmULl+1viixtxfHnxQOGVm5 Uq1QHqfAX3p9ITs1BklYzKOBCiJQxxG4lX3v3sKj4gdDAnh+h5l/G43dBZG+DXV2kkQT Huz3KIhyJSgt27lOAKvhVIpaxUoPRFgvWUP3Hb0u0b+pX+zj4bYUb7+4vJLg029ZwdTR fomkUArWRqmRIW3rZwioHBGYKF+3Zm0GJ4nFvvNl9IiBqaBBzHl4+SzbZfqPYuHoLTRr WRFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8si2123842pls.248.2018.01.17.08.31.38; Wed, 17 Jan 2018 08:31:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754288AbeAQQac (ORCPT + 99 others); Wed, 17 Jan 2018 11:30:32 -0500 Received: from terminus.zytor.com ([65.50.211.136]:50413 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753843AbeAQQaa (ORCPT ); Wed, 17 Jan 2018 11:30:30 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w0HGS98A032279; Wed, 17 Jan 2018 08:28:09 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w0HGS8YF032274; Wed, 17 Jan 2018 08:28:08 -0800 Date: Wed, 17 Jan 2018 08:28:08 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Michael Sartain Message-ID: Cc: hpa@zytor.com, tglx@linutronix.de, akpm@linux-foundation.org, mingo@kernel.org, namhyung@kernel.org, mikesart@fastmail.com, acme@redhat.com, rostedt@goodmis.org, linux-kernel@vger.kernel.org Reply-To: linux-kernel@vger.kernel.org, acme@redhat.com, rostedt@goodmis.org, mikesart@fastmail.com, namhyung@kernel.org, mingo@kernel.org, akpm@linux-foundation.org, tglx@linutronix.de, hpa@zytor.com In-Reply-To: References: <20180112004821.827168881@goodmis.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] tools lib traceevent: Fix bad force_token escape sequence Git-Commit-ID: 952a99ccfa9db2f9a32810fc9c0084f532dd871a 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 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 952a99ccfa9db2f9a32810fc9c0084f532dd871a Gitweb: https://git.kernel.org/tip/952a99ccfa9db2f9a32810fc9c0084f532dd871a Author: Michael Sartain AuthorDate: Thu, 11 Jan 2018 19:47:42 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 17 Jan 2018 10:21:39 -0300 tools lib traceevent: Fix bad force_token escape sequence Older kernels have a bug that creates invalid symbols. event-parse.c handles them by replacing them with a "%s" token. But the fix included an extra backslash, and "\%s" was added incorrectly. Signed-off-by: Michael Sartain Acked-by: Namhyung Kim Cc: Andrew Morton Link: http://lkml.kernel.org/r/20180112004821.827168881@goodmis.org Link: http://lkml.kernel.org/r/d320000d37c10ce0912851e1fb78d1e0c946bcd9.1497486273.git.mikesart@fastmail.com Signed-off-by: Steven Rostedt Signed-off-by: Arnaldo Carvalho de Melo --- tools/lib/traceevent/event-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index 7ce724f..0bc1a6d 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c @@ -1094,7 +1094,7 @@ static enum event_type __read_token(char **tok) if (strcmp(*tok, "LOCAL_PR_FMT") == 0) { free(*tok); *tok = NULL; - return force_token("\"\%s\" ", tok); + return force_token("\"%s\" ", tok); } else if (strcmp(*tok, "STA_PR_FMT") == 0) { free(*tok); *tok = NULL;