From patchwork Wed Feb 6 18:48:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 157655 Delivered-To: patch@linaro.org Received: by 2002:ac9:7558:0:0:0:0:0 with SMTP id r24csp6437344oct; Wed, 6 Feb 2019 10:50:28 -0800 (PST) X-Google-Smtp-Source: AHgI3IaisvG+4FFfOHduDKFV1fO9Oov1NwE70eatC8OCojLCisEmn1qTIBUOsYwBd8pS5fAkCoQF X-Received: by 2002:a63:3287:: with SMTP id y129mr10949286pgy.337.1549479028469; Wed, 06 Feb 2019 10:50:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549479028; cv=none; d=google.com; s=arc-20160816; b=c4keUXfyMhJpmD/BRqw4zJc1Le/gN9uZ+CmkQQf7nX9A3P7RQdNOZlqDbBZwc6nRTL Rfz91ZRuD+hQqvFxHiQSKkx8nveb8rp38GrOWzCZFRfrezDwdlylzrpPVscEdX/+p11p 849wZLdh4TsZhL1CpBj1TVny0/LHR0Kpr1ugxOaPrIk3CgNLY3YsDZOLuzL7CkoO+pl2 QHCP1n8XYu/GO3elN2ZeFAsraavDFqk1K7+AnUwjFFHrbWZQHpXuf3kil06xENuaGtDd 3pgB+QVWB9bXEjM/Lncwbp/FuPeBb4pJr57ukjbkWstr7a3x12pfSGMfO2FIntMYF9qk K3Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MmkfSS1eX9Jn8H0QLOX+GBPDHEYU9rtZSBFEPv/Aee8=; b=GBFaLplMGMFpAvZ3ioxDvg28wUJ7tBKExtMdamIeg4qjjAa9lkeUSOVOiNJeldJMsD av1/FnjDFU2R/jrg0k/BhRY9G2xbFP6WWBIKnhlkwCXD3SWBsKBPOttWK48EpgxTZ/ns P+fHs69QtmeacToIVIdNSnAmsxfluXKjR5xfZorxET+lxv0FTLIQwzGIFPXOQ1ISiLBF cQvbASiZQEWC7rYtu5zUvThwYcXHIUPaZrv7WBPX6aPMpaVCmNlAcNIExwIuFh0KhQdI wZPEGplpgYp3I19ThYh04p1wfthqzSrlX6mo7wymh+ygyA++J28X8NPxOxCAOEYYKcEp jgzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r+thPVyB; 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 b128si6849219pfa.283.2019.02.06.10.50.28; Wed, 06 Feb 2019 10:50:28 -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=@kernel.org header.s=default header.b=r+thPVyB; 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 S1727587AbfBFSu0 (ORCPT + 31 others); Wed, 6 Feb 2019 13:50:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:44716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726962AbfBFSu0 (ORCPT ); Wed, 6 Feb 2019 13:50:26 -0500 Received: from quaco.ghostprotocols.net (unknown [179.97.41.93]) (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 B968E206DD; Wed, 6 Feb 2019 18:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549479025; bh=yFzwU85Wp2pea7M0l1DKYbEgh3xwEQzw/mAvyvPsWRA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r+thPVyB+wfKiedlQaZ/pVZ58HPIzT81507mHnqY79MJxofX3T8kkdcgpFYKdtsm7 BxqXh3PnigeKglazpCNONBc6SuBYKo38tEDBDCaAArt7bUSqM8WoIQ6IXEv5XZMK5O XYlejuldXa9fkdPd2WF4JR9o+itVyWC72uUHByNQ= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Jiri Olsa , Namhyung Kim , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Mathieu Poirier , Suzuki K Poulouse , Adrian Hunter , Alexander Shishkin , Alexei Starovoitov , Greg Kroah-Hartman , "H . Peter Anvin" , Heiko Carstens , Jiri Olsa , Mark Rutland , Martin Schwidefsky , Peter Zijlstra , Thomas Gleixner , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, Arnaldo Carvalho de Melo Subject: [PATCH 23/53] perf pmu: Move EVENT_SOURCE_DEVICE_PATH to PMU header file Date: Wed, 6 Feb 2019 15:48:33 -0300 Message-Id: <20190206184903.24054-24-acme@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190206184903.24054-1-acme@kernel.org> References: <20190206184903.24054-1-acme@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mathieu Poirier Move 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 Poulouse Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Alexei Starovoitov Cc: Greg Kroah-Hartman Cc: H. Peter Anvin Cc: Heiko Carstens Cc: Jiri Olsa Cc: Mark Rutland Cc: Martin Schwidefsky Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Cc: linux-s390@vger.kernel.org Link: http://lkml.kernel.org/r/20190131184714.20388-5-mathieu.poirier@linaro.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/pmu.c | 2 -- tools/perf/util/pmu.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.20.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 ffed23fb920a..1c12a61ed0dc 100644 --- a/tools/perf/util/pmu.h +++ b/tools/perf/util/pmu.h @@ -17,6 +17,7 @@ enum { }; #define PERF_PMU_FORMAT_BITS 64 +#define EVENT_SOURCE_DEVICE_PATH "/bus/event_source/devices/" struct perf_event_attr;