In 2.6.32-rc7, there are two power.h tracepoints headers, and only the
one in trace/events/ is valid. In general, we can expect that
trace/events/ has newer headers, so we should search those first.
* tapsets.cxx (tracepoint_builder::init_dw): Search /events/ first.
glob_t trace_glob;
string globs[] = {
- "/include/trace/*.h",
"/include/trace/events/*.h",
- "/source/include/trace/*.h",
"/source/include/trace/events/*.h",
+ "/include/trace/*.h",
+ "/source/include/trace/*.h",
};
for (unsigned z = 0; z < sizeof(globs) / sizeof(globs[0]); z++)
{