4 * Copyright (C) 2008 Eduardo Valentin <edubezval@gmail.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
26 #define task_res_use(t, i) (t.resources[i] * t.computation)
27 #define precedence_influency(t, w) (ceil((w + t.Ij) / t.deadline) * \
29 #define response(t) (t.Ip + t.Ij)
45 int *resource_priorities
;
50 int summary
:1; /* print a summary in the end */
51 int tabular
:1; /* print a summary in one line */
52 int verbose
:1; /* verbose execution */
53 int list
:1; /* list samples */
54 int best_start
:1; /* comput best start point */
55 int jump_samples
:1; /* jump useless samples */
56 int best_initial_limits
:1; /* compute best initial freq limits */
69 int compute_initial_limits(struct task_set tset
, struct freq_set freqs
,
70 struct run_info runtime
, int **start_limits
);
71 void compute_sample_analysis(struct task_set tset
, struct res_set
*res
,
72 struct run_info runtime
);
73 int enumerate_samples(struct task_set tset
, struct freq_set freqs
,
74 struct res_set
*res
, int *limits
,
75 struct run_info runtime
, struct results
*stat
);
76 int enumeration_init(struct task_set
*tset
, struct freq_set
*freqs
,
80 int enumeration_cleanup(struct task_set
*tset
, struct freq_set
*freqs
,