OSDN Git Service

ART: Log all monitor operations to systrace
authorAndreas Gampe <agampe@google.com>
Tue, 26 Apr 2016 03:08:55 +0000 (20:08 -0700)
committerAndreas Gampe <agampe@google.com>
Fri, 29 Apr 2016 23:06:14 +0000 (16:06 -0700)
commitc7ed09bd5d6f2c7af3bcba1c39b3f9185af68796
treebfad0c9f5236cc4d158bc0c64d5ef645ce09d283
parent0f35e0b26d8c7738ca7b284357afa9dafb659d47
ART: Log all monitor operations to systrace

Add a VLOG option ("-verbose:systrace-locks") to log all monitor
operations to systrace. This requires non-fastpath thread
entrypoints, and ATRACE tags for locking and unlocking.

Do a bit of cleanup to the entrypoint initialization to share
common setup.

Bug: 28423466

(cherry picked from commit fc6898769ae1ef91ec3e41c0a273401213cb82cd)

Change-Id: Ie67e4aa946ec15f8fcf8cb7134c5d3cff0119ab3
18 files changed:
cmdline/cmdline_types.h
runtime/arch/arm/entrypoints_init_arm.cc
runtime/arch/arm/quick_entrypoints_arm.S
runtime/arch/arm64/entrypoints_init_arm64.cc
runtime/arch/arm64/quick_entrypoints_arm64.S
runtime/arch/mips/entrypoints_init_mips.cc
runtime/arch/mips/quick_entrypoints_mips.S
runtime/arch/mips64/entrypoints_init_mips64.cc
runtime/arch/mips64/quick_entrypoints_mips64.S
runtime/arch/x86/entrypoints_init_x86.cc
runtime/arch/x86/quick_entrypoints_x86.S
runtime/arch/x86_64/entrypoints_init_x86_64.cc
runtime/arch/x86_64/quick_entrypoints_x86_64.S
runtime/base/logging.h
runtime/entrypoints/quick/quick_default_externs.h
runtime/entrypoints/quick/quick_default_init_entrypoints.h [new file with mode: 0644]
runtime/monitor.cc
runtime/monitor.h