s390/pai_ext: split function paiext_push_sample
authorThomas Richter <tmricht@linux.ibm.com>
Thu, 16 Nov 2023 11:12:12 +0000 (12:12 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Fri, 12 Jan 2024 13:23:27 +0000 (14:23 +0100)
commit3046a1091137f55de473262b7f3a04c45f87873a
tree0f2ee650d7f5680c712df26a87a987619f7be99a
parent0dade41d16132ac11ac9e3ac0b0313d438037224
s390/pai_ext: split function paiext_push_sample

Split function paiext_push_sample() into two parts. The first part
determines the number of bytes to store as raw data in the perf sample
record. This is now function paiext_have_sample().
The second part stores the raw data in the perf event's ring buffer.
No functional change.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Mete Durlu <meted@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/kernel/perf_pai_ext.c