]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/selftests/perf-hwbreak: Coalesce event creation code
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Mon, 12 Apr 2021 11:22:16 +0000 (16:52 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Apr 2021 15:38:03 +0000 (01:38 +1000)
commit63715a2971238349ca0f1d079df14b5babf7a814
treebcaeb25cf20c9fa82c27d2f2b7fc55012424e691
parentaa546d9b65a7bd3a3c61a3dc5514341c7225f87b
powerpc/selftests/perf-hwbreak: Coalesce event creation code

perf-hwbreak selftest opens hw-breakpoint event at multiple places for
which it has same code repeated. Coalesce that code into a function.

Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210412112218.128183-3-ravi.bangoria@linux.ibm.com
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c