aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>2015-06-10 03:25:07 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-06-23 17:21:15 -0400
commitc5de47f2e803c7e6ffc0a34b174d4d009c8bd8e1 (patch)
tree8965d9ce9d29990c8bfa7b3aad420b721b51a01d /tools
parent8e55735150934f9ab2ce8a8005626e5693a6b61d (diff)
perf pmu: Use __weak definition from <linux/compiler.h>
Jiri Olsa pointed out, that the <linux/compiler.h> defines the attribute '__weak'. We might as well use that. Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Namhyung Kim <namhyung@kernel.org> Cc: linuxppc-dev@lists.ozlabs.org Link: http://lkml.kernel.org/r/1433921123-25327-4-git-send-email-sukadev@linux.vnet.ibm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/pmu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c
index 0fcc624eb767..c6b16b1db6d0 100644
--- a/tools/perf/util/pmu.c
+++ b/tools/perf/util/pmu.c
@@ -1,4 +1,5 @@
1#include <linux/list.h> 1#include <linux/list.h>
2#include <linux/compiler.h>
2#include <sys/types.h> 3#include <sys/types.h>
3#include <unistd.h> 4#include <unistd.h>
4#include <stdio.h> 5#include <stdio.h>
@@ -436,7 +437,7 @@ static struct cpu_map *pmu_cpumask(const char *name)
436 return cpus; 437 return cpus;
437} 438}
438 439
439struct perf_event_attr *__attribute__((weak)) 440struct perf_event_attr * __weak
440perf_pmu__get_default_config(struct perf_pmu *pmu __maybe_unused) 441perf_pmu__get_default_config(struct perf_pmu *pmu __maybe_unused)
441{ 442{
442 return NULL; 443 return NULL;