Lines Matching defs:file
4 * you may not use this file except in compliance with the License.
88 PLUGIN_LOGE("Invalid file %s or buffer %zu", path, fileStat.st_size);
100 PLUGIN_LOGE("Failed to read file %s errno:%d", path, errno);
117 PLUGIN_CHECK(fileBuf != NULL, return -1, "Failed to read file content %s", TRACE_CFG_PATH);
120 return -1, "Failed to parse json file %s", TRACE_CFG_PATH);
180 PLUGIN_CHECK(outfile != NULL, return false, "Failed to open file %s.", workspace->buffer);
334 // clear old trace file
336 PLUGIN_CHECK(fd >= 0, return false, "Failed to open file %s errno %d", workspace->buffer, errno);
385 PLUGIN_CHECK(traceFd >= 0, return, "Failed to open file %s errno %d", workspace->buffer, errno);
428 FILE *file = fopen(realPath, "wt+");
429 PLUGIN_CHECK(file != NULL, return false, "Error: opening %s, errno: %d", TRACE_MARKER_PATH, errno);
433 int ret = fprintf(file, "trace_event_clock_sync: realtime_ts=%" PRId64 "\n", realtime);
435 ret = fprintf(file, "trace_event_clock_sync: parent_ts=%f\n", parentTs);
438 (void)fclose(file);
494 PLUGIN_LOGE("Failed to open file '%s', err=%d", path, errno);