File tree 2 files changed +8
-2
lines changed 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -218,15 +218,20 @@ static struct auxtrace_queue *auxtrace_alloc_queue_array(unsigned int nr_queues)
218
218
return queue_array ;
219
219
}
220
220
221
- int auxtrace_queues__init (struct auxtrace_queues * queues )
221
+ int auxtrace_queues__init_nr (struct auxtrace_queues * queues , int nr_queues )
222
222
{
223
- queues -> nr_queues = AUXTRACE_INIT_NR_QUEUES ;
223
+ queues -> nr_queues = nr_queues ;
224
224
queues -> queue_array = auxtrace_alloc_queue_array (queues -> nr_queues );
225
225
if (!queues -> queue_array )
226
226
return - ENOMEM ;
227
227
return 0 ;
228
228
}
229
229
230
+ int auxtrace_queues__init (struct auxtrace_queues * queues )
231
+ {
232
+ return auxtrace_queues__init_nr (queues , AUXTRACE_INIT_NR_QUEUES );
233
+ }
234
+
230
235
static int auxtrace_queues__grow (struct auxtrace_queues * queues ,
231
236
unsigned int new_nr_queues )
232
237
{
Original file line number Diff line number Diff line change @@ -521,6 +521,7 @@ int auxtrace_mmap__read_snapshot(struct mmap *map,
521
521
struct perf_tool * tool , process_auxtrace_t fn ,
522
522
size_t snapshot_size );
523
523
524
+ int auxtrace_queues__init_nr (struct auxtrace_queues * queues , int nr_queues );
524
525
int auxtrace_queues__init (struct auxtrace_queues * queues );
525
526
int auxtrace_queues__add_event (struct auxtrace_queues * queues ,
526
527
struct perf_session * session ,
You can’t perform that action at this time.
0 commit comments