mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 09:31:50 +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>
84 lines
2.1 KiB
C
84 lines
2.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2015-2016, Intel Corporation. All rights reserved.
|
|
* Intel Management Engine Interface (Intel MEI) Linux driver
|
|
*/
|
|
|
|
#if !defined(_MEI_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _MEI_TRACE_H_
|
|
|
|
#include <linux/stringify.h>
|
|
#include <linux/types.h>
|
|
#include <linux/tracepoint.h>
|
|
|
|
#include <linux/device.h>
|
|
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM mei
|
|
|
|
TRACE_EVENT(mei_reg_read,
|
|
TP_PROTO(const struct device *dev, const char *reg, u32 offs, u32 val),
|
|
TP_ARGS(dev, reg, offs, val),
|
|
TP_STRUCT__entry(
|
|
__string(dev, dev_name(dev))
|
|
__field(const char *, reg)
|
|
__field(u32, offs)
|
|
__field(u32, val)
|
|
),
|
|
TP_fast_assign(
|
|
__assign_str(dev, dev_name(dev));
|
|
__entry->reg = reg;
|
|
__entry->offs = offs;
|
|
__entry->val = val;
|
|
),
|
|
TP_printk("[%s] read %s:[%#x] = %#x",
|
|
__get_str(dev), __entry->reg, __entry->offs, __entry->val)
|
|
);
|
|
|
|
TRACE_EVENT(mei_reg_write,
|
|
TP_PROTO(const struct device *dev, const char *reg, u32 offs, u32 val),
|
|
TP_ARGS(dev, reg, offs, val),
|
|
TP_STRUCT__entry(
|
|
__string(dev, dev_name(dev))
|
|
__field(const char *, reg)
|
|
__field(u32, offs)
|
|
__field(u32, val)
|
|
),
|
|
TP_fast_assign(
|
|
__assign_str(dev, dev_name(dev));
|
|
__entry->reg = reg;
|
|
__entry->offs = offs;
|
|
__entry->val = val;
|
|
),
|
|
TP_printk("[%s] write %s[%#x] = %#x",
|
|
__get_str(dev), __entry->reg, __entry->offs, __entry->val)
|
|
);
|
|
|
|
TRACE_EVENT(mei_pci_cfg_read,
|
|
TP_PROTO(const struct device *dev, const char *reg, u32 offs, u32 val),
|
|
TP_ARGS(dev, reg, offs, val),
|
|
TP_STRUCT__entry(
|
|
__string(dev, dev_name(dev))
|
|
__field(const char *, reg)
|
|
__field(u32, offs)
|
|
__field(u32, val)
|
|
),
|
|
TP_fast_assign(
|
|
__assign_str(dev, dev_name(dev));
|
|
__entry->reg = reg;
|
|
__entry->offs = offs;
|
|
__entry->val = val;
|
|
),
|
|
TP_printk("[%s] pci cfg read %s:[%#x] = %#x",
|
|
__get_str(dev), __entry->reg, __entry->offs, __entry->val)
|
|
);
|
|
|
|
#endif /* _MEI_TRACE_H_ */
|
|
|
|
/* This part must be outside protection */
|
|
#undef TRACE_INCLUDE_PATH
|
|
#undef TRACE_INCLUDE_FILE
|
|
#define TRACE_INCLUDE_PATH .
|
|
#define TRACE_INCLUDE_FILE mei-trace
|
|
#include <trace/define_trace.h>
|