FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
linux/include/trace/events/printk.h at master · fabgithub/linux · GitHub
fabgithub
linux
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
linux
/
include
/
trace
/
events
/
printk.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (20 loc) · 575 Bytes
Breadcrumbs
linux
/
include
/
trace
/
events
/
printk.h
Copy path
File metadata and controls
28 lines (20 loc) · 575 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#undef
TRACE_SYSTEM
#define
TRACE_SYSTEM
printk
#if
!defined(
_TRACE_PRINTK_H
)
||
defined(
TRACE_HEADER_MULTI_READ
)
#define
_TRACE_PRINTK_H
#include
<linux/tracepoint.h>
TRACE_EVENT
(
console
,
TP_PROTO
(
const
char
*
text
,
size_t
len
),
TP_ARGS
(
text
,
len
),
TP_STRUCT__entry
(
__dynamic_array
(
char
,
msg
,
len
+
1
)
),
TP_fast_assign
(
memcpy
(
__get_dynamic_array
(
msg
),
text
,
len
);
((
char
*
)
__get_dynamic_array
(
msg
))[
len
]
=
0
;
),
TP_printk
(
"%s"
,
__get_str
(
msg
))
);
#endif
/* _TRACE_PRINTK_H */
/* This part must be outside protection */
#include
<trace/define_trace.h>
Back
|
FazBrowse Home
|
New Git URL