trace-graph: Rename cpu references to plot references
Theres still variables that reference "cpu" when now they are
referencing plot interfaces.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
diff --git a/trace-graph.c b/trace-graph.c
index 27333d6..da095ae 100644
--- a/trace-graph.c
+++ b/trace-graph.c
@@ -48,13 +48,13 @@
#define PLOT_SIZE 10
#define PLOT_BOX_SIZE PLOT_SIZE
#define PLOT_GIVE 2
-#define PLOT_LINE(cpu) (80 * (cpu) + 80 + PLOT_SIZE)
-#define PLOT_TOP(cpu) (PLOT_LINE(cpu) - PLOT_SIZE * 2)
-#define PLOT_BOX_TOP(cpu) (PLOT_LINE(cpu) - PLOT_SIZE)
-#define PLOT_BOTTOM(cpu) (PLOT_LINE(cpu)-1)
-#define PLOT_BOX_BOTTOM(cpu) (PLOT_LINE(cpu))
-#define PLOT_SPACE(cpus) (80 * (cpus) + 80)
-#define PLOT_LABEL(cpu) (PLOT_TOP(cpu))
+#define PLOT_LINE(plot) (80 * (plot) + 80 + PLOT_SIZE)
+#define PLOT_TOP(plot) (PLOT_LINE(plot) - PLOT_SIZE * 2)
+#define PLOT_BOX_TOP(plot) (PLOT_LINE(plot) - PLOT_SIZE)
+#define PLOT_BOTTOM(plot) (PLOT_LINE(plot)-1)
+#define PLOT_BOX_BOTTOM(plot) (PLOT_LINE(plot))
+#define PLOT_SPACE(plots) (80 * (plots) + 80)
+#define PLOT_LABEL(plot) (PLOT_TOP(plot))
#define PLOT_X 5
static gint largest_plot_label = 0;
@@ -648,8 +648,8 @@
if (!ginfo->curr_pixmap)
return FALSE;
- update_with_backend(ginfo, ginfo->cpu_data_x, ginfo->cpu_data_y,
- ginfo->cpu_data_w, ginfo->cpu_data_h);
+ update_with_backend(ginfo, ginfo->plot_data_x, ginfo->plot_data_y,
+ ginfo->plot_data_w, ginfo->plot_data_h);
if (event->is_hint)
gdk_window_get_pointer(event->window, &x, &y, &state);
else {
@@ -862,10 +862,10 @@
if (y > view_start + height)
y -= height;
- ginfo->cpu_data_x = x;
- ginfo->cpu_data_y = y;
- ginfo->cpu_data_w = width;
- ginfo->cpu_data_h = height;
+ ginfo->plot_data_x = x;
+ ginfo->plot_data_y = y;
+ ginfo->plot_data_w = width;
+ ginfo->plot_data_h = height;
pix = gdk_pixmap_new(ginfo->draw->window,
width,
@@ -905,8 +905,8 @@
if (!ginfo->handle)
return FALSE;
- update_with_backend(ginfo, ginfo->cpu_data_x, ginfo->cpu_data_y,
- ginfo->cpu_data_w, ginfo->cpu_data_h);
+ update_with_backend(ginfo, ginfo->plot_data_x, ginfo->plot_data_y,
+ ginfo->plot_data_w, ginfo->plot_data_h);
if (event->is_hint)
gdk_window_get_pointer(event->window, &x, &y, &state);
else {
@@ -1225,8 +1225,8 @@
if (!ginfo->handle)
return FALSE;
- update_with_backend(ginfo, ginfo->cpu_data_x, ginfo->cpu_data_y,
- ginfo->cpu_data_w, ginfo->cpu_data_h);
+ update_with_backend(ginfo, ginfo->plot_data_x, ginfo->plot_data_y,
+ ginfo->plot_data_w, ginfo->plot_data_h);
return FALSE;
}
diff --git a/trace-graph.h b/trace-graph.h
index 7e4c789..22ae29b 100644
--- a/trace-graph.h
+++ b/trace-graph.h
@@ -159,13 +159,11 @@
struct filter_task *hide_tasks;
- /* Box info for CPU data info window */
- gint cpu_data_x;
- gint cpu_data_y;
- gint cpu_data_w;
- gint cpu_data_h;
-
- gint cpu_x; /* x coord where CPU numbers are drawn */
+ /* Box info for plot data info window */
+ gint plot_data_x;
+ gint plot_data_y;
+ gint plot_data_w;
+ gint plot_data_h;
};