projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update
[lttv.git]
/
tests
/
kernel
/
probe-example.c
diff --git
a/tests/kernel/probe-example.c
b/tests/kernel/probe-example.c
index 5e7093c71acab88172e06cb95674abd4d187cbdf..e3d9a300551c9f871613f15aac5f9ecb40b59f47 100644
(file)
--- a/
tests/kernel/probe-example.c
+++ b/
tests/kernel/probe-example.c
@@
-29,19
+29,14
@@
void probe_subsystem_event(const struct __mark_marker_c *mdata,
/* Declare args */
unsigned int value;
const char *mystr;
/* Declare args */
unsigned int value;
const char *mystr;
- int task_size, task_alignment;
- struct task_struct *task;
/* Assign args */
va_start(ap, format);
value = va_arg(ap, typeof(value));
mystr = va_arg(ap, typeof(mystr));
/* Assign args */
va_start(ap, format);
value = va_arg(ap, typeof(value));
mystr = va_arg(ap, typeof(mystr));
- task_size = va_arg(ap, typeof(task_size));
- task_alignment = va_arg(ap, typeof(task_alignment));
- task = va_arg(ap, typeof(task));
/* Call printk */
/* Call printk */
- printk("Value %u, string %s
, current ptr %p\n", value, mystr, current
);
+ printk("Value %u, string %s
\n", value, mystr
);
/* or count, check rights, serialize data in a buffer */
/* or count, check rights, serialize data in a buffer */
@@
-60,7
+55,7
@@
void probe_subsystem_eventb(const struct __mark_marker_c *mdata,
static struct probe_data probe_array[] =
{
{ .name = "subsystem_event",
static struct probe_data probe_array[] =
{
{ .name = "subsystem_event",
- .format = "%d %s
%*.*r
",
+ .format = "%d %s",
.probe_func = probe_subsystem_event },
{ .name = "subsystem_eventb",
.format = MARK_NOARGS,
.probe_func = probe_subsystem_event },
{ .name = "subsystem_eventb",
.format = MARK_NOARGS,
This page took
0.025899 seconds
and
4
git commands to generate.