mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
![Cai Huoqing](/assets/img/avatar_default.png)
use SPDX-License-Identifier instead of a verbose license text Link: https://lore.kernel.org/r/20210823042622.109-1-caihuoqing@baidu.com Signed-off-by: Cai Huoqing <caihuoqing@baidu.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
54 lines
1.4 KiB
C
54 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
|
|
/*
|
|
* Copyright(c) 2017 Intel Corporation.
|
|
*/
|
|
|
|
#if !defined(__HFI1_TRACE_MMU_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define __HFI1_TRACE_MMU_H
|
|
|
|
#include <linux/tracepoint.h>
|
|
#include <linux/trace_seq.h>
|
|
|
|
#include "hfi.h"
|
|
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM hfi1_mmu
|
|
|
|
DECLARE_EVENT_CLASS(hfi1_mmu_rb_template,
|
|
TP_PROTO(unsigned long addr, unsigned long len),
|
|
TP_ARGS(addr, len),
|
|
TP_STRUCT__entry(__field(unsigned long, addr)
|
|
__field(unsigned long, len)
|
|
),
|
|
TP_fast_assign(__entry->addr = addr;
|
|
__entry->len = len;
|
|
),
|
|
TP_printk("MMU node addr 0x%lx, len %lu",
|
|
__entry->addr,
|
|
__entry->len
|
|
)
|
|
);
|
|
|
|
DEFINE_EVENT(hfi1_mmu_rb_template, hfi1_mmu_rb_insert,
|
|
TP_PROTO(unsigned long addr, unsigned long len),
|
|
TP_ARGS(addr, len));
|
|
|
|
DEFINE_EVENT(hfi1_mmu_rb_template, hfi1_mmu_rb_search,
|
|
TP_PROTO(unsigned long addr, unsigned long len),
|
|
TP_ARGS(addr, len));
|
|
|
|
DEFINE_EVENT(hfi1_mmu_rb_template, hfi1_mmu_rb_remove,
|
|
TP_PROTO(unsigned long addr, unsigned long len),
|
|
TP_ARGS(addr, len));
|
|
|
|
DEFINE_EVENT(hfi1_mmu_rb_template, hfi1_mmu_mem_invalidate,
|
|
TP_PROTO(unsigned long addr, unsigned long len),
|
|
TP_ARGS(addr, len));
|
|
|
|
#endif /* __HFI1_TRACE_RC_H */
|
|
|
|
#undef TRACE_INCLUDE_PATH
|
|
#undef TRACE_INCLUDE_FILE
|
|
#define TRACE_INCLUDE_PATH .
|
|
#define TRACE_INCLUDE_FILE trace_mmu
|
|
#include <trace/define_trace.h>
|