On 10/3/13 11:08 AM, Arnaldo Carvalho de Melo wrote:
And is_valid_tracepoint() is a too big hammer, it traverses the whole directory looking for a match instead of plain build the path and do an access, its one of those things I need to ditch at some point. So far I just try to do a perf_evlist__add_newtp and if it fails, look at errno.
And a number of tracepoints depend on CONFIG settings so it is more than just looking at whether debugfs is mounted and accessible/readable. e.g., look at the message I put into perf-lock
David -- 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/