projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf script: Add callindent option
[linux-2.6-block.git]
/
tools
/
perf
/
util
/
thread-stack.c
diff --git
a/tools/perf/util/thread-stack.c
b/tools/perf/util/thread-stack.c
index 825086aa9a08685303c08cddb36823620fa65c9e..d3301529f6a762a17e5e390f8fd53286b5fc6145 100644
(file)
--- a/
tools/perf/util/thread-stack.c
+++ b/
tools/perf/util/thread-stack.c
@@
-616,3
+616,10
@@
int thread_stack__process(struct thread *thread, struct comm *comm,
return err;
}
+
+size_t thread_stack__depth(struct thread *thread)
+{
+ if (!thread->ts)
+ return 0;
+ return thread->ts->cnt;
+}