[PATCH 2/5] perf/hw_breakpoint: Modify breakpoint even if the new attr has disabled set

2018-08-27 Thread Jiri Olsa
We need to change the breakpoint even if the attr with new fields has disabled set to true. Current code prevents following user code to change the breakpoint address: ptrace(PTRACE_POKEUSER, child, offsetof(struct user, u_debugreg[0]), addr_1) ptrace(PTRACE_POKEUSER, child, offsetof(struct

[PATCH 2/5] perf/hw_breakpoint: Modify breakpoint even if the new attr has disabled set

2018-08-27 Thread Jiri Olsa
We need to change the breakpoint even if the attr with new fields has disabled set to true. Current code prevents following user code to change the breakpoint address: ptrace(PTRACE_POKEUSER, child, offsetof(struct user, u_debugreg[0]), addr_1) ptrace(PTRACE_POKEUSER, child, offsetof(struct

Re: [PATCH 2/5] perf/hw_breakpoint: Modify breakpoint even if the new attr has disabled set

2018-08-17 Thread Frederic Weisbecker
On Fri, Aug 10, 2018 at 12:47:27PM +0200, Jiri Olsa wrote: > We need to change the breakpoint even if the attr with > new fields has disabled set to true. > > Current code prevents following user code to change > the breakpoint address: > > ptrace(PTRACE_POKEUSER, child, offsetof(struct user,

Re: [PATCH 2/5] perf/hw_breakpoint: Modify breakpoint even if the new attr has disabled set

2018-08-17 Thread Frederic Weisbecker
On Fri, Aug 10, 2018 at 12:47:27PM +0200, Jiri Olsa wrote: > We need to change the breakpoint even if the attr with > new fields has disabled set to true. > > Current code prevents following user code to change > the breakpoint address: > > ptrace(PTRACE_POKEUSER, child, offsetof(struct user,

[PATCH 2/5] perf/hw_breakpoint: Modify breakpoint even if the new attr has disabled set

2018-08-10 Thread Jiri Olsa
We need to change the breakpoint even if the attr with new fields has disabled set to true. Current code prevents following user code to change the breakpoint address: ptrace(PTRACE_POKEUSER, child, offsetof(struct user, u_debugreg[0]), addr_1) ptrace(PTRACE_POKEUSER, child, offsetof(struct

[PATCH 2/5] perf/hw_breakpoint: Modify breakpoint even if the new attr has disabled set

2018-08-10 Thread Jiri Olsa
We need to change the breakpoint even if the attr with new fields has disabled set to true. Current code prevents following user code to change the breakpoint address: ptrace(PTRACE_POKEUSER, child, offsetof(struct user, u_debugreg[0]), addr_1) ptrace(PTRACE_POKEUSER, child, offsetof(struct

[PATCH 2/5] perf/hw_breakpoint: Modify breakpoint even if the new attr has disabled set

2018-08-09 Thread Jiri Olsa
We need to change the breakpoint even if the attr with new fields has disabled set to true. Current code prevents following user code to change the breakpoint address: ptrace(PTRACE_POKEUSER, child, offsetof(struct user, u_debugreg[0]), addr_1) ptrace(PTRACE_POKEUSER, child, offsetof(struct

[PATCH 2/5] perf/hw_breakpoint: Modify breakpoint even if the new attr has disabled set

2018-08-09 Thread Jiri Olsa
We need to change the breakpoint even if the attr with new fields has disabled set to true. Current code prevents following user code to change the breakpoint address: ptrace(PTRACE_POKEUSER, child, offsetof(struct user, u_debugreg[0]), addr_1) ptrace(PTRACE_POKEUSER, child, offsetof(struct