@@ -736,6 +736,7 @@ static bool topa_table_full(struct topa *topa)
736
736
/**
737
737
* topa_insert_pages() - create a list of ToPA tables
738
738
* @buf: PT buffer being initialized.
739
+ * @cpu: CPU on which to allocate.
739
740
* @gfp: Allocation flags.
740
741
*
741
742
* This initializes a list of ToPA tables with entries from
@@ -1207,8 +1208,11 @@ static void pt_buffer_fini_topa(struct pt_buffer *buf)
1207
1208
/**
1208
1209
* pt_buffer_init_topa() - initialize ToPA table for pt buffer
1209
1210
* @buf: PT buffer.
1210
- * @size: Total size of all regions within this ToPA.
1211
+ * @cpu: CPU on which to allocate.
1212
+ * @nr_pages: No. of pages to allocate.
1211
1213
* @gfp: Allocation flags.
1214
+ *
1215
+ * Return: 0 on success or error code.
1212
1216
*/
1213
1217
static int pt_buffer_init_topa (struct pt_buffer * buf , int cpu ,
1214
1218
unsigned long nr_pages , gfp_t gfp )
@@ -1281,7 +1285,7 @@ static int pt_buffer_try_single(struct pt_buffer *buf, int nr_pages)
1281
1285
1282
1286
/**
1283
1287
* pt_buffer_setup_aux() - set up topa tables for a PT buffer
1284
- * @cpu: Cpu on which to allocate, -1 means current.
1288
+ * @event: Performance event
1285
1289
* @pages: Array of pointers to buffer pages passed from perf core.
1286
1290
* @nr_pages: Number of pages in the buffer.
1287
1291
* @snapshot: If this is a snapshot/overwrite counter.
0 commit comments