aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2014-01-06 13:43:02 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-01-13 08:06:23 -0500
commit98eafce6bda705529e90d33b7f23706b346a6c8a (patch)
tree06f8eeffddf97e6d4f850c2167e32205f90cdbbb
parent3ba4d2e1a8235d862657ded9f20b3170b477768b (diff)
perf trace: Pack 'struct trace'
Initial struct stats: /* size: 368, cachelines: 6, members: 24 */ /* sum members: 353, holes: 3, sum holes: 15 */ /* last cacheline: 48 bytes */ After reorg: [acme@ssdandy linux]$ pahole -C trace ~/bin/trace | tail -4 /* size: 360, cachelines: 6, members: 24 */ /* padding: 7 */ /* last cacheline: 40 bytes */ }; [acme@ssdandy linux]$ Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-6jimc80yu89qkx6zb8465s6t@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/builtin-trace.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index 399b4b91b456..4bd44aba343e 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -1160,26 +1160,27 @@ struct trace {
1160 struct record_opts opts; 1160 struct record_opts opts;
1161 struct machine *host; 1161 struct machine *host;
1162 u64 base_time; 1162 u64 base_time;
1163 bool full_time;
1164 FILE *output; 1163 FILE *output;
1165 unsigned long nr_events; 1164 unsigned long nr_events;
1166 struct strlist *ev_qualifier; 1165 struct strlist *ev_qualifier;
1167 bool not_ev_qualifier;
1168 bool live;
1169 const char *last_vfs_getname; 1166 const char *last_vfs_getname;
1170 struct intlist *tid_list; 1167 struct intlist *tid_list;
1171 struct intlist *pid_list; 1168 struct intlist *pid_list;
1169 double duration_filter;
1170 double runtime_ms;
1171 struct {
1172 u64 vfs_getname,
1173 proc_getname;
1174 } stats;
1175 bool not_ev_qualifier;
1176 bool live;
1177 bool full_time;
1172 bool sched; 1178 bool sched;
1173 bool multiple_threads; 1179 bool multiple_threads;
1174 bool summary; 1180 bool summary;
1175 bool summary_only; 1181 bool summary_only;
1176 bool show_comm; 1182 bool show_comm;
1177 bool show_tool_stats; 1183 bool show_tool_stats;
1178 double duration_filter;
1179 double runtime_ms;
1180 struct {
1181 u64 vfs_getname, proc_getname;
1182 } stats;
1183}; 1184};
1184 1185
1185static int trace__set_fd_pathname(struct thread *thread, int fd, const char *pathname) 1186static int trace__set_fd_pathname(struct thread *thread, int fd, const char *pathname)