mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 17:30:40 +03:00
HWPM is a profiling device. Device node property support-soc-tools indicates if soc profiling tools should be enabled or disabled. Add logic to HWPM probe to read device node and probe HWPM device only if support-soc-tools property is present. Implement devnode API to disclose device node permissions for HWPM. Set HWPM device node permissions to allow access for root and group. Bug 3435136 Bug 3583956 Change-Id: I988de3b21cd00ef9402ca03408d2b0141e7155d8 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2717982 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> GVS: Gerrit_Virtual_Submit