On 7/31/15 4:59 AM, Kaixu Xia wrote:
+       /*
+        * prevent some crazy events so we can make our life easier
+        */
+       if (event->attr.type != PERF_TYPE_RAW &&
+           event->attr.type != PERF_TYPE_HARDWARE) {
+               perf_event_release_kernel(event);
+               return ERR_PTR(-EINVAL);
+       }

either remove the comment and make it clean.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to