提交 14a36ae7 编写于 作者: A Alex Elder 提交者: Greg Kroah-Hartman

greybus: tracing: assign "parent" id first

Most abstractions to be traced will have a sort of "parent" object
it is associated with, and an identifier for that parent is stored
with the as trace event data.  For example, the parent of a message
is the operation it's a part of, and the parent of an operation is
the connection it uses.

We'll arrange to define that parent id first in all events.  Most
abstractions already do this.  Move an interface's module id so it's
defined and assigned first.  The message traces are going to be
changed soon, so leave that one alone.
Signed-off-by: NAlex Elder <elder@linaro.org>
Reviewed-by: NViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
上级 c65fdf03
......@@ -168,8 +168,8 @@ DECLARE_EVENT_CLASS(gb_interface,
TP_ARGS(intf),
TP_STRUCT__entry(
__field(u8, id) /* Interface id */
__field(u8, module_id)
__field(u8, id) /* Interface id */
__field(u8, device_id)
__field(int, disconnected) /* bool */
__field(int, ejected) /* bool */
......@@ -178,8 +178,8 @@ DECLARE_EVENT_CLASS(gb_interface,
),
TP_fast_assign(
__entry->id = intf->interface_id;
__entry->module_id = intf->module->module_id;
__entry->id = intf->interface_id;
__entry->device_id = intf->device_id;
__entry->disconnected = intf->disconnected;
__entry->ejected = intf->ejected;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册