mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
78c14b385c
The __assign_str macro has an unusual ending semicolon but the vast majority of uses of the macro already have semicolon termination. $ git grep -P '\b__assign_str\b' | wc -l 551 $ git grep -P '\b__assign_str\b.*;' | wc -l 480 Add semicolons to the __assign_str() uses without semicolon termination and all the other uses without semicolon termination via additional defines that are equivalent to __assign_str() with the eventual goal of removing the semicolon from the __assign_str() macro definition. Link: https://lore.kernel.org/lkml/1e068d21106bb6db05b735b4916bb420e6c9842a.camel@perches.com/ Link: https://lkml.kernel.org/r/48a056adabd8f70444475352f617914cef504a45.camel@perches.com Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
90 lines
1.7 KiB
C
90 lines
1.7 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM dma_fence
|
|
|
|
#if !defined(_TRACE_DMA_FENCE_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_DMA_FENCE_H
|
|
|
|
#include <linux/tracepoint.h>
|
|
|
|
struct dma_fence;
|
|
|
|
DECLARE_EVENT_CLASS(dma_fence,
|
|
|
|
TP_PROTO(struct dma_fence *fence),
|
|
|
|
TP_ARGS(fence),
|
|
|
|
TP_STRUCT__entry(
|
|
__string(driver, fence->ops->get_driver_name(fence))
|
|
__string(timeline, fence->ops->get_timeline_name(fence))
|
|
__field(unsigned int, context)
|
|
__field(unsigned int, seqno)
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__assign_str(driver, fence->ops->get_driver_name(fence));
|
|
__assign_str(timeline, fence->ops->get_timeline_name(fence));
|
|
__entry->context = fence->context;
|
|
__entry->seqno = fence->seqno;
|
|
),
|
|
|
|
TP_printk("driver=%s timeline=%s context=%u seqno=%u",
|
|
__get_str(driver), __get_str(timeline), __entry->context,
|
|
__entry->seqno)
|
|
);
|
|
|
|
DEFINE_EVENT(dma_fence, dma_fence_emit,
|
|
|
|
TP_PROTO(struct dma_fence *fence),
|
|
|
|
TP_ARGS(fence)
|
|
);
|
|
|
|
DEFINE_EVENT(dma_fence, dma_fence_init,
|
|
|
|
TP_PROTO(struct dma_fence *fence),
|
|
|
|
TP_ARGS(fence)
|
|
);
|
|
|
|
DEFINE_EVENT(dma_fence, dma_fence_destroy,
|
|
|
|
TP_PROTO(struct dma_fence *fence),
|
|
|
|
TP_ARGS(fence)
|
|
);
|
|
|
|
DEFINE_EVENT(dma_fence, dma_fence_enable_signal,
|
|
|
|
TP_PROTO(struct dma_fence *fence),
|
|
|
|
TP_ARGS(fence)
|
|
);
|
|
|
|
DEFINE_EVENT(dma_fence, dma_fence_signaled,
|
|
|
|
TP_PROTO(struct dma_fence *fence),
|
|
|
|
TP_ARGS(fence)
|
|
);
|
|
|
|
DEFINE_EVENT(dma_fence, dma_fence_wait_start,
|
|
|
|
TP_PROTO(struct dma_fence *fence),
|
|
|
|
TP_ARGS(fence)
|
|
);
|
|
|
|
DEFINE_EVENT(dma_fence, dma_fence_wait_end,
|
|
|
|
TP_PROTO(struct dma_fence *fence),
|
|
|
|
TP_ARGS(fence)
|
|
);
|
|
|
|
#endif /* _TRACE_DMA_FENCE_H */
|
|
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|