Thread (6 messages) 6 messages, 2 authors, 2021-09-06

Re: [PATCH v3 2/2] coresight: Update comments for removing cs_etm_find_snapshot()

From: Suzuki K Poulose <suzuki.poulose@arm.com>
Date: 2021-09-06 10:31:35
Also in: lkml

On 06/09/2021 11:28, Leo Yan wrote:
Hi Suzuki,

On Mon, Sep 06, 2021 at 10:51:02AM +0100, Suzuki Kuruppassery Poulose wrote:
quoted
Hi Leo


On 05/09/2021 14:12, Leo Yan wrote:
quoted
Commit 2f01c200d440 ("perf cs-etm: Remove callback cs_etm_find_snapshot()")
has removed the function cs_etm_find_snapshot() from the perf tool in the
user space, now CoreSight trace directly uses the perf common function
__auxtrace_mmap__read() to calcualte the head and size for AUX trace data
in snapshot mode.

Updates the comments in drivers to reflect the changes.
As such I would avoid referencing "userspace" function names in the
kernel driver. Please could we remove it or make it generic ?
Okay, I'd like to remove the specific function name from the comment so
can make the comment generic as:

"User space will figure out how many bytes to get from the AUX buffer
based on the position of the head."
Yes please, that sounds perfect.

Cheers
Suzuki

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help