Lines Matching refs:pph
880 int svg_io_graph_movie_array(struct plot *plot, struct pid_plot_history *pph) in svg_io_graph_movie_array() argument
887 for (i = 0; i < pph->num_used; i++) { in svg_io_graph_movie_array()
888 cell_index = pph->history[i]; in svg_io_graph_movie_array()
891 svg_add_io(plot->fd, movie_row, movie_col, 4, 4, pph->color); in svg_io_graph_movie_array()
903 int svg_io_graph_movie_array_spindle(struct plot *plot, struct pid_plot_history *pph) in svg_io_graph_movie_array_spindle() argument
943 cells_per_circle = pph->history_max / num_circles; in svg_io_graph_movie_array_spindle()
946 for (i = 0; i < pph->num_used; i++) { in svg_io_graph_movie_array_spindle()
947 cell_index = pph->history[i]; in svg_io_graph_movie_array_spindle()
960 radius, radius, pph->color); in svg_io_graph_movie_array_spindle()
967 static int add_plot_history(struct pid_plot_history *pph, double val) in add_plot_history() argument
969 if (pph->num_used == pph->history_len) { in add_plot_history()
970 pph->history_len += 4096; in add_plot_history()
971 pph->history = realloc(pph->history, in add_plot_history()
972 pph->history_len * sizeof(double)); in add_plot_history()
973 if (!pph->history) { in add_plot_history()
978 pph->history[pph->num_used++] = val; in add_plot_history()
982 int svg_io_graph_movie(struct graph_dot_data *gdd, struct pid_plot_history *pph, int col) in svg_io_graph_movie() argument
995 pph->history_max = (gdd->max_offset - gdd->min_offset + 1) / movie_blocks_per_cell; in svg_io_graph_movie()
1012 add_plot_history(pph, cell_index); in svg_io_graph_movie()