Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
xenomai
Commits
18eb7608
Commit
18eb7608
authored
Nov 03, 2015
by
Philippe Gerum
Browse files
cobalt/kernel: fixup for v3.19+ (trace_seq)
parent
4d5108b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
kernel/cobalt/include/asm-generic/xenomai/wrappers.h
View file @
18eb7608
...
...
@@ -116,6 +116,16 @@ devm_hwmon_device_register_with_groups(struct device *dev, const char *name,
#error "Xenomai/cobalt requires Linux kernel 3.10 or above"
#endif
/* < 3.10 */
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0)
#include <linux/trace_seq.h>
static
inline
unsigned
char
*
trace_seq_buffer_ptr
(
struct
trace_seq
*
s
)
{
return
s
->
buffer
+
s
->
len
;
}
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
#define user_msghdr msghdr
#endif
...
...
kernel/cobalt/trace/cobalt-posix.h
View file @
18eb7608
...
...
@@ -92,7 +92,7 @@ DECLARE_EVENT_CLASS(syscall_exit,
#define cobalt_print_sched_params(__policy, __p_ex) \
({ \
const char *__ret =
p->buffer + p->len;
\
const
unsigned
char *__ret =
trace_seq_buffer_ptr(p);
\
switch (__policy) { \
case SCHED_QUOTA: \
trace_seq_printf(p, "priority=%d, group=%d", \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment