MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / open_files

Function open_files

extra/resolve_stack_dump.c:157–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155
156
157static void open_files()
158{
159 fp_out = stdout;
160 fp_dump = stdin;
161
162 if (dump_fname && !(fp_dump = my_fopen(dump_fname, O_RDONLY, MYF(MY_WME))))
163 die("Could not open %s", dump_fname);
164 /* if name not given, assume stdin*/
165
166 if (!sym_fname)
167 die("Please run nm --numeric-sort on mysqld binary that produced stack \
168trace dump and specify the path to it with -s or --symbols-file");
169 if (!(fp_sym = my_fopen(sym_fname, O_RDONLY, MYF(MY_WME))))
170 die("Could not open %s", sym_fname);
171
172}
173
174static uchar hex_val(char c)
175{

Callers 1

mainFunction · 0.85

Calls 2

my_fopenFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected