aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTodd Kjos <[email protected]>2017-06-29 12:01:58 -0700
committerGreg Kroah-Hartman <[email protected]>2017-07-17 14:48:23 +0200
commit372e3147df7016ebeaa372939e8774a1292db558 (patch)
treebee237ddddedc9dc7966d8663308121006012f40 /tools/perf/scripts/python/export-to-postgresql.py
parent7a4408c6bd3eb1dafba67986259191be081e3efb (diff)
binder: refactor binder ref inc/dec for thread safety
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. Signed-off-by: Todd Kjos <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions