diff options
Diffstat (limited to 'bsd')
-rw-r--r-- | bsd/drm_os_freebsd.h | 4 | ||||
-rw-r--r-- | bsd/drm_sysctl.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h index acbd7cf3..8331d246 100644 --- a/bsd/drm_os_freebsd.h +++ b/bsd/drm_os_freebsd.h @@ -398,5 +398,7 @@ extern drm_file_t *DRM(find_file_by_proc)(drm_device_t *dev, extern int DRM(sysctl_init)(drm_device_t *dev); extern int DRM(sysctl_cleanup)(drm_device_t *dev); -/* Memory info sysctl (drm_memory.h) */ +/* Memory info sysctl (drm_memory_debug.h) */ +#ifdef DEBUG_MEMORY extern int DRM(mem_info) DRM_SYSCTL_HANDLER_ARGS; +#endif diff --git a/bsd/drm_sysctl.h b/bsd/drm_sysctl.h index 1cf794c0..8c038bdd 100644 --- a/bsd/drm_sysctl.h +++ b/bsd/drm_sysctl.h @@ -16,7 +16,9 @@ struct DRM(sysctl_list) { int (*f) DRM_SYSCTL_HANDLER_ARGS; } DRM(sysctl_list)[] = { { "name", DRM(name_info) }, +#ifdef DEBUG_MEMORY { "mem", DRM(mem_info) }, +#endif { "vm", DRM(vm_info) }, { "clients", DRM(clients_info) }, { "bufs", DRM(bufs_info) }, |