Home | History | Annotate | Download | only in dmtracedump

Lines Matching defs:fp

306 void write2LE(FILE* fp, uint16_t val) {
307 putc(val & 0xff, fp);
308 putc(val >> 8, fp);
311 void write4LE(FILE* fp, uint32_t val) {
312 putc(val & 0xff, fp);
313 putc((val >> 8) & 0xff, fp);
314 putc((val >> 16) & 0xff, fp);
315 putc((val >> 24) & 0xff, fp);
318 void write8LE(FILE* fp, uint64_t val) {
319 putc(val & 0xff, fp);
320 putc((val >> 8) & 0xff, fp);
321 putc((val >> 16) & 0xff, fp);
322 putc((val >> 24) & 0xff, fp);
323 putc((val >> 32) & 0xff, fp);
324 putc((val >> 40) & 0xff, fp);
325 putc((val >> 48) & 0xff, fp);
326 putc((val >> 56) & 0xff, fp);
398 FILE* fp = fopen(traceFileName, "w");
399 if (fp == nullptr) {
403 writeKeys(fp);
404 writeDataHeader(fp);
405 writeDataRecords(fp);
406 fclose(fp);