Lines Matching refs:ctx
84 assert(!ctx && "Perf context should not be initialized at this point");
86 ctx = intel_perf_new_context(ralloc_ctx);
87 intel_perf_init_context(ctx, cfg, nullptr, nullptr, nullptr, &devinfo, 0, drm_fd);
91 return intel_perf_open(ctx,
102 if (ctx) {
103 intel_perf_close(ctx, nullptr);
104 ctx = nullptr;
110 assert(ctx && "Perf context was not open");
111 return intel_perf_oa_stream_ready(ctx);
116 assert(ctx && "Perf context was not open");
117 return intel_perf_read_oa_stream(ctx, buf, bytes);