|
@@ -378,15 +378,15 @@ event_format_read(struct file *filp, char __user *ubuf, size_t cnt,
|
|
char *buf;
|
|
char *buf;
|
|
int r;
|
|
int r;
|
|
|
|
|
|
|
|
+ if (*ppos)
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
s = kmalloc(sizeof(*s), GFP_KERNEL);
|
|
s = kmalloc(sizeof(*s), GFP_KERNEL);
|
|
if (!s)
|
|
if (!s)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|
|
trace_seq_init(s);
|
|
trace_seq_init(s);
|
|
|
|
|
|
- if (*ppos)
|
|
|
|
- return 0;
|
|
|
|
-
|
|
|
|
/* If any of the first writes fail, so will the show_format. */
|
|
/* If any of the first writes fail, so will the show_format. */
|
|
|
|
|
|
trace_seq_printf(s, "name: %s\n", call->name);
|
|
trace_seq_printf(s, "name: %s\n", call->name);
|