diff mbox series

[v2,4/7] perf pmu: Moving EVENT_SOURCE_DEVICE_PATH to PMU header file

Message ID 20190122181144.26645-5-mathieu.poirier@linaro.org
State Superseded
Headers show
Series perf: Communicate sink via event::attr:config2 | expand

Commit Message

Mathieu Poirier Jan. 22, 2019, 6:11 p.m. UTC
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 <mathieu.poirier@linaro.org>

---
 tools/perf/util/pmu.c | 2 --
 tools/perf/util/pmu.h | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

-- 
2.17.1

Comments

Suzuki K Poulose Jan. 30, 2019, 5:50 p.m. UTC | #1
On 01/22/2019 06:11 PM, Mathieu Poirier wrote:
> 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 <mathieu.poirier@linaro.org>

> ---

>   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 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;

>   

> 


FWIW:

Acked-by: Suzuki K Poulose <suzuki.poulose@arm.com>
diff mbox series

Patch

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;