summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTodd Kjos <tkjos@google.com>2017-05-08 09:16:27 -0700
committerTodd Kjos <tkjos@google.com>2017-07-13 15:15:54 +0000
commitf7d874123e4de442dcd6aca8afe0fd0b9d2854b4 (patch)
treefaea8ae8c9e00dbf2fd9221995f77cf78244bffa /tools/perf/scripts/python
parente482ec39d635cd1bcf764f2aefbc4ab3149d2299 (diff)
FROMLIST: binder: refactor binder ref inc/dec for thread safety
(from https://patchwork.kernel.org/patch/9817781/) Once locks are added, binder_ref's will only be accessed safely with the proc lock held. Refactor the inc/dec paths to make them atomic with the binder_get_ref* paths and node inc/dec. For example, instead of: ref = binder_get_ref(proc, handle, strong); ... binder_dec_ref(ref, strong); we now have: ret = binder_dec_ref_for_handle(proc, handle, strong, &rdata); Since the actual ref is no longer exposed to callers, a new struct binder_ref_data is introduced which can be used to return a copy of ref state. Change-Id: I7de22107f8ebc967cee63251d584fceb4ea56250 Signed-off-by: Todd Kjos <tkjos@google.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions