The following patch adds minimal support for software performance counters for ia64. For the kernel the patch enables configuration of the perf counter option, adds the perf_counter_open syscall, and includes a minimal machine specific asm/perf.h header file. For the perf tool the header perf.h includes an ia64 specific section and the options used in the Makefile were adjusted to allow compilation on ia64. The -Wcast-align gives "cast increases required alignment of target type" warning for the list_for_each_entry() macro. The "-fno-strict-aliasing" was used to avoid warnings for "dereferencing type-punned pointer will break strict-aliasing rules" warnings for sscanf() functions in util/trace-event-parse.c -Will Signed-off-by: William Cohen