Skip to content

Commit

Permalink
metag: Perf
Browse files Browse the repository at this point in the history
Add Perf support for metag.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
  • Loading branch information
James Hogan committed Mar 2, 2013
1 parent 5633004 commit 903b20a
Show file tree
Hide file tree
Showing 7 changed files with 1,073 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/metag/Kconfig
Expand Up @@ -22,6 +22,7 @@ config METAG
select HAVE_MEMBLOCK
select HAVE_MEMBLOCK_NODE_MAP
select HAVE_MOD_ARCH_SPECIFIC
select HAVE_PERF_EVENTS
select HAVE_SYSCALL_TRACEPOINTS
select IRQ_DOMAIN
select MODULES_USE_ELF_RELA
Expand Down
4 changes: 4 additions & 0 deletions arch/metag/include/asm/perf_event.h
@@ -0,0 +1,4 @@
#ifndef __ASM_METAG_PERF_EVENT_H
#define __ASM_METAG_PERF_EVENT_H

#endif /* __ASM_METAG_PERF_EVENT_H */
2 changes: 2 additions & 0 deletions arch/metag/kernel/Makefile
Expand Up @@ -25,6 +25,8 @@ obj-y += topology.o
obj-y += traps.o
obj-y += user_gateway.o

obj-$(CONFIG_PERF_EVENTS) += perf/

obj-$(CONFIG_METAG_COREMEM) += coremem.o
obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
obj-$(CONFIG_FUNCTION_TRACER) += ftrace_stub.o
Expand Down
3 changes: 3 additions & 0 deletions arch/metag/kernel/perf/Makefile
@@ -0,0 +1,3 @@
# Makefile for performance event core

obj-y += perf_event.o

0 comments on commit 903b20a

Please sign in to comment.