aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2016-10-17 15:44:41 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-10-24 10:07:45 -0400
commit1f36946019ee6a24bbbf807eb7e9ba6d4912793b (patch)
tree8706baa462942c8d86485fc0cfba2fdce4bfa03c /tools/perf
parent34b753007d646482a4125a7095e1d1986d395f95 (diff)
perf trace: Remove thread_trace->exit_time
Not used at all, we need just the entry_time to calculate the syscall duration. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-js6r09zdwlzecvaei7t4l3vd@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-trace.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index 0bae454e8efa..c72a92c6d9c4 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -843,7 +843,6 @@ static size_t fprintf_duration(unsigned long t, FILE *fp)
843 */ 843 */
844struct thread_trace { 844struct thread_trace {
845 u64 entry_time; 845 u64 entry_time;
846 u64 exit_time;
847 bool entry_pending; 846 bool entry_pending;
848 unsigned long nr_events; 847 unsigned long nr_events;
849 unsigned long pfmaj, pfmin; 848 unsigned long pfmaj, pfmin;
@@ -1571,8 +1570,6 @@ static int trace__sys_exit(struct trace *trace, struct perf_evsel *evsel,
1571 ++trace->stats.vfs_getname; 1570 ++trace->stats.vfs_getname;
1572 } 1571 }
1573 1572
1574 ttrace->exit_time = sample->time;
1575
1576 if (ttrace->entry_time) { 1573 if (ttrace->entry_time) {
1577 duration = sample->time - ttrace->entry_time; 1574 duration = sample->time - ttrace->entry_time;
1578 if (trace__filter_duration(trace, duration)) 1575 if (trace__filter_duration(trace, duration))