diff options
author | Janis Schoetterl-Glausch <scgl@linux.ibm.com> | 2023-02-06 19:45:56 +0300 |
---|---|---|
committer | Janosch Frank <frankja@linux.ibm.com> | 2023-02-07 20:05:59 +0300 |
commit | a41f505e9f7f4e13afb6f0e331f99360a3088af7 (patch) | |
tree | 43cb185adb9e23171bc42d210f418375e1de6985 /tools/perf/scripts/python/stackcollapse.py | |
parent | dc55ceaef616bdac73810d6588c23a5b50d24911 (diff) | |
download | linux-a41f505e9f7f4e13afb6f0e331f99360a3088af7.tar.xz |
KVM: s390: Move common code of mem_op functions into function
The vcpu and vm mem_op ioctl implementations share some functionality.
Move argument checking into a function and call it from both
implementations. This allows code reuse in case of additional future
mem_op operations.
Suggested-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Link: https://lore.kernel.org/r/20230206164602.138068-9-scgl@linux.ibm.com
Message-Id: <20230206164602.138068-9-scgl@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions