Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4234104imm; Mon, 8 Oct 2018 17:56:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV60ie6KZulysUJ6nP2s2PxExNk6NdUtPm5Y0iFEPaFMph4la5j+iSydEG71A1RUV/ker7KdO X-Received: by 2002:a62:3185:: with SMTP id x127-v6mr28385567pfx.88.1539046580583; Mon, 08 Oct 2018 17:56:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539046580; cv=none; d=google.com; s=arc-20160816; b=YmmFLNP7i4SUHnccBaxsOlPkTzvpXmgr/xJwbeTYBvuc2dnAOGu/jdJxYuJNZiL+8e 4SaabiJbxl4aYvDRRkHCQ+Z2vij+TJwDat1Qw1Wsmdl99r80PhnfPZcZZnNTtIFvNBUc YjMv5a43IPtfiuswxklM/ZyhKJvzdPhbIBuTRjrdYIi95QXvp3Vi1Wcon/nH30L4VTja 4YkJZf+fV/bQoAXFUaUg0vgel760prQ+HWnuzVJYH/ikXg46j4kwRB5xpaQrLO//DYHu YQZUmIaKEgjWPZFpZ2OjQOEup+eHYTdoRtsUO2PUUyg0PaO3YwnYxqnGJEuSw8rgOLvX Fj6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=HflyUIUaKu8rXs0YFWxyO6sL6k5Zl9ORv50z/KXIyEU=; b=xH5cyauXR9gdt2bGpx+OMkvK3UMXqxekKi0VARFioFJJtdD0d30zZ/a0jDrWH5K/mQ Ob7ZOkjl8s64yaKc/bIK+r6DlO1NqOv59OsbRoT0UbgFnK35KKgkw54uVov6T5FIqa2R Mxo0R19yK4Zh3VsCL+tzkgJbn/JCjjeXTct18GyndypvXYeuvTzXx0Il4pTEB9z+FEYM 5qOJsZW7w62x2ZjgLr0cYAy6ryzR+WPOjePXK/oLj8jMJbX4Id4T/Zur0Ls3nW9arOrQ tUQtAbrXs4d+CKI71WCm391bwPSfuTbZTa9l5S7TGK155HQi9szOqW9/ju0kKjb6shm4 vGJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SPkl7tyy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z65-v6si20104509pff.223.2018.10.08.17.56.06; Mon, 08 Oct 2018 17:56:20 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=SPkl7tyy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727040AbeJIIJj (ORCPT + 99 others); Tue, 9 Oct 2018 04:09:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:42326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726946AbeJIIJi (ORCPT ); Tue, 9 Oct 2018 04:09:38 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (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 0EF5C2087D; Tue, 9 Oct 2018 00:55:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539046517; bh=ZVUVM15UptkOdrcbCrFRv5OPBXVaiIm4+/ZmpwnGyvY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SPkl7tyyMKfO+BboQsuSeuJnwTYl1nJSWObBzvPewGicXckLGq/fQCuRm7AejZJi3 LElQMsgdzPtXv3yxprdeqHdVA/MYRR60ygYzDvuKys9hzDKji+lgLXiMn4ZFdzbBLx +/BS4szfRzmJNYhMyqKxuFtZAjXApFperht3GWYI= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Eduardo Habkost , Adrian Hunter , David Ahern , Jiri Olsa , Namhyung Kim , Wang Nan , Arnaldo Carvalho de Melo Subject: [PATCH 09/12] perf python: Make clang_has_option() work on Python 3 Date: Mon, 8 Oct 2018 21:54:24 -0300 Message-Id: <20181009005427.6607-10-acme@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181009005427.6607-1-acme@kernel.org> References: <20181009005427.6607-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eduardo Habkost Use a bytes literal so it works with Python 3's version of Popen(). Note that the b"..." syntax requires Python 2.6+. Signed-off-by: Eduardo Habkost Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/r/20181005204058.7966-2-ehabkost@redhat.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/setup.py b/tools/perf/util/setup.py index 1942f6dd24f6..261a55e7e1b2 100644 --- a/tools/perf/util/setup.py +++ b/tools/perf/util/setup.py @@ -5,7 +5,7 @@ from subprocess import Popen, PIPE from re import sub def clang_has_option(option): - return [o for o in Popen(['clang', option], stderr=PIPE).stderr.readlines() if "unknown argument" in o] == [ ] + return [o for o in Popen(['clang', option], stderr=PIPE).stderr.readlines() if b"unknown argument" in o] == [ ] cc = getenv("CC") if cc == "clang": -- 2.14.4