File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
drivers/hwtracing/coresight Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,11 @@ static unsigned long trbe_snapshot_offset(struct perf_output_handle *handle)
303
303
return buf -> nr_pages * PAGE_SIZE ;
304
304
}
305
305
306
+ static u64 trbe_min_trace_buf_size (struct perf_output_handle * handle )
307
+ {
308
+ return TRBE_TRACE_MIN_BUF_SIZE ;
309
+ }
310
+
306
311
/*
307
312
* TRBE Limit Calculation
308
313
*
@@ -473,7 +478,7 @@ static unsigned long trbe_normal_offset(struct perf_output_handle *handle)
473
478
* have space for a meaningful run, we rather pad it
474
479
* and start fresh.
475
480
*/
476
- if (limit && (limit - head < TRBE_TRACE_MIN_BUF_SIZE )) {
481
+ if (limit && (( limit - head ) < trbe_min_trace_buf_size ( handle ) )) {
477
482
trbe_pad_buf (handle , limit - head );
478
483
limit = __trbe_normal_offset (handle );
479
484
}
You can’t perform that action at this time.
0 commit comments