From patchwork Tue Jan 22 18:11:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 156312 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp7883304jaa; Tue, 22 Jan 2019 10:12:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN7j/LCJLmkzoN/ReW5Mi4Ksf6DtA1fgiisnI9bPGQpfP6BWJNrpCHKNkVo4rhxGQYoYJmTP X-Received: by 2002:a17:902:7b91:: with SMTP id w17mr35342167pll.111.1548180739572; Tue, 22 Jan 2019 10:12:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548180739; cv=none; d=google.com; s=arc-20160816; b=JNCNEZx5ia+2WJzvk5EWlF/bCRZ5EDY2iGBtFgVD1+nsSaRb1mElSS08Z+czPc/VcP kRGNLYg2eov+CAIP56I3eETrLc1ljshT+wzq3tGgzSR2u8DEjyrjcyhQiGJjUkrAh2Gq Eb8cIzKaC+aQjYl28p/kMOp3rhfcWz447B1U4evJhyqqWBORyV8yBR+2h5DctVxsdheD 1QhEIrwWL2b0olB81gl0Jzd+dAkorAgZFVmEDcuc427K2VaSSiM/5vRVRd6NrbXYKUpM XMO05aryj8+jLvM0YquTqHo6Nogr/xnbrKqsepxfZq9JBu3ciMXyhkTrKZL94ClaB3p8 /plA== 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=SuxrcXTgi5Kz7buMh5CGnWQq0L/rwu8Ex3hQZBJw2VY=; b=jg6DnFIlgdeWffw9VsUhz8hQ7fWOuFV2QWEujz7C1bs5/+y0HAQ7yG1yXxXnNITTvs lWL240Os7ub0ZIcUJhcMWNxJtrmi4JSLL66C32LiJGtwps+/jGGpDPelpXBJeXvjA5BR aR+YWC9vezxL7prAlcS+UUDNM1Eh8kC54XpCwp2HZv/vBdr6pFQlo7ubBYdj6dbLbR4x VVEG0kg0Vn2qaZTUE/igmoYylddgLObnIBFkgx+cSftmH97Mh36tMLEsU/DtQ23LW7aC rg2kDfPLtkFTHX4FqcMat0UCYXJB9sHOEE8Fr38oZUbecD5jqX1nbnp3GMD3H5dVW929 EC5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z60QHjIe; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15si10844961pgf.321.2019.01.22.10.12.19; Tue, 22 Jan 2019 10:12:19 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Z60QHjIe; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726953AbfAVSMR (ORCPT + 27 others); Tue, 22 Jan 2019 13:12:17 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:38192 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726779AbfAVSLy (ORCPT ); Tue, 22 Jan 2019 13:11:54 -0500 Received: by mail-pl1-f195.google.com with SMTP id e5so11855932plb.5 for ; Tue, 22 Jan 2019 10:11:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SuxrcXTgi5Kz7buMh5CGnWQq0L/rwu8Ex3hQZBJw2VY=; b=Z60QHjIenHT4OyqBsheQMaxF6RYqBiV7QP2VycQw72Lnz8H7lTUiNzU5XFIvjxZMOd R2bV27OuAJFwleSNM7Dop+yv5TW+2A9PK6f1u1wfz8Ud6uRN3Xd2seGCMo1x9AveRPOQ lZiMeIWyeAYYBpcSzW4mn9GspNtVMVJWn3qKQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=SuxrcXTgi5Kz7buMh5CGnWQq0L/rwu8Ex3hQZBJw2VY=; b=eIJx5BxA2nHzI6/qidIGmtk/VjV594AAmk+NjXKHU2y1/FGJ1rxxGha3LSGZQdLRy5 kscp/OhVN+Y2SYLziGKqRoJlU1zlJjcMfHovibTJ0HA+3ciWo2+X/ylAGsix2SUTAs9k mFI6rkefP24k9iL/fgPuA4GM5nGMRLKgUKsA8+6MfZNppskeNxywkHy9EUoVi+izT2Sx enbzZEHnx4MUUehUaGsAvZfsgWKD21Ph1Jqfz+XQUE1pjcFgeSMnTMCPcZKjJU39VE9u c6dDvd6tUORGXNuSkfmjxy0Dc/QBEa4DLW85XFnS40vYUZuYmHX+kPFQh/TzHB/GHXTi q+xQ== X-Gm-Message-State: AJcUukdTKrA1M8xl7QYFqXJUPm5J6xIBNxnT7/w2hp3zWn9m9WtWENr1 YYG8NErQXHUHivLbgyPey6pJ/Q== X-Received: by 2002:a17:902:bf03:: with SMTP id bi3mr35275336plb.83.1548180714066; Tue, 22 Jan 2019 10:11:54 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id a18sm23489919pgj.30.2019.01.22.10.11.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Jan 2019 10:11:53 -0800 (PST) From: Mathieu Poirier To: acme@kernel.org, peterz@infradead.org Cc: gregkh@linuxfoundation.org, mingo@redhat.com, tglx@linutronix.de, alexander.shishkin@linux.intel.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, will.deacon@arm.com, mark.rutland@arm.com, jolsa@redhat.com, namhyung@kernel.org, adrian.hunter@intel.com, ast@kernel.org, hpa@zytor.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com Subject: [PATCH v2 4/7] perf pmu: Moving EVENT_SOURCE_DEVICE_PATH to PMU header file Date: Tue, 22 Jan 2019 11:11:41 -0700 Message-Id: <20190122181144.26645-5-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190122181144.26645-1-mathieu.poirier@linaro.org> References: <20190122181144.26645-1-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Moving definition of EVENT_SOURCE_DEVICE_PATH to pmu.h so that it can be used by other files than pmu.c Signed-off-by: Mathieu Poirier --- tools/perf/util/pmu.c | 2 -- tools/perf/util/pmu.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.17.1 Acked-by: Suzuki K Poulose diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 11a234740632..51d437f55d18 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -29,8 +29,6 @@ struct perf_pmu_format { struct list_head list; }; -#define EVENT_SOURCE_DEVICE_PATH "/bus/event_source/devices/" - int perf_pmu_parse(struct list_head *list, char *name); extern FILE *perf_pmu_in; diff --git a/tools/perf/util/pmu.h b/tools/perf/util/pmu.h index 76fecec7b3f9..350c54e0bd3d 100644 --- a/tools/perf/util/pmu.h +++ b/tools/perf/util/pmu.h @@ -16,6 +16,7 @@ enum { }; #define PERF_PMU_FORMAT_BITS 64 +#define EVENT_SOURCE_DEVICE_PATH "/bus/event_source/devices/" struct perf_event_attr;