drm/i915: Add dev.i915.perf_stream_paranoid sysctl option
authorRobert Bragg <robert@sixbynine.org>
Mon, 7 Nov 2016 19:49:54 +0000 (19:49 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Nov 2016 13:39:00 +0000 (14:39 +0100)
commitccdf6341ed36e403b2c12d3ef6cb50e9f8e6bdcc
treeb19c6a82e00295a8ae8421925c76ab3f0b13f561
parent442b8c06fc7230772a663a00feeb5ebc61652d6d
drm/i915: Add dev.i915.perf_stream_paranoid sysctl option

Consistent with the kernel.perf_event_paranoid sysctl option that can
allow non-root users to access system wide cpu metrics, this can
optionally allow non-root users to access system wide OA counter metrics
from Gen graphics hardware.

Signed-off-by: Robert Bragg <robert@sixbynine.org>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Sourab Gupta <sourab.gupta@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161107194957.3385-9-robert@sixbynine.org
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_perf.c