OSDN Git Service

powerpc/watchpoint/ptrace: Return actual num of available watchpoints
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Thu, 14 May 2020 11:17:29 +0000 (16:47 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 May 2020 14:11:04 +0000 (00:11 +1000)
commit45093b382e0ac25c206b4dcd210c6be1f5e56e60
treef9bd8c2d1938f7840f15c655fb09c8a0af5fb365
parenta6ba44e8799230e36c8ab06fda7f77f421e9e795
powerpc/watchpoint/ptrace: Return actual num of available watchpoints

User can ask for num of available watchpoints(dbginfo.num_data_bps)
using ptrace(PPC_PTRACE_GETHWDBGINFO). Return actual number of
available watchpoints on the machine rather than hardcoded 1.

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-5-ravi.bangoria@linux.ibm.com
arch/powerpc/kernel/ptrace/ptrace-noadv.c