kernel: add dynamic debug

Signed-off-by: Micky Ching <mickyching@gmail.com>