Lines Matching refs:path
34 * the trace path and the sink configuration. The event data is accessible
40 * for stopping the trace path. The event_data is guaranteed to stay alive
43 * to make sure we can disable the trace path.
142 return per_cpu_ptr(data->path, cpu);
241 free_percpu(event_data->path);
263 * Each CPU has a single path between source and destination. As such
264 * allocate an array using CPU numbers as indexes. That way a path
270 event_data->path = alloc_percpu(struct list_head *);
272 if (!event_data->path) {
342 * Setup the path for each CPU in a trace session. We try to build
343 * trace path for each CPU in the mask. If we don't find an ETM
344 * for the CPU or fail to build a path, we clear the CPU from the
349 struct list_head *path;
393 * Building a path doesn't enable it, it simply builds a
395 * referenced later when the path is actually needed.
397 path = coresight_build_path(csdev, sink);
398 if (IS_ERR(path)) {
407 coresight_release_path(path);
411 *etm_event_cpu_path_ptr(event_data, cpu) = path;
454 struct list_head *path;
487 path = etm_event_cpu_path(event_data, cpu);
489 sink = coresight_get_sink(path);
493 /* Nothing will happen without a path */
494 if (coresight_enable_path(path, CS_MODE_PERF, handle))
522 coresight_disable_path(path);
546 struct list_head *path;
583 path = etm_event_cpu_path(event_data, cpu);
584 if (!path)
587 sink = coresight_get_sink(path);
630 /* Disabling the path make its elements available to other sessions */
631 coresight_disable_path(path);