diff options
author | Koan-Sin Tan <freedom.tan@linaro.org> | 2014-11-27 17:10:47 +0800 |
---|---|---|
committer | Tuukka Tikkanen <tuukka.tikkanen@linaro.org> | 2014-11-28 05:11:18 +0200 |
commit | db63259a01cb3c88b82dbecddd48a2c166c84e20 (patch) | |
tree | c86902bcdc3f2d1b5d66363e44e0561a21b97512 /topology.h | |
parent | 262e24b0d2136e8c3ee847bf65f6527f27973730 (diff) |
add code to handle different output formats
The goals of this patch are
1) to support different report formats (e.g., text, csv, gnuplot
commands),
2) to support different report modes (e.g., single run stats,
histograms, comparison), and
3) without cluttering the main program code with vast amounts of
conditional output code in primary processing loop.
This patch implements report output via an "report operations
structure" (struct output_ops) pointed to from options structure.
Clutter in main source file has been reduced by moving the default
report generation functions to separate report format specific source
file and utils.c.
Signed-off-by: Koan-Sin Tan <freedom.tan@linaro.org>
Signed-off-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
Diffstat (limited to 'topology.h')
-rw-r--r-- | topology.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -66,7 +66,7 @@ extern int release_cpu_topo_info(void); extern int output_cpu_topo_info(FILE *f); extern int establish_idledata_to_topo(struct cpuidle_datas *datas); extern int release_cpu_topo_cstates(void); -extern int dump_cpu_topo_info(int (*dump)(void *, char *), int pstate); +extern int dump_cpu_topo_info(struct report_ops *ops, void *report_data, int (*dump)(struct report_ops *, void *, char *, void *), int cstate); extern struct cpuidle_cstates *core_cluster_data(struct cpu_core *s_core); extern struct cpuidle_cstates * |