Lines Matching refs:ctx
74 struct event_pipe_ctx *ctx = private_data;
75 int idx = ctx->all_cpus ? cpu : ctx->idx;
129 struct event_pipe_ctx ctx = {
158 ctx.cpu = strtoul(*argv, &endptr, 0);
169 ctx.idx = strtoul(*argv, &endptr, 0);
181 ctx.all_cpus = false;
184 if (!ctx.all_cpus) {
185 if (ctx.idx == -1 || ctx.cpu == -1) {
190 ctx.cpu = 0;
191 ctx.idx = 0;
196 opts.ctx = &ctx;
197 opts.cpu_cnt = ctx.all_cpus ? 0 : 1;
198 opts.cpus = &ctx.cpu;
199 opts.map_keys = &ctx.idx;