From patchwork Sun Oct 18 18:24:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 55200 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lf0-f72.google.com (mail-lf0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 5740122FFA for ; Sun, 18 Oct 2015 18:27:51 +0000 (UTC) Received: by lffy185 with SMTP id y185sf32564693lff.2 for ; Sun, 18 Oct 2015 11:27:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Iy+bw9DkjHG/nu8K3RzwzuCiBxbrsKNJsBJ6rB5zNEc=; b=BAzUzHriLhXqikCkLJZ8jjzCCEWvwsVx82HeSay2Gv3HumzLVRy8e3xiCpRJf12qJ6 oVQxTLhTUil3sdkVbaeseQ+1SAP4MqdqjCQPg34M9uHozcFeb3//FDUaPQWM+mdr/6Vj D4FbZ3YJF3YCxNUc/VAn+ULpxwwwLNHwsZZpj4gocGanXFZ6/w7xehC4zHhVB6NMCJ8m qX58H9M8snUMsXZEBmti6KS0/JNYYAhGWk7skJwcp0CH5/KxFLiQ+Vabspcwt5xHZFCo aqrn8fd+QIj3vMn+13/wk982nJMhR17G+Z0/LK0OOCfDOm2A/U6dmyo8dhvwgZaAgLyi fMpQ== X-Gm-Message-State: ALoCoQnTodsM+pIOkcNFGBuJeUcLIHcer/kM3nLSo341aXxUXQQF5mGZivjHRnUfrUnMwRqzjDkM X-Received: by 10.112.169.34 with SMTP id ab2mr5843171lbc.23.1445192870141; Sun, 18 Oct 2015 11:27:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.167.140 with SMTP id q134ls526237lfe.23.gmail; Sun, 18 Oct 2015 11:27:49 -0700 (PDT) X-Received: by 10.112.87.69 with SMTP id v5mr12695135lbz.70.1445192869977; Sun, 18 Oct 2015 11:27:49 -0700 (PDT) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id kf2si20086793lbc.174.2015.10.18.11.27.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Oct 2015 11:27:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lffz202 with SMTP id z202so15145806lff.3 for ; Sun, 18 Oct 2015 11:27:49 -0700 (PDT) X-Received: by 10.25.20.24 with SMTP id k24mr7720390lfi.117.1445192869847; Sun, 18 Oct 2015 11:27:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1078389lbq; Sun, 18 Oct 2015 11:27:48 -0700 (PDT) X-Received: by 10.66.124.168 with SMTP id mj8mr28956275pab.45.1445192868645; Sun, 18 Oct 2015 11:27:48 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dn5si46451379pbd.244.2015.10.18.11.27.48; Sun, 18 Oct 2015 11:27:48 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752880AbbJRS1k (ORCPT + 28 others); Sun, 18 Oct 2015 14:27:40 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:35708 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752593AbbJRS0R (ORCPT ); Sun, 18 Oct 2015 14:26:17 -0400 Received: by pasz6 with SMTP id z6so6769892pas.2 for ; Sun, 18 Oct 2015 11:26:17 -0700 (PDT) X-Received: by 10.68.249.34 with SMTP id yr2mr29591045pbc.73.1445192776969; Sun, 18 Oct 2015 11:26:16 -0700 (PDT) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [184.64.168.246]) by smtp.gmail.com with ESMTPSA id hq1sm20402076pbb.43.2015.10.18.11.26.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Oct 2015 11:26:16 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org, a.p.zijlstra@chello.nl, alexander.shishkin@linux.intel.com, acme@kernel.org, mingo@redhat.com, corbet@lwn.net, nicolas.pitre@linaro.org Cc: adrian.hunter@intel.com, zhang.chunyan@linaro.org, mike.leach@arm.com, tor@ti.com, al.grant@arm.com, pawel.moll@arm.com, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org Subject: [PATCH V2 26/30] perf tools: making source devices path broadly accessible Date: Sun, 18 Oct 2015 12:24:43 -0600 Message-Id: <1445192687-24112-27-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445192687-24112-1-git-send-email-mathieu.poirier@linaro.org> References: <1445192687-24112-1-git-send-email-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mathieu.poirier@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Other perf tools may want access to the event source device directory. As such moving the path definition to pmu.h for easy inclusion by other clients. Signed-off-by: Mathieu Poirier --- tools/perf/util/pmu.c | 2 -- tools/perf/util/pmu.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 89c91a1a67e7..e1f2dc23a253 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -20,8 +20,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 5d7e84466bee..3fbb791a955a 100644 --- a/tools/perf/util/pmu.h +++ b/tools/perf/util/pmu.h @@ -35,6 +35,7 @@ struct perf_pmu_info { }; #define UNIT_MAX_LEN 31 /* max length for event unit name */ +#define EVENT_SOURCE_DEVICE_PATH "/bus/event_source/devices/" struct perf_pmu_alias { char *name;