aboutsummaryrefslogtreecommitdiffstats
path: root/rt-plot-cpu.h
blob: d7e1e574be6ba25b609416bbffb30d65a3afd969 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef __RT_PLOT_CPU_H
#define __RT_PLOT_CPU_H

struct rt_cpu_info {
	int			cpu;
	int			run_pid;
	unsigned long long	rt_run_time;
	unsigned long long	reg_run_time;
	gboolean 		fresh;
	char			*label;
};

const struct plot_callbacks rt_cpu_cb;

void rt_plot_labeled_cpu(struct graph_info *ginfo, int cpu, char *label);
void rt_plot_cpu(struct graph_info *ginfo, int cpu);
void rt_plot_cpus_plotted(struct graph_info *ginfo,
			  gboolean *all_cpus, guint64 **cpu_mask);
void rt_plot_cpus_update_callback(gboolean accept,
				  gboolean all_cpus,
				  guint64 *selected_cpu_mask,
				  gpointer data);
void rt_plot_init_cpus(struct graph_info *ginfo, int cpus);

#endif