aboutsummaryrefslogtreecommitdiffstats
path: root/rt-plot-task.h
blob: 9f031e97a8184924f2a218db7cab7a2caac4e054 (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
26
27
28
29
30
31
32
#ifndef __RT_PLOT_TASK_H
#define __RT_PLOT_TASK_H

#include "trace-plot-task.h"

struct rt_task_info {
	int			pid;
	unsigned long long	wcet;
	unsigned long long	period;

	/* For drawing squares */
	unsigned long long	run_time;
	int			run_cpu;
	unsigned long long	block_time;
	int			block_cpu;

	/* For managing state */
	int			last_job;

	/* Used to get around bugs(ish) */
	unsigned long long	first_rels[3];

	gboolean		params_found;
	gboolean		fresh;
	char			*label;
};

void rt_plot_task(struct graph_info *ginfo, int pid, int pos);
void rt_plot_task_plotted(struct graph_info *ginfo, gint **plotted);
void rt_plot_task_update_callback(gboolean accept, gint *selected,
				  gint *non_select, gpointer data);
#endif