s390/pai_crypto: split function paicrypt_push_sample
authorThomas Richter <tmricht@linux.ibm.com>
Tue, 14 Nov 2023 11:00:38 +0000 (12:00 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Fri, 12 Jan 2024 13:23:26 +0000 (14:23 +0100)
commit0578a54110ff28dc2b3830e90ad2dd9c1e065e90
tree12073d645904a5b4e59500050a4e32ebc93301ec
parent8d0e8a8aa3a1e844b7a969e9fe80937667507c6c
s390/pai_crypto: split function paicrypt_push_sample

Split function paicrypt_push_sample() into two parts. The first part
determines the number of bytes to store as raw data in the perf sample
record. 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>
Acked-by: Mete Durlu <meted@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/kernel/perf_pai_crypto.c