2 * Copyright (c) 2010 Stanislav Kozina
3 * Copyright (c) 2010 Martin Decky
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
10 * - Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * - Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * - The name of the author may not be used to endorse or promote products
16 * derived from this software without specific prior written permission.
18 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 #define FRACTION_TO_FLOAT(float, a, b) \
44 (float).upper = (a); \
45 (float).lower = (b); \
58 extern screen_mode_t screen_mode
;
85 FIELD_UINT_SUFFIX_BIN
,
86 FIELD_UINT_SUFFIX_DEC
,
109 const column_t
*columns
;
129 perc_cpu_t
*cpus_perc
;
133 perc_task_t
*tasks_perc
;
135 size_t threads_count
;
136 stats_thread_t
*threads
;
138 size_t exceptions_count
;
139 stats_exc_t
*exceptions
;
140 perc_exc_t
*exceptions_perc
;
142 stats_physmem_t
*physmem
;
144 uint64_t *ucycles_diff
;
145 uint64_t *kcycles_diff
;
146 uint64_t *ecycles_diff
;
147 uint64_t *ecount_diff
;