Lines Matching full:trace

137 	struct remap_trace *trace = p->private;  in pre()  local
139 /* it doesn't make sense to have more than one active trace per cpu */ in pre()
149 my_trace->phys = addr - trace->probe.addr + trace->phys; in pre()
150 my_trace->map_id = trace->id; in pre()
225 struct remap_trace *trace = kmalloc(sizeof(*trace), GFP_KERNEL); in ioremap_trace_core() local
234 if (!trace) { in ioremap_trace_core()
239 *trace = (struct remap_trace) { in ioremap_trace_core()
245 .private = trace in ioremap_trace_core()
250 map.map_id = trace->id; in ioremap_trace_core()
254 kfree(trace); in ioremap_trace_core()
259 list_add_tail(&trace->list, &trace_list); in ioremap_trace_core()
261 register_kmmio_probe(&trace->probe); in ioremap_trace_core()
288 struct remap_trace *trace; in iounmap_trace_core() local
298 list_for_each_entry_safe(trace, tmp, &trace_list, list) { in iounmap_trace_core()
299 if ((unsigned long)addr == trace->probe.addr) { in iounmap_trace_core()
301 unregister_kmmio_probe(&trace->probe); in iounmap_trace_core()
302 list_del(&trace->list); in iounmap_trace_core()
303 found_trace = trace; in iounmap_trace_core()
344 struct remap_trace *trace; in clear_trace_list() local
353 list_for_each_entry(trace, &trace_list, list) { in clear_trace_list()
354 pr_notice("purging non-iounmapped trace @0x%08lx, size 0x%lx.\n", in clear_trace_list()
355 trace->probe.addr, trace->probe.len); in clear_trace_list()
357 unregister_kmmio_probe(&trace->probe); in clear_trace_list()
361 list_for_each_entry_safe(trace, tmp, &trace_list, list) { in clear_trace_list()
362 list_del(&trace->list); in clear_trace_list()
363 kfree(trace); in clear_trace_list()