Lines Matching refs:sConfig
37 static void read_line(PERF_Config *sConfig, char const *line, char const *tag);
44 void PERF_Config_Init(PERF_Config *sConfig)
48 sConfig->mask = 0;
51 sConfig->trace_file = NULL;
52 sConfig->delayed_open = 0;
53 sConfig->buffer_size = 65536;
56 sConfig->debug = FALSE;
57 sConfig->detailed_debug = FALSE;
58 sConfig->csv = 1;
59 sConfig->log_file = NULL;
62 sConfig->replay_file = strdup("STDOUT");
65 sConfig->realtime = 0;
66 sConfig->rt_granularity = 1;
67 sConfig->rt_summary = 1;
68 sConfig->rt_debug = 0;
69 sConfig->rt_detailed = 0;
70 sConfig->rt_file = strdup("STDERR");
74 void PERF_Config_Release(PERF_Config *sConfig)
77 if (sConfig->trace_file)
79 free(sConfig->trace_file);
80 sConfig->trace_file = NULL;
82 if (sConfig->log_file)
84 free(sConfig->log_file);
85 sConfig->log_file = NULL;
87 if (sConfig->replay_file)
89 free(sConfig->replay_file);
90 sConfig->replay_file = NULL;
92 if (sConfig->rt_file)
94 free(sConfig->rt_file);
95 sConfig->rt_file = NULL;
176 void PERF_Config_Read(PERF_Config *sConfig, char const *tag)
182 if (sConfig)
206 read_line(sConfig, line, tag);