iowatcher: Fix io line graphs at the edge of the X axis
[blktrace.git] / iowatcher / blkparse.h
index 3f3243076d1c545701c839405f782f38c42b27ce..a78a8b746ce683474f722297bd595ea38c8269e3 100644 (file)
@@ -41,6 +41,13 @@ struct trace {
        int found_issue;
        int found_completion;
        int found_queue;
+
+       char *mpstat_start;
+       char *mpstat_cur;
+       u64 mpstat_len;
+       int mpstat_fd;
+       int mpstat_seconds;
+       int mpstat_num_cpus;
 };
 
 static inline unsigned int MAJOR(unsigned int dev)
@@ -56,10 +63,10 @@ static inline unsigned int MINOR(unsigned int dev)
 void init_io_hash_table(void);
 struct trace *open_trace(char *filename);
 u64 find_last_time(struct trace *trace);
-u64 find_highest_offset(struct trace *trace);
+void find_highest_offset(struct trace *trace, u64 *max_ret, u64 *max_bank_ret,
+                        u64 *max_offset_ret);
 int filter_outliers(struct trace *trace, u64 max_offset,
                    u64 *yzoom_min, u64 *yzoom_max);
-
 void add_iop(struct trace *trace, struct graph_line_data *gld);
 void check_record(struct trace *trace);
 void add_completed_io(struct trace *trace,