Re: [RFC][PATCH v1 06/15] perf: export tracepoint events viasysfs: iwlwifi and iwlwifi_io

From: Steven Rostedt
Date: Thu Jul 22 2010 - 23:57:57 EST


On Fri, 2010-07-23 at 10:45 +0800, Lin Ming wrote:
> On Fri, 2010-07-23 at 10:14 +0800, Steven Rostedt wrote:

> Does this "TRACE_CATEGORY()" can help to specify different event
> attribute value?
>
> /sys/devices/pci0000:00/0000:00:02.0/drm/card0/events
> |-- i915_gem_object_bind
> | |-- config
> | |-- type
> | |-- filter ==> filter for card0
>
> /sys/devices/pci0000:00/0000:00:02.0/drm/card1/events
> |-- i915_gem_object_bind
> | |-- config
> | |-- type
> | |-- filter ==> filter for card1
>
> In above example, the values of "config" and "type" are same.
> But the values of "filter" are different.

No, it does not make a single event with different atts. It is just a
way to group events.

What you are showing is two events with the same name under two
different groups. But there still only exists one event (the place that
trace_i915_gem_object_bind() is located).

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/