summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.ibm.com>2025-11-05 15:38:58 +0100
committerHeiko Carstens <hca@linux.ibm.com>2025-11-14 11:30:07 +0100
commitf12473541356f5765e4130a7b5af77862a872a51 (patch)
treebc1c900fcbbbb49a1c904f123e5c824ec89398c4
parent42e6a0f6d2f0e9ac96d0d6045624a1fa44ab6871 (diff)
s390/pai_crypto: Rename paicrypt_copy() to pai_copy()
To support one common PAI PMU device driver which handles both PMUs pai_crypto and pai_ext, use a common naming scheme for structures and variables suitable for both device drivers. Rename paicrypt_copy() to pai_copy() to indicate its common usage. No functional change. Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Reviewed-by: Jan Polensky <japo@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
-rw-r--r--arch/s390/kernel/perf_pai_crypto.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/s390/kernel/perf_pai_crypto.c b/arch/s390/kernel/perf_pai_crypto.c
index a014f4a1b443..870b84b0ce5f 100644
--- a/arch/s390/kernel/perf_pai_crypto.c
+++ b/arch/s390/kernel/perf_pai_crypto.c
@@ -485,9 +485,9 @@ static void paicrypt_del(struct perf_event *event, int flags)
* 2 bytes: Number of counter
* 8 bytes: Value of counter
*/
-static size_t paicrypt_copy(struct pai_userdata *userdata, unsigned long *page,
- struct pai_pmu *pp, unsigned long *page_old,
- bool exclude_user, bool exclude_kernel)
+static size_t pai_copy(struct pai_userdata *userdata, unsigned long *page,
+ struct pai_pmu *pp, unsigned long *page_old,
+ bool exclude_user, bool exclude_kernel)
{
int i, outidx = 0;
@@ -578,10 +578,10 @@ static void pai_have_sample(struct perf_event *event, struct pai_map *cpump)
if (!event) /* No event active */
return;
pp = &pai_pmu[PAI_PMU_IDX(event)];
- rawsize = paicrypt_copy(cpump->save, cpump->area, pp,
- (unsigned long *)PAI_SAVE_AREA(event),
- event->attr.exclude_user,
- event->attr.exclude_kernel);
+ rawsize = pai_copy(cpump->save, cpump->area, pp,
+ (unsigned long *)PAI_SAVE_AREA(event),
+ event->attr.exclude_user,
+ event->attr.exclude_kernel);
if (rawsize) /* No incremented counters */
pai_push_sample(rawsize, cpump, event);
}