[PATCH v5 2/2] Add the fp_selection_helper to set the fp for print functions

2017-10-25 Thread yuzhoujian
This patch will make all print functions receive the fp, add the fp_selection_helper function to select the fp(stdout or the dump_event fp) and open the dump file for all print functions. When the perf script is over, closes the dump_event file and calculates its size. Changes since v4: - the

[PATCH v5 2/2] Add the fp_selection_helper to set the fp for print functions

2017-10-25 Thread yuzhoujian
This patch will make all print functions receive the fp, add the fp_selection_helper function to select the fp(stdout or the dump_event fp) and open the dump file for all print functions. When the perf script is over, closes the dump_event file and calculates its size. Changes since v4: - the