]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/perf/uapi: Add perf_stream_paranoid sysctl
authorAshutosh Dixit <ashutosh.dixit@intel.com>
Tue, 18 Jun 2024 01:45:54 +0000 (18:45 -0700)
committerAshutosh Dixit <ashutosh.dixit@intel.com>
Tue, 18 Jun 2024 19:40:26 +0000 (12:40 -0700)
commitfe8929bdf83512ed7e413a28e543c725bf536354
treec83e2de9c26ea16564e9a252162e839588684fe4
parent52c2e956dcebecc8901911217a9647203ebcaf3c
drm/xe/perf/uapi: Add perf_stream_paranoid sysctl

Normally only superuser/root can access perf counter data. However,
superuser can set perf_stream_paranoid sysctl to 0 to allow non-privileged
users to also access perf data. perf_stream_paranoid is introduced at the
perf layer to allow different perf stream types to share this access
mechanism.

v2: Add kernel doc for non-static functions (Michal)

Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Acked-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240618014609.3233427-3-ashutosh.dixit@intel.com
drivers/gpu/drm/xe/xe_module.c
drivers/gpu/drm/xe/xe_perf.c
drivers/gpu/drm/xe/xe_perf.h