perf script: Add callindent option
[linux-2.6-block.git] / tools / perf / util / thread-stack.c
index 825086aa9a08685303c08cddb36823620fa65c9e..d3301529f6a762a17e5e390f8fd53286b5fc6145 100644 (file)
@@ -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;
+}