aboutsummaryrefslogtreecommitdiff
path: root/topology.h
diff options
context:
space:
mode:
authorKoan-Sin Tan <freedom.tan@linaro.org>2014-11-27 17:10:47 +0800
committerTuukka Tikkanen <tuukka.tikkanen@linaro.org>2014-11-28 05:11:18 +0200
commitdb63259a01cb3c88b82dbecddd48a2c166c84e20 (patch)
treec86902bcdc3f2d1b5d66363e44e0561a21b97512 /topology.h
parent262e24b0d2136e8c3ee847bf65f6527f27973730 (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/topology.h b/topology.h
index d44bb45..0ddc7f1 100644
--- a/topology.h
+++ b/topology.h
@@ -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 *