Skip to content

Commit 38cd5b6

Browse files
Lucy MielkeIngo Molnar
Lucy Mielke
authored and
Ingo Molnar
committed
perf/x86/intel/pt: Fix kernel-doc comments
Some parameters or return codes were either wrong or missing, update them. Signed-off-by: Lucy Mielke <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a56d555 commit 38cd5b6

File tree

1 file changed

+6
-2
lines changed
  • arch/x86/events/intel

1 file changed

+6
-2
lines changed

arch/x86/events/intel/pt.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@ static bool topa_table_full(struct topa *topa)
736736
/**
737737
* topa_insert_pages() - create a list of ToPA tables
738738
* @buf: PT buffer being initialized.
739+
* @cpu: CPU on which to allocate.
739740
* @gfp: Allocation flags.
740741
*
741742
* This initializes a list of ToPA tables with entries from
@@ -1207,8 +1208,11 @@ static void pt_buffer_fini_topa(struct pt_buffer *buf)
12071208
/**
12081209
* pt_buffer_init_topa() - initialize ToPA table for pt buffer
12091210
* @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.
12111213
* @gfp: Allocation flags.
1214+
*
1215+
* Return: 0 on success or error code.
12121216
*/
12131217
static int pt_buffer_init_topa(struct pt_buffer *buf, int cpu,
12141218
unsigned long nr_pages, gfp_t gfp)
@@ -1281,7 +1285,7 @@ static int pt_buffer_try_single(struct pt_buffer *buf, int nr_pages)
12811285

12821286
/**
12831287
* 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
12851289
* @pages: Array of pointers to buffer pages passed from perf core.
12861290
* @nr_pages: Number of pages in the buffer.
12871291
* @snapshot: If this is a snapshot/overwrite counter.

0 commit comments

Comments
 (0)