summaryrefslogtreecommitdiff
path: root/arch/s390
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.ibm.com>2023-11-16 10:43:14 +0100
committerAlexander Gordeev <agordeev@linux.ibm.com>2024-01-12 14:23:26 +0100
commit0dade41d16132ac11ac9e3ac0b0313d438037224 (patch)
tree5db9981ee48c2f6d4997f669e1e00d5cbda29f58 /arch/s390
parentcb1259b7b574bd90ef22dac2c6282327cdae31c6 (diff)
s390/pai_ext: rework function paiext_copy argments
Change the function paiext_copy() parameter from a pointer to a structure to two pointers to memory areas referenced. The other members of that structure are not needed. 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>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kernel/perf_pai_ext.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/s390/kernel/perf_pai_ext.c b/arch/s390/kernel/perf_pai_ext.c
index 275d4fd3fe38..e2e1ce2de695 100644
--- a/arch/s390/kernel/perf_pai_ext.c
+++ b/arch/s390/kernel/perf_pai_ext.c
@@ -384,13 +384,12 @@ static void paiext_del(struct perf_event *event, int flags)
* 2 bytes: Number of counter
* 8 bytes: Value of counter
*/
-static size_t paiext_copy(struct paiext_map *cpump)
+static size_t paiext_copy(struct pai_userdata *userdata, unsigned long *area)
{
- struct pai_userdata *userdata = cpump->save;
int i, outidx = 0;
for (i = 1; i <= paiext_cnt; i++) {
- u64 val = paiext_getctr(cpump->area, i);
+ u64 val = paiext_getctr(area, i);
if (val) {
userdata[outidx].num = i;
@@ -427,7 +426,7 @@ static int paiext_push_sample(void)
size_t rawsize;
int overflow;
- rawsize = paiext_copy(cpump);
+ rawsize = paiext_copy(cpump->save, cpump->area);
if (!rawsize) /* No incremented counters */
return 0;