btrace: check perf_event_paranoid
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 19 Jan 2018 14:17:43 +0000 (15:17 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Fri, 9 Feb 2018 13:03:21 +0000 (14:03 +0100)
commit88711fbfeadd6e4663d986962dfcd7ab660c61d1
tree37e0e87f2dc6135a4483530d2df81a673f8380a1
parent17ad2a4f466f22b7a75b5ebf8a68446bb328c40c
btrace: check perf_event_paranoid

One recurring error on Debian systems is that the default perf_event_paranoid
setting disables the perf_event interface for user-space.

Check the current level and point the user to the file.

gdb/
* nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
(linux_enable_pt, linux_enable_bts): Call
diagnose_perf_event_open_fail.
gdb/ChangeLog
gdb/nat/linux-btrace.c