projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tracing/boot: Fix to check the histogram control param is a leaf node
[linux-2.6-microblaze.git]
/
kernel
/
trace
/
trace_boot.c
diff --git
a/kernel/trace/trace_boot.c
b/kernel/trace/trace_boot.c
index
a6be48b
..
db6ee37
100644
(file)
--- a/
kernel/trace/trace_boot.c
+++ b/
kernel/trace/trace_boot.c
@@
-385,11
+385,11
@@
trace_boot_compose_hist_cmd(struct xbc_node *hnode, char *buf, size_t size)
}
/* Histogram control attributes (mutual exclusive) */
}
/* Histogram control attributes (mutual exclusive) */
- if (xbc_node_find_
child(hnode, "pause"
))
+ if (xbc_node_find_
value(hnode, "pause", NULL
))
append_printf(&buf, end, ":pause");
append_printf(&buf, end, ":pause");
- else if (xbc_node_find_
child(hnode, "continue"
))
+ else if (xbc_node_find_
value(hnode, "continue", NULL
))
append_printf(&buf, end, ":continue");
append_printf(&buf, end, ":continue");
- else if (xbc_node_find_
child(hnode, "clear"
))
+ else if (xbc_node_find_
value(hnode, "clear", NULL
))
append_printf(&buf, end, ":clear");
/* Histogram handler and actions */
append_printf(&buf, end, ":clear");
/* Histogram handler and actions */