mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
This patch updates nvgpu_assert as macro to print the information about the calling function. Specifically, to print the function name and the line number details. This patch introduces misra violations (misra_c_2012_rule_10_1_violation) in nvgpu_assert(). However, leaving misra violations unfixed has low safety impact since misra violations are coming after fatal error is hit where GPU driver is not expected to be serviceable thereafter. Further, this patch provides debug benefit in quickly finding the function that lead to the exit of NvGPU process. Bug 2964898 Change-Id: Iba85f4a9226742a0bb08b045bcbfa26949bbe746 Signed-off-by: Rajesh Devaraj <rdevaraj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2342086 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Ankur Kishore <ankkishore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
4.3 KiB
4.3 KiB