aboutsummaryrefslogtreecommitdiffstats
path: root/trace-plot-cpu.c
diff options
context:
space:
mode:
authorJonathan <hermanjl@hermanjl-Aspire-5553G.(none)>2012-03-05 18:00:39 -0500
committerJonathan <hermanjl@hermanjl-Aspire-5553G.(none)>2012-03-05 18:00:39 -0500
commit61266395ff4f371933c104cff6671aae7f43c3fd (patch)
tree4e0c1bf15015a80a57db728c5857005234481f4b /trace-plot-cpu.c
parent8bcd73ddae5d74fb9b2b8aaedd3aa6a39ef3f75d (diff)
rt-graph: real-time tasks can be added / removed from the graph
Currently they copy the functionality of regular task.
Diffstat (limited to 'trace-plot-cpu.c')
-rw-r--r--trace-plot-cpu.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/trace-plot-cpu.c b/trace-plot-cpu.c
index 5dea225..c7a37f5 100644
--- a/trace-plot-cpu.c
+++ b/trace-plot-cpu.c
@@ -30,22 +30,6 @@ struct cpu_plot_info {
30 struct record *last_record; 30 struct record *last_record;
31}; 31};
32 32
33static gint hash_pid(gint val)
34{
35 /* idle always gets black */
36 if (!val)
37 return 0;
38
39 return trace_hash(val);
40}
41
42static void convert_nano(unsigned long long time, unsigned long *sec,
43 unsigned long *usec)
44{
45 *sec = time / 1000000000ULL;
46 *usec = (time / 1000) % 1000000;
47}
48
49static struct record *get_record_from_time(struct graph_info *ginfo, int cpu, 33static struct record *get_record_from_time(struct graph_info *ginfo, int cpu,
50 unsigned long long time) 34 unsigned long long time)
51{ 35{