[PATCH 08/19] perf tools: Introduce perf hooks

2016-12-01 Thread Arnaldo Carvalho de Melo
From: Wang Nan Perf hooks allow hooking user code at perf events. They can be used for manipulation of BPF maps, taking snapshot and reporting results. In this patch two perf hook points are introduced: record_start and record_end. To avoid buggy user actions, a SIGSEGV

[PATCH 08/19] perf tools: Introduce perf hooks

2016-12-01 Thread Arnaldo Carvalho de Melo
From: Wang Nan Perf hooks allow hooking user code at perf events. They can be used for manipulation of BPF maps, taking snapshot and reporting results. In this patch two perf hook points are introduced: record_start and record_end. To avoid buggy user actions, a SIGSEGV signal handler is