Skip to content

Commit 57614c2

Browse files
committed
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/[email protected] Signed-off-by: Takashi Sakamoto <[email protected]>
1 parent aa5c5ed commit 57614c2

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

drivers/firewire/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Makefile for the Linux IEEE 1394 implementation
44
#
55

6-
firewire-core-y += core-card.o core-cdev.o core-device.o \
6+
firewire-core-y += core-trace.o core-card.o core-cdev.o core-device.o \
77
core-iso.o core-topology.o core-transaction.o
88
firewire-ohci-y += ohci.o
99
firewire-sbp2-y += sbp2.o

drivers/firewire/core-trace.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
2+
// Copyright (c) 2024 Takashi Sakamoto
3+
4+
#define CREATE_TRACE_POINTS
5+
#include <trace/events/firewire.h>

include/trace/events/firewire.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
2+
// Copyright (c) 2024 Takashi Sakamoto
3+
4+
#define TRACE_SYSTEM firewire
5+
6+
#if !defined(_FIREWIRE_TRACE_EVENT_H) || defined(TRACE_HEADER_MULTI_READ)
7+
#define _FIREWIRE_TRACE_EVENT_H
8+
9+
#include <linux/tracepoint.h>
10+
11+
// Placeholder for future use.
12+
13+
#endif // _FIREWIRE_TRACE_EVENT_H
14+
15+
#include <trace/define_trace.h>

0 commit comments

Comments
 (0)