diff options
| author | Ravi Bangoria <ravi.bangoria@linux.ibm.com> | 2020-05-14 16:47:35 +0530 |
|---|---|---|
| committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-05-19 00:11:05 +1000 |
| commit | 6b424efa119d5ea06b15ff240dddc3b4b9f9cdfb (patch) | |
| tree | 4ea2eb0294720b9913b767cabe2f93b498f26e9d /tools/perf/scripts/python/bin | |
| parent | powerpc/watchpoint: Convert thread_struct->hw_brk to an array (diff) | |
| download | linux-6b424efa119d5ea06b15ff240dddc3b4b9f9cdfb.tar.gz linux-6b424efa119d5ea06b15ff240dddc3b4b9f9cdfb.zip | |
powerpc/watchpoint: Use loop for thread_struct->ptrace_bps
ptrace_bps is already an array of size HBP_NUM_MAX. But we use
hardcoded index 0 while fetching/updating it. Convert such code
to loop over array.
ptrace interface to use multiple watchpoint remains same. eg:
two PPC_PTRACE_SETHWDEBUG calls will create two watchpoint if
underneath hw supports it.
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Michael Neuling <mikey@neuling.org>
Link: https://lore.kernel.org/r/20200514111741.97993-11-ravi.bangoria@linux.ibm.com
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
