gpu: pvr: add option for extra debugging information
authorImre Deak <imre.deak@nokia.com>
Thu, 1 Apr 2010 14:44:37 +0000 (17:44 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:09:40 +0000 (21:09 +0300)
commit17f6908e97cf7643a50a8493b139144ef848a1d3
tree7ed415cd9a504a2688d087a2d7799a37c41e6c6f
parentdd8b7deaf7441c8b828a01b7567d9d5fa3757385
gpu: pvr: add option for extra debugging information

This is basically a sed -i 's/\<DEBUG\>/CONFIG_PVR_DEBUG_EXTRA' *.[ch] .

Currently a driver built in debug mode will only work together with the
relevant PVR/OGLES user space libraries being built in debug mode too.
This is becuase the ABI is different in debug and release build.

This is not very flexible when one wants to only debug the kernel driver
and not care about the user space part, let alone figuring out where to
get the sources for that and rebuild it in debug mode too.

Mark the current user space dependent debug code parts with a new
CONFIG_PVR_DEBUG_EXTRA option instead of DEBUG, so that later we can
selectively add back basic debugging facilities like debug traces and
mark them with CONFIG_PVR_DEBUG.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
CC: Mark Underwood <mark.underwood@imgtec.com>
CC: Mark Riding <mark.riding@imgtec.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@nokia.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@nokia.com>
21 files changed:
pvr/Kconfig
pvr/bridged_pvr_bridge.c
pvr/bridged_pvr_bridge.h
pvr/bufferclass_example_linux.c
pvr/event.c
pvr/handle.c
pvr/mm.h
pvr/mmap.c
pvr/module.c
pvr/omaplfb.h
pvr/osfunc.c
pvr/pb.c
pvr/proc.c
pvr/pvr_debug.h
pvr/pvrconfig.h
pvr/ra.c
pvr/resman.c
pvr/sgx_options.h
pvr/sgxutils.c
pvr/syslocal.h
pvr/sysutils.c