diff options
author | Jiri Olsa <[email protected]> | 2018-08-27 11:12:27 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-08-30 14:49:23 -0300 |
commit | 969558371bf926258241727ebb994f516f2e6f61 (patch) | |
tree | 7471dca1cfa209eb41989054b121ce940d8b92b5 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | cb45302d7c5e20f0c0598cdbd7753fa44daceb2a (diff) |
perf/hw_breakpoint: Enable breakpoint in modify_user_hw_breakpoint
Currently we enable the breakpoint back only if the breakpoint
modification was successful. If it fails we can leave the breakpoint in
disabled state with attr->disabled == 0.
We can safely enable the breakpoint back for both the fail and success
paths by checking the bp->attr.disabled, which either holds the new
'requested' disabled state or the original breakpoint state.
Suggested-by: Oleg Nesterov <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Acked-by: Frederic Weisbecker <[email protected]>
Acked-by: Oleg Nesterov <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Milind Chabbi <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions