* [PATCH] perf/x86/intel/pt: Cleanup kernel-doc comments
@ 2023-10-09 6:54 Lucy Mielke
2023-10-09 10:29 ` Ingo Molnar
2023-10-09 10:33 ` [tip: perf/core] perf/x86/intel/pt: Fix " tip-bot2 for Lucy Mielke
0 siblings, 2 replies; 3+ messages in thread
From: Lucy Mielke @ 2023-10-09 6:54 UTC (permalink / raw)
To: peterz, mingo, mark.rutland, alexander.shishkin, jolsa, namhyung,
irogers, adrian.hunter, tglx, bp, dave.hansen, x86, hpa
Cc: linux-perf-users, linux-kernel
Some parameters or return codes were either wrong or missing, so I
cleaned it up to the best of my knowledge.
If anything I did was wrong, please let me know!
Signed-off-by: Lucy Mielke <lucymielke@icloud.com>
---
arch/x86/events/intel/pt.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/x86/events/intel/pt.c b/arch/x86/events/intel/pt.c
index 42a55794004a..8e2a12235e62 100644
--- a/arch/x86/events/intel/pt.c
+++ b/arch/x86/events/intel/pt.c
@@ -736,6 +736,7 @@ static bool topa_table_full(struct topa *topa)
/**
* topa_insert_pages() - create a list of ToPA tables
* @buf: PT buffer being initialized.
+ * @cpu: CPU on which to allocate.
* @gfp: Allocation flags.
*
* This initializes a list of ToPA tables with entries from
@@ -1207,8 +1208,11 @@ static void pt_buffer_fini_topa(struct pt_buffer *buf)
/**
* pt_buffer_init_topa() - initialize ToPA table for pt buffer
* @buf: PT buffer.
- * @size: Total size of all regions within this ToPA.
+ * @cpu: CPU on which to allocate.
+ * @nr_pages: No. of pages to allocate.
* @gfp: Allocation flags.
+ *
+ * Return: 0 on success or error code.
*/
static int pt_buffer_init_topa(struct pt_buffer *buf, int cpu,
unsigned long nr_pages, gfp_t gfp)
@@ -1281,7 +1285,7 @@ static int pt_buffer_try_single(struct pt_buffer *buf, int nr_pages)
/**
* pt_buffer_setup_aux() - set up topa tables for a PT buffer
- * @cpu: Cpu on which to allocate, -1 means current.
+ * @event: Performance event
* @pages: Array of pointers to buffer pages passed from perf core.
* @nr_pages: Number of pages in the buffer.
* @snapshot: If this is a snapshot/overwrite counter.
--
2.41.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] perf/x86/intel/pt: Cleanup kernel-doc comments
2023-10-09 6:54 [PATCH] perf/x86/intel/pt: Cleanup kernel-doc comments Lucy Mielke
@ 2023-10-09 10:29 ` Ingo Molnar
2023-10-09 10:33 ` [tip: perf/core] perf/x86/intel/pt: Fix " tip-bot2 for Lucy Mielke
1 sibling, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2023-10-09 10:29 UTC (permalink / raw)
To: Lucy Mielke
Cc: peterz, mingo, mark.rutland, alexander.shishkin, jolsa, namhyung,
irogers, adrian.hunter, tglx, bp, dave.hansen, x86, hpa,
linux-perf-users, linux-kernel
* Lucy Mielke <lucymielke@icloud.com> wrote:
> Some parameters or return codes were either wrong or missing, so I
> cleaned it up to the best of my knowledge.
>
> If anything I did was wrong, please let me know!
Your updates look correct to me too, thanks!
Applied to tip:perf/core, for a v6.7 merge. I changed the title, because
these are not 'cleanups', but kernel-doc fixes for documentation annotation
bugs that generate incorrect/misleading documentation.
Thanks,
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip: perf/core] perf/x86/intel/pt: Fix kernel-doc comments
2023-10-09 6:54 [PATCH] perf/x86/intel/pt: Cleanup kernel-doc comments Lucy Mielke
2023-10-09 10:29 ` Ingo Molnar
@ 2023-10-09 10:33 ` tip-bot2 for Lucy Mielke
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Lucy Mielke @ 2023-10-09 10:33 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Lucy Mielke, Ingo Molnar, x86, linux-kernel
The following commit has been merged into the perf/core branch of tip:
Commit-ID: 38cd5b6a875adc877681faf8e3ad47fdbd6eceb5
Gitweb: https://git.kernel.org/tip/38cd5b6a875adc877681faf8e3ad47fdbd6eceb5
Author: Lucy Mielke <lucymielke@icloud.com>
AuthorDate: Mon, 09 Oct 2023 08:54:54 +02:00
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Mon, 09 Oct 2023 12:26:22 +02:00
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 <lucymielke@icloud.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/ZSOjQW3e2nJR4bAo@fedora.fritz.box
---
arch/x86/events/intel/pt.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/x86/events/intel/pt.c b/arch/x86/events/intel/pt.c
index 42a5579..8e2a122 100644
--- a/arch/x86/events/intel/pt.c
+++ b/arch/x86/events/intel/pt.c
@@ -736,6 +736,7 @@ static bool topa_table_full(struct topa *topa)
/**
* topa_insert_pages() - create a list of ToPA tables
* @buf: PT buffer being initialized.
+ * @cpu: CPU on which to allocate.
* @gfp: Allocation flags.
*
* This initializes a list of ToPA tables with entries from
@@ -1207,8 +1208,11 @@ static void pt_buffer_fini_topa(struct pt_buffer *buf)
/**
* pt_buffer_init_topa() - initialize ToPA table for pt buffer
* @buf: PT buffer.
- * @size: Total size of all regions within this ToPA.
+ * @cpu: CPU on which to allocate.
+ * @nr_pages: No. of pages to allocate.
* @gfp: Allocation flags.
+ *
+ * Return: 0 on success or error code.
*/
static int pt_buffer_init_topa(struct pt_buffer *buf, int cpu,
unsigned long nr_pages, gfp_t gfp)
@@ -1281,7 +1285,7 @@ out:
/**
* pt_buffer_setup_aux() - set up topa tables for a PT buffer
- * @cpu: Cpu on which to allocate, -1 means current.
+ * @event: Performance event
* @pages: Array of pointers to buffer pages passed from perf core.
* @nr_pages: Number of pages in the buffer.
* @snapshot: If this is a snapshot/overwrite counter.
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-09 10:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-09 6:54 [PATCH] perf/x86/intel/pt: Cleanup kernel-doc comments Lucy Mielke
2023-10-09 10:29 ` Ingo Molnar
2023-10-09 10:33 ` [tip: perf/core] perf/x86/intel/pt: Fix " tip-bot2 for Lucy Mielke
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.