File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
drivers/hwtracing/coresight Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -199,12 +199,18 @@ static void trbe_stop_and_truncate_event(struct perf_output_handle *handle)
199
199
* consumed from the user space. The enabled TRBE buffer area is a moving subset of
200
200
* the allocated perf auxiliary buffer.
201
201
*/
202
+
203
+ static void __trbe_pad_buf (struct trbe_buf * buf , u64 offset , int len )
204
+ {
205
+ memset ((void * )buf -> trbe_base + offset , ETE_IGNORE_PACKET , len );
206
+ }
207
+
202
208
static void trbe_pad_buf (struct perf_output_handle * handle , int len )
203
209
{
204
210
struct trbe_buf * buf = etm_perf_sink_config (handle );
205
211
u64 head = PERF_IDX2OFF (handle -> head , buf );
206
212
207
- memset (( void * ) buf -> trbe_base + head , ETE_IGNORE_PACKET , len );
213
+ __trbe_pad_buf ( buf , head , len );
208
214
if (!buf -> snapshot )
209
215
perf_aux_output_skip (handle , len );
210
216
}
You can’t perform that action at this time.
0 commit comments