]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390/pai_crypto: Rename paicrypt_copy() to pai_copy()
authorThomas Richter <tmricht@linux.ibm.com>
Wed, 5 Nov 2025 14:38:58 +0000 (15:38 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 14 Nov 2025 10:30:07 +0000 (11:30 +0100)
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>
arch/s390/kernel/perf_pai_crypto.c

index a014f4a1b4433fea9565692af683ff497b5dc0a0..870b84b0ce5f733581f3b9100bf5b24b879ae707 100644 (file)
@@ -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);
 }