This should at least go into debugfs. I'd also prefer it it was aseparate file instead of the ifdefs.