Lines Matching refs:mpstat_gld
169 tf->mpstat_gld = ptr; in alloc_mpstat_gld()
301 tf->mpstat_gld[i] = in setup_trace_file_graphs()
305 tf->mpstat_gld[i]->max = 100; in setup_trace_file_graphs()
471 add_mpstat_gld(time, sys, tf->mpstat_gld[i + MPSTAT_SYS]); in read_trace_events()
472 add_mpstat_gld(time, irq, tf->mpstat_gld[i + MPSTAT_IRQ]); in read_trace_events()
473 add_mpstat_gld(time, soft, tf->mpstat_gld[i + MPSTAT_SOFT]); in read_trace_events()
474 add_mpstat_gld(time, user, tf->mpstat_gld[i + MPSTAT_USER]); in read_trace_events()
475 add_mpstat_gld(time, iowait, tf->mpstat_gld[i + MPSTAT_IO]); in read_trace_events()
489 tf->mpstat_gld[MPSTAT_SYS]->max = max_sys; in read_trace_events()
490 tf->mpstat_gld[MPSTAT_IRQ]->max = max_irq; in read_trace_events()
491 tf->mpstat_gld[MPSTAT_SOFT]->max = max_soft; in read_trace_events()
492 tf->mpstat_gld[MPSTAT_USER]->max = max_user; in read_trace_events()
493 tf->mpstat_gld[MPSTAT_IO]->max = max_iowait;; in read_trace_events()
914 ymax = tf->mpstat_gld[gld_index]->max; in plot_cpu()
925 set_yticks(plot, num_yticks, 0, tf->mpstat_gld[gld_index]->max, ""); in plot_cpu()
931 if (tf->mpstat_gld == 0) in plot_cpu()
933 for (gld_i = tf->mpstat_gld[0]->min_seconds; in plot_cpu()
934 gld_i < tf->mpstat_gld[0]->stop_seconds; gld_i++) { in plot_cpu()
935 if (tf->mpstat_gld[gld_index]->data[gld_i].count) { in plot_cpu()
936 avg += (tf->mpstat_gld[gld_index]->data[gld_i].sum / in plot_cpu()
937 tf->mpstat_gld[gld_index]->data[gld_i].count); in plot_cpu()
940 avg /= tf->mpstat_gld[gld_index]->stop_seconds - in plot_cpu()
941 tf->mpstat_gld[gld_index]->min_seconds; in plot_cpu()
943 svg_line_graph(plot, tf->mpstat_gld[0], color, 0, 0); in plot_cpu()
947 struct graph_line_data *gld = tf->mpstat_gld[i * MPSTAT_GRAPHS + gld_index]; in plot_cpu()