diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2024-04-29 13:32:14 +0900 |
---|---|---|
committer | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2024-05-06 11:06:05 +0900 |
commit | 57614c28843d4ec34c12ca67dd11411396aab55d (patch) | |
tree | 53d401ed2e9956612d4686a29d1ce4bcafdda275 /drivers/firewire | |
parent | aa5c5edc08c5f92753e9182c6d5f9e8caa2466d9 (diff) | |
download | lwn-57614c28843d4ec34c12ca67dd11411396aab55d.tar.gz lwn-57614c28843d4ec34c12ca67dd11411396aab55d.zip |
firewire: core: add support for Linux kernel tracepoints
The Linux Kernel Tracepoints framework is enough useful to trace
packet data inbound to and outbound from core.
This commit adds firewire subsystem to use the framework.
Link: https://lore.kernel.org/r/20240429043218.609398-2-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/Makefile | 2 | ||||
-rw-r--r-- | drivers/firewire/core-trace.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/drivers/firewire/Makefile b/drivers/firewire/Makefile index bbde29a0fba6..013e1f2641bd 100644 --- a/drivers/firewire/Makefile +++ b/drivers/firewire/Makefile @@ -3,7 +3,7 @@ # Makefile for the Linux IEEE 1394 implementation # -firewire-core-y += core-card.o core-cdev.o core-device.o \ +firewire-core-y += core-trace.o core-card.o core-cdev.o core-device.o \ core-iso.o core-topology.o core-transaction.o firewire-ohci-y += ohci.o firewire-sbp2-y += sbp2.o diff --git a/drivers/firewire/core-trace.c b/drivers/firewire/core-trace.c new file mode 100644 index 000000000000..96cbd9d384dc --- /dev/null +++ b/drivers/firewire/core-trace.c @@ -0,0 +1,5 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +// Copyright (c) 2024 Takashi Sakamoto + +#define CREATE_TRACE_POINTS +#include <trace/events/firewire.h> |