mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:46:16 +00:00
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: Takashi Sakamoto <o-takashi@sakamocchi.jp>
This commit is contained in:
parent
f9a228364e
commit
1ccfd1a4c8
@ -1,5 +1,8 @@
|
||||
// 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>
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user