perf hists: Split hists_stats from events_stats
[linux-2.6-microblaze.git] / tools / perf / util / events_stats.h
index 859cb34..e271c80 100644 (file)
  * all struct perf_record_lost_samples.lost fields reported.
  *
  * The total_period is needed because by default auto-freq is used, so
- * multipling nr_events[PERF_EVENT_SAMPLE] by a frequency isn't possible to get
+ * multiplying nr_events[PERF_EVENT_SAMPLE] by a frequency isn't possible to get
  * the total number of low level events, it is necessary to to sum all struct
  * perf_record_sample.period and stash the result in total_period.
  */
 struct events_stats {
-       u64 total_period;
-       u64 total_non_filtered_period;
        u64 total_lost;
        u64 total_lost_samples;
        u64 total_aux_lost;
        u64 total_aux_partial;
        u64 total_invalid_chains;
        u32 nr_events[PERF_RECORD_HEADER_MAX];
-       u32 nr_non_filtered_samples;
        u32 nr_lost_warned;
        u32 nr_unknown_events;
        u32 nr_invalid_chains;
@@ -44,6 +41,13 @@ struct events_stats {
        u32 nr_proc_map_timeout;
 };
 
+struct hists_stats {
+       u64 total_period;
+       u64 total_non_filtered_period;
+       u32 nr_samples;
+       u32 nr_non_filtered_samples;
+};
+
 void events_stats__inc(struct events_stats *stats, u32 type);
 
 size_t events_stats__fprintf(struct events_stats *stats, FILE *fp);