csky: add page fault perf event support
authorMao Han <han_mao@c-sky.com>
Thu, 18 Apr 2019 06:20:40 +0000 (14:20 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 22 Apr 2019 05:44:57 +0000 (13:44 +0800)
commit0eaf50deec8d550164b3cf6a5d68ec1072916f0e
treeed94bdd19db1664ef8c88cffe746e963dff7e545
parent683fafebf93bcde9948246849348b888e185cb22
csky: add page fault perf event support

This patch add support for page fault count, major fault count
and minorfault count. Without this patch page faults are not
sampled for perf event.

Performance counter stats for '/usr/lib/perf-test/callchain_test':
0      page-faults               #    0.000 K/sec

Signed-off-by: Mao Han <han_mao@c-sky.com>
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
arch/csky/mm/fault.c