This is an incremental patch on top of my earlier -v2 patch.
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c
index a7e5765..81c154e 100644
--- a/tools/perf/util/parse-events.c
+++ b/tools/perf/util/parse-events.c
@@ -1045,6 +1045,7 @@ static void print_umasks(pfm_event_info_t *info)
int i, ret;
pfm_event_attr_info_t ainfo;
+ ainfo.size = sizeof(ainfo);
pfm_for_each_event_attr(i, info) {
ret = pfm_get_event_attr_info(info->idx, i,
PFM_OS_PERF_EVENT_EXT, &ainfo);
@@ -1126,7 +1127,11 @@ void print_events(const char *event_glob)
for (k = pinfo.first_event; k != -1; k = pfm_get_event_next(k))
{
pfm_event_info_t info;
+ info.size = sizeof(info);
ret = pfm_get_event_info(k, PFM_OS_PERF_EVENT_EXT,
&info);
+ if (ret != PFM_SUCCESS) {
+ fprintf(stderr, "libpfm4: %s\n",
pfm_strerror(ret));
+ }
if (info.pmu != pinfo.pmu)
continue;
--
1.7.4
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
perfmon2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel