On Tue, 31 Mar 2015 16:36:51 +0900 Masami Hiramatsu <masami.hiramatsu...@hitachi.com> wrote:
> > Instead of adding an enum mapping file, I could add a way to look at > > all the events in the system that defined a mapping, and do a > > "s/ENUM_NAME/ENUM_VALUE/g" do the saved print formats? I'm not sure how > > much we want to do that in the kernel though. > > No, it's not what I expected... Actually, I'm going to play with this idea and see how crazy it is or isn't. Converting the ENUMS in TP_printk() might actually be doable. I'll write up some code and we can see if it seems sane or not. OK? > > What I thought was expanding __print_symbolic() macro in TP_printk > with a special hash string(start with #), and when showing it via > event/format, replace the hash string with the strings generated > by the map of symbols. This will introduce a small overhead to show > the format as a side effect. > > Actually I even have not tried, so it's just an idea yet. > If you can figure something out, please let me know! Thanks, -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/