Skip to contentSkip to conversation

perf trace: Remove thread_trace->exit_time

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Oct 24, 2016 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  1f36946019ee6a24bbbf807eb7e9ba6d4912793b
Gitweb:     http://git.kernel.org/tip/1f36946019ee6a24bbbf807eb7e9ba6d4912793b
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Mon, 17 Oct 2016 16:44:41 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Mon, 24 Oct 2016 11:07:45 -0300

perf trace: Remove thread_trace->exit_time

Not used at all, we need just the entry_time to calculate the syscall duration.

---
 tools/perf/builtin-trace.c | 3 ---
 1 file changed, 3 deletions(-)
tools/perf/builtin-trace.c +0 -3
index 0bae454..c72a92c 100644
@@ -843,7 +843,6 @@ static size_t fprintf_duration(unsigned long t, FILE *fp)
  */
 struct thread_trace {
 	u64		  entry_time;
-	u64		  exit_time;
 	bool		  entry_pending;
 	unsigned long	  nr_events;
 	unsigned long	  pfmaj, pfmin;
@@ -1571,8 +1570,6 @@ static int trace__sys_exit(struct trace *trace, struct perf_evsel *evsel,
 		++trace->stats.vfs_getname;
 	}
 
-	ttrace->exit_time = sample->time;
-
 	if (ttrace->entry_time) {
 		duration = sample->time - ttrace->entry_time;
 		if (trace__filter_duration(trace, duration))