From patchwork Tue Jan 15 23:07:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 155682 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp5454940jaa; Tue, 15 Jan 2019 15:08:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN6WdKzzoUTW+uTbNPBCmufaq/yn9yRGsxYVITrNUtYEbMEcLf9/5vnLtERs8jZ+6YvYrTH5 X-Received: by 2002:a63:2586:: with SMTP id l128mr6105235pgl.104.1547593703075; Tue, 15 Jan 2019 15:08:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547593703; cv=none; d=google.com; s=arc-20160816; b=z450EDHe2EsdCHyrFOBjaGIH/Sc3uf9xQHAO1Aw+o9uWptFM7MQQVzVMDTTUj+XeWg vJS/p/kXdANFVkQcqvM4cnyEl2/q1EH9r9k5Db8c7TyNSvG2mSDb+Di+K/D6X9fTYUCh +A/nhNAouOCd6ZTQSeXMfGwtUKpYLVg5hhYxYZmzeWnJCtM0OxBGKvVzGT4ctvnhBN1U GCQmccAZvky26OSqmFJBI2tSNgCmj7SyHN8kCTKo3TMy120xEbJ5hcv1WIK4/F4mVOFf +0cYEktH6Nua7XgcPZx+iNNTlEiy2tc60Y4ZKrXCA3Ji3KDMep0yc5Mqq5XSJEDgSy4Q h9tQ== 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=bBbcO/FLwThPnzi9ctGancax6oPRinsiTg0II3oScgw=; b=tXsqAGiC3rTD/YvJ3MZ0ul9X/R+a6pncAzwEsT6/YRkPZ4oKnXQfcHrtzZFwuM7iMK iinPm1DzCBdh184dVK/t2sR27C5a2gTYZ3zw9nBdiycdMDLV5AwCTSwws4C0lA2gAF7I UVZmtCa9IQwvWJQSQeBo8ttcajDcj0PTa3vg0C3a9UfHsw/ygao0BpOw8HWqQ18lafxz DG9xvUxn1GrjjyXUMsMrrs8fwwyPrGmlReXl1wt7+MJmhoYAzsKVVU8He0YIVX9QeRoE AIzdezijxbbzbQfmVIjBKGbk/Nj2Yv3o8z6seklaY7tQzCOzC5L3jf6np7x3KSMb6wjk sXxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=On6RXlUU; 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 c10si4437322pll.271.2019.01.15.15.08.22; Tue, 15 Jan 2019 15:08:23 -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=On6RXlUU; 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 S2403753AbfAOXIW (ORCPT + 31 others); Tue, 15 Jan 2019 18:08:22 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:45076 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387750AbfAOXHy (ORCPT ); Tue, 15 Jan 2019 18:07:54 -0500 Received: by mail-pl1-f194.google.com with SMTP id a14so1987014plm.12 for ; Tue, 15 Jan 2019 15:07:53 -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=bBbcO/FLwThPnzi9ctGancax6oPRinsiTg0II3oScgw=; b=On6RXlUUcE77eKNO+PGQZ6PETa/RedcAgn21UjeW5c60TBBoJQX7Io8Ezm7UFYxu39 hsyo67UlNJInScryS+W+t/3wr6aRdEK6LtYCajq7Ys2wG1l0Ee6w8LfltwUDtQAvSmUN DZAa46lZP3mjb0uw0IWOZU6BuFaab+JcpIGTY= 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=bBbcO/FLwThPnzi9ctGancax6oPRinsiTg0II3oScgw=; b=JlCCcPfYOoWhxS0V0gdAyPvTlmGEb0M0oiqtQzq9prjM7EtfWV2/1cpZ3BWL7iJy3v zOUSjpWXdQFtuey0+u2TmsoKZtJyz8mjl/VWa3uiHf9gScY4FrI+9bkakYbnxbUlggU5 TOkPmfeWTsjgsVFBranzrC6GVWIZvvdKZw4lh57fTDFXpkfn0gZfWvMjiQ+a54RM2LQO RnBeFPDI6tASOkE92b9RdCbH7a3ldM0GlAkyhWBqT8otSzhMrQXJwxlhnigVStK3Zg6s cfWv824cgBkCUn+wypIO68XAR2fVxFet2nMUqEbnJXL4EMfOnAHoFQDaCgck2EKyzao5 FJCw== X-Gm-Message-State: AJcUukc/2sQY+cKS++gKVGQDIRNe2jNCJU5BW4dGD2V6CLDeOsgsaTEB WWG8t81BTA2J5MKacDWUVvKelA== X-Received: by 2002:a17:902:5066:: with SMTP id f35mr6651355plh.78.1547593673313; Tue, 15 Jan 2019 15:07:53 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id h19sm4985928pfn.114.2019.01.15.15.07.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 15:07:52 -0800 (PST) From: Mathieu Poirier To: acme@kernel.org, peterz@infradead.org, gregkh@linuxfoundation.org Cc: 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, suzuki.poulose@arm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/7] perf pmu: Moving EVENT_SOURCE_DEVICE_PATH to PMU header file Date: Tue, 15 Jan 2019 16:07:39 -0700 Message-Id: <20190115230742.13730-5-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190115230742.13730-1-mathieu.poirier@linaro.org> References: <20190115230742.13730-1-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: linaro 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: linaro --- 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;