remoteproc_debugfs.c (cbecf716ca618fd44feda6bd9a64a8179d031fc5) remoteproc_debugfs.c (40df0a91b2a5228ded8e5f75b80d28c96c6831cd)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Remote Processor Framework
4 *
5 * Copyright (C) 2011 Texas Instruments, Inc.
6 * Copyright (C) 2011 Google, Inc.
7 *
8 * Ohad Ben-Cohen <ohad@wizery.com>

--- 118 unchanged lines hidden (view full) ---

127 size_t count, loff_t *ppos)
128{
129 struct rproc_debug_trace *data = filp->private_data;
130 struct rproc_mem_entry *trace = &data->trace_mem;
131 void *va;
132 char buf[100];
133 int len;
134
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Remote Processor Framework
4 *
5 * Copyright (C) 2011 Texas Instruments, Inc.
6 * Copyright (C) 2011 Google, Inc.
7 *
8 * Ohad Ben-Cohen <ohad@wizery.com>

--- 118 unchanged lines hidden (view full) ---

127 size_t count, loff_t *ppos)
128{
129 struct rproc_debug_trace *data = filp->private_data;
130 struct rproc_mem_entry *trace = &data->trace_mem;
131 void *va;
132 char buf[100];
133 int len;
134
135 va = rproc_da_to_va(data->rproc, trace->da, trace->len);
135 va = rproc_da_to_va(data->rproc, trace->da, trace->len, NULL);
136
137 if (!va) {
138 len = scnprintf(buf, sizeof(buf), "Trace %s not available\n",
139 trace->name);
140 va = buf;
141 } else {
142 len = strnlen(va, trace->len);
143 }

--- 300 unchanged lines hidden ---
136
137 if (!va) {
138 len = scnprintf(buf, sizeof(buf), "Trace %s not available\n",
139 trace->name);
140 va = buf;
141 } else {
142 len = strnlen(va, trace->len);
143 }

--- 300 unchanged lines hidden ---