From patchwork Thu Jan 31 18:47:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 157155 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp7555296jaa; Thu, 31 Jan 2019 10:47:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN7oH42QQ1ldmyhqaJ7T48ORw9MKZkJ2SWh1LKXc1zqIcGUSZH1M0VoOzp38RLv3RQA3T0yg X-Received: by 2002:a17:902:d68c:: with SMTP id v12mr35537196ply.4.1548960466102; Thu, 31 Jan 2019 10:47:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548960466; cv=none; d=google.com; s=arc-20160816; b=sTrXxcK2SjO+8v90q8UTRDkgJjtuvHJ9qQYMKd6ShF62hbrCXibmprEh8Bccc2QOET b1S0vEGlEQlGiI/p/x85QHeAN/b2bnf446AO0NAtGlK/WlcpLokx8eAedlDQNDHlv4Fm gcqBVNAdK/G4hDCN5CqX5gYyi1JDus/Tx2V0P4zp6J2MO/CCRvgumLcY+JxG/6PWwrU1 DwQP0ejoofS8xS0JiTUclE49uCSNZt5FkTGiWcAqVb4DkYMuPM2hhCfbKA5hQceDszWr nP7jcGt2g434bBS7nFebPyv43HRPCUmtBQtwLbJV6+WrrUOs6HrHWRD+ZEc5bNL8Mdvk rRvw== 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=7joT+FiIVI2um+Bj5G0r88fPyUv6XsFU9OyCfcSTWlE=; b=owV2Y1zdu80Cvoy+ApRxdUk1yPOfbd1BSzwXHiUpU5yqDsR8CWl2O8LxiO1xHZ1WLi 0be3FH9D/86SFCIzOnqBgx9j7cWLXq7Oi13RA7v4jM+JUbJbzu3ttbTqlDIoU0DJSvBz iej/yKyrEPT1jbcJOfFLjvmo1u/q69GO/hRegJYlLC7QXT/L1ad13gy8JdH6UVKzUPSa Icy65HZc+Vb524320/e6HwjasO2m29olCTk9ziq/l310xJdCMtaZcAJRXD6hT7lKyh+f uD0d46+ctrjVsvnljaZ9HEaCwwjjg9of1Vy5p9OSY3W5uKRurPLU4zW50BhL0G5dZ2r9 kBoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=glf4ziPB; 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 c4si4923421pfi.110.2019.01.31.10.47.45; Thu, 31 Jan 2019 10:47:46 -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=glf4ziPB; 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 S1728193AbfAaSr2 (ORCPT + 31 others); Thu, 31 Jan 2019 13:47:28 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:41212 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728123AbfAaSrY (ORCPT ); Thu, 31 Jan 2019 13:47:24 -0500 Received: by mail-pl1-f194.google.com with SMTP id u6so1864160plm.8 for ; Thu, 31 Jan 2019 10:47:24 -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=7joT+FiIVI2um+Bj5G0r88fPyUv6XsFU9OyCfcSTWlE=; b=glf4ziPBQoTzLutgeF+Kepcv2UOvFNic2vzeLLP4nCNWMQCM3Rv0B0ZJe75bW3cncy +IhWEsfjSWk/9bisvLFqOIqzZPTjpQRv3nK1CktyUcZKc4wGG8r0BoZ9PtaFc04J0Lqo gIb04R7fqjNSJVnxqReFJF5V73z+BFLi0okJc= 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=7joT+FiIVI2um+Bj5G0r88fPyUv6XsFU9OyCfcSTWlE=; b=RLxRSodi+5oBkeQSfPZEwvj4QTbWOunahACsq9dz9IO4GTX6ZHpnD25lQZyGvZBbdK FcI540jGf9udJ8ScLs11w5dxwe9mbzQsbzrHHIzT6H0hTysCxPyVfNdEt0ZvPL7mBPVh NL8z7k0b+4il3CxGlHSEzM1aVS19XCPfwEXST9u30dTMRgExX687iGfZKrw6o070L/b/ iDfzfm9hOOHttsT06B8QYxz1pkc8t40nSxeXbE4IFeOU7n0cB+99DQjeOyBp2gl/clvm aMaZ9tHMzyFQd70xIxT1NsT0gVPo8qCXdzAU9dOaw4WHfXoN0Dh8BYw02b0f3V8BDEpD JiJg== X-Gm-Message-State: AJcUuke/0R0trH5maiAbvq1EKpPkPDmsoMHUVvCQr03X83CssoWjB0zc VD689XSXJVNk/KVKihgIPTQ1DQ== X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr33947349plb.70.1548960443889; Thu, 31 Jan 2019 10:47:23 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id o66sm6236234pgo.75.2019.01.31.10.47.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 10:47:23 -0800 (PST) From: Mathieu Poirier To: acme@kernel.org, peterz@infradead.org Cc: suzuki.poulose@arm.com, 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 Subject: [PATCH v3 4/7] perf pmu: Moving EVENT_SOURCE_DEVICE_PATH to PMU header file Date: Thu, 31 Jan 2019 11:47:11 -0700 Message-Id: <20190131184714.20388-5-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190131184714.20388-1-mathieu.poirier@linaro.org> References: <20190131184714.20388-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 Acked-by: Suzuki K Poulose --- tools/perf/util/pmu.c | 2 -- tools/perf/util/pmu.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.17.1 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;