mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: debugfs code to dump HAL functions
Prints addresses of device-specific HAL functions to debugfs file hal/gops. The list of functions is produced by dumping the contents of the gpu_ops substruct of the gk20a struct. This interface makes the assumption that there are only function pointers in gpu_ops. Companion Python script nvgpu_debug_hal.py analyzes gk20a.h to determine operation counts and prettyify debugfs interface's output. Jira NVGPU-107 Change-Id: I0910e86638d144979e8630bbc5b330bccfd3ad94 Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1542990 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4b5b67d6d8
commit
cc64606a53
@@ -21,6 +21,7 @@
|
||||
#include "debug_kmem.h"
|
||||
#include "debug_pmu.h"
|
||||
#include "debug_sched.h"
|
||||
#include "debug_hal.h"
|
||||
#include "os_linux.h"
|
||||
|
||||
#include "gk20a/gk20a.h"
|
||||
@@ -386,6 +387,7 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink)
|
||||
gk20a_cde_debugfs_init(g);
|
||||
gk20a_ce_debugfs_init(g);
|
||||
nvgpu_alloc_debugfs_init(g);
|
||||
nvgpu_hal_debugfs_init(g);
|
||||
gk20a_mm_debugfs_init(g);
|
||||
gk20a_fifo_debugfs_init(g);
|
||||
gk20a_sched_debugfs_init(g);
|
||||
|
||||
Reference in New Issue
Block a user