#undef TRACE_SYSTEM #define TRACE_SYSTEM printk #if !defined(_TRACE_PRINTK_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_PRINTK_H #include 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( /* * Each trace entry is printed in a new line. * If the msg finishes with '\n', cut it off * to avoid blank lines in the trace. */ if ((len > 0) && (text[len-1] == '\n')) len -= 1; memcpy(__get_str(msg), text, len); __get_str(msg)[len] = 0; ), TP_printk("%s", __get_str(msg)) ); #endif /* _TRACE_PRINTK_H */ /* This part must be outside protection */ #include img src='/cgit.png' alt='cgit logo'/> index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2016-11-30 17:46:23 -0700
committerJonathan Corbet <corbet@lwn.net>2016-11-30 17:46:23 -0700
commit2fc9254d0c473e26a668d8efc75dd71146a07852 (patch)
tree70a341f1fe80735c59003f682da0bfef5d1e162e /Documentation/acpi/DSD-properties-rules.txt
parentc3396656666c2c98db306dc91c480d9fbde35cc9 (diff)
parent326bc876fed4fad2f46dd1be637e90e1b525ee8c (diff)
Merge branch 'silvio' into docs-next
Diffstat (limited to 'Documentation/acpi/DSD-properties-rules.txt')