perf tools: Add ia64 support for tools/perf/

Compiler on ia64 rejects the "-m64" option.
Add arch specific pieces to perf.h

Signed-off-by: Tony Luck <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
Luck, Tony 2009-11-17 09:05:56 -08:00 • committed by Ingo Molnar
commit 11ada26c78
2 changed files with 11 additions and 3 deletions

View file

@ -166,10 +166,12 @@ ifdef NO_64BIT
MBITS := -m32
else
#
# If we're on a 64-bit kernel, use -m64:
# If we're on a 64-bit kernel (except ia64), use -m64:
#
ifneq ($(patsubst %64,%,$(uname_M)),$(uname_M))
MBITS := -m64
ifneq ($(uname_M),ia64)
ifneq ($(patsubst %64,%,$(uname_M)),$(uname_M))
MBITS := -m64
endif
endif
endif

View file

@ -53,6 +53,12 @@
#define cpu_relax() asm volatile("" ::: "memory")
#endif
#ifdef __ia64__
#include "../../arch/ia64/include/asm/unistd.h"
#define rmb() asm volatile ("mf" ::: "memory")
#define cpu_relax() asm volatile ("hint @pause" ::: "memory")
#endif
#include <time.h>
#include <unistd.h>
#include <sys/types.h>