Commit 1ccfd1a4 authored by Takashi Sakamoto's avatar Takashi Sakamoto
Browse files

firewire: core: arrangement header inclusion for tracepoints events

It is a bit inconvenient to put the relative path to local header from
tree-wide header.

This commit delegates the selection to include headers into users.

Link: https://lore.kernel.org/r/20240605235155.116468-11-o-takashi@sakamocchi.jp


Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
parent f9a22836
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (c) 2024 Takashi Sakamoto

#include <linux/types.h>
#include "packet-header-definitions.h"

#define CREATE_TRACE_POINTS
#include <trace/events/firewire.h>
+1 −1
Original line number Diff line number Diff line
@@ -29,8 +29,8 @@
#include <asm/byteorder.h>

#include "core.h"
#include <trace/events/firewire.h>
#include "packet-header-definitions.h"
#include <trace/events/firewire.h>

#define HEADER_DESTINATION_IS_BROADCAST(header) \
	((async_header_get_destination(header) & 0x3f) == 0x3f)
+2 −0
Original line number Diff line number Diff line
@@ -7,6 +7,8 @@
#ifndef _FIREWIRE_PACKET_HEADER_DEFINITIONS_H
#define _FIREWIRE_PACKET_HEADER_DEFINITIONS_H

#include <linux/types.h>

#define ASYNC_HEADER_QUADLET_COUNT		4

#define ASYNC_HEADER_Q0_DESTINATION_SHIFT	16
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@

#include <linux/firewire-constants.h>

#include "../../../drivers/firewire/packet-header-definitions.h"
// Some macros are defined in 'drivers/firewire/packet-header-definitions.h'.

// The content of TP_printk field is preprocessed, then put to the module binary.
#define ASYNC_HEADER_GET_DESTINATION(header)	\