File: trace.h

package info (click to toggle)
linux 6.12.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,673,568 kB
  • sloc: ansic: 25,888,630; asm: 268,782; sh: 136,481; python: 64,809; makefile: 55,668; perl: 38,052; xml: 19,270; cpp: 5,893; yacc: 4,923; lex: 2,939; awk: 1,592; sed: 28; ruby: 25
file content (54 lines) | stat: -rw-r--r-- 1,054 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* SPDX-License-Identifier: GPL-2.0 */
#undef TRACE_SYSTEM
#define TRACE_SYSTEM riscv

#if !defined(_TRACE_RISCV_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_RISCV_H

#include <linux/tracepoint.h>

TRACE_EVENT_CONDITION(sbi_call,
	TP_PROTO(int ext, int fid),
	TP_ARGS(ext, fid),
	TP_CONDITION(ext != SBI_EXT_HSM),

	TP_STRUCT__entry(
		__field(int, ext)
		__field(int, fid)
	),

	TP_fast_assign(
		__entry->ext = ext;
		__entry->fid = fid;
	),

	TP_printk("ext=0x%x fid=%d", __entry->ext, __entry->fid)
);

TRACE_EVENT_CONDITION(sbi_return,
	TP_PROTO(int ext, long error, long value),
	TP_ARGS(ext, error, value),
	TP_CONDITION(ext != SBI_EXT_HSM),

	TP_STRUCT__entry(
		__field(long, error)
		__field(long, value)
	),

	TP_fast_assign(
		__entry->error = error;
		__entry->value = value;
	),

	TP_printk("error=%ld value=0x%lx", __entry->error, __entry->value)
);

#endif /* _TRACE_RISCV_H */

#undef TRACE_INCLUDE_PATH
#undef TRACE_INCLUDE_FILE

#define TRACE_INCLUDE_PATH asm
#define TRACE_INCLUDE_FILE trace

#include <trace/define_trace.h>