aboutsummaryrefslogtreecommitdiff
path: root/ops_tail.c
AgeCommit message (Collapse)Author
2015-01-05Idlestat: Update copyright boilerplates and bump version to 0.5Tuukka Tikkanen
Many of the source files were missing copyright headers. Headers have been added to all .c and .h files and existing headers were updates with contributor information. The version number was bumped up to 0.5 due to having many new features since last version number update. Signed-off-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
2014-12-12report_ops: Change way of referring to different report formatsTuukka Tikkanen
The initial implementation of default, boxless and csv report formats required making the report format ops structures global. Getoptions() referred directly to these structures when assigning the active ops pointer. This patch adds a name field to the structures and places pointers to the structures in a special segment so that the list of ops structures can be iterated like an array without having to create such an array explicitly. Getoptions() is modified to record only the name and main() will then obtain the actual structure pointer by name. The ops array head and sentinel is combined into the same source files that have been used for trace file ops arrays. The files are renamed to ops_head.c and ops_tail.c. Command line options parsing now checks that there is only one specification of report format. Usage function lists the available formats. -C and -B are retained as shortcuts for -r csv and -r boxless, respectively. Signed-off-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>