tile: add syscall tables syscall-tile.h

Define the tile syscall tables struct syscalltable syscalls_tile[]

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>

 create mode 100644 include/syscalls-tile.h
tile: add arch-tile.h

Add Tilera constants definition.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>

 create mode 100644 include/arch-tile.h
include tile headers

Include tile headers to add in the tile support.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
make perf_event_open() create system-wide events

This patch adds a create_mostly_valid_global_event case to the
perf_event_open() code.

Without this patch it is extremely unlikely that a global
(not per-process) event would be randomly created.

Most users will not notice a change, as you can only create global events
as root or else if /proc/sys/kernel/perf_event_paranoid is set to < 1
(the default is 1).

With this change some of the more obscure event types such as uncore,
northbridge, and RAPL power events are occasionally properly created.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>