// SPDX-License-Identifier: GPL-2.0 #include <linux/perf_event.h> #include <linux/perf_regs.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/bug.h> #include <asm/ptrace.h> #include <asm/fpu/api.h> #include <asm/fpu/types.h>
u64 perf_reg_value(struct pt_regs *regs, int idx) { freg_t fp; if (WARN_ON_ONCE((u32)idx >= PERF_REG_S390_MAX)) return 0; if (idx >= PERF_REG_S390_R0 && idx <= PERF_REG_S390_R15) return regs->gprs[idx]; if (idx >= PERF_REG_S390_FP0 && idx <= PERF_REG_S390_FP15) { if (!user_mode(regs)) return 0; idx -= PERF_REG_S390_FP0; fp = MACHINE_HAS_VX ? *(freg_t *)(current->thread.fpu.vxrs + idx) : current->thread.fpu.fprs[idx]; return fp.ui; } if (idx == PERF_REG_S390_MASK) return regs->psw.mask; if (idx == PERF_REG_S390_PC) return regs->psw.addr; return regs->gprs[idx]; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Hendrik Brueckner | 85 | 57.82% | 1 | 50.00% |
Heiko Carstens | 62 | 42.18% | 1 | 50.00% |
Total | 147 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Heiko Carstens | 24 | 100.00% | 1 | 100.00% |
Total | 24 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Heiko Carstens | 25 | 100.00% | 1 | 100.00% |
Total | 25 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Heiko Carstens | 38 | 74.51% | 1 | 50.00% |
Hendrik Brueckner | 13 | 25.49% | 1 | 50.00% |
Total | 51 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Heiko Carstens | 171 | 61.96% | 1 | 33.33% |
Hendrik Brueckner | 104 | 37.68% | 1 | 33.33% |
Martin Schwidefsky | 1 | 0.36% | 1 | 33.33% |
Total | 276 | 100.00% | 3 | 100.00% |