[PATCH v3] drm: Funnel drm logs to tracepoints
Steven Rostedt
rostedt at goodmis.org
Fri Dec 13 16:54:36 UTC 2019
On Fri, 13 Dec 2019 11:47:03 -0500
Sean Paul <sean at poorly.run> wrote:
> > Why is there a separate trace event for each of these?
> >
>
> To make it easier on userspace to enable just a single drm category.
>
But trace events can easily be filtered. Say you have a field called
category, you could then just set in the trace event filter:
echo 'category == 1 || category == 5 || (category > 8 && category < 12)' > /sys/kernel/tracing/drm_print/drm_category_log/filter
echo 1 > /sys/kernel/tracing/drm_print/drm_category_log/enable
-- Steve
More information about the dri-devel
mailing list