am 3fdeb48e
: Reduce emulator logspam
* commit '3fdeb48e3c89be15fe3b539a26ec9a3cf28c898c': Reduce emulator logspam
This commit is contained in:
commit
434e21bfd6
@ -54,6 +54,8 @@
|
|||||||
#define ATRACE_TAG_CAMERA (1<<10)
|
#define ATRACE_TAG_CAMERA (1<<10)
|
||||||
#define ATRACE_TAG_LAST ATRACE_TAG_CAMERA
|
#define ATRACE_TAG_LAST ATRACE_TAG_CAMERA
|
||||||
|
|
||||||
|
#define ATRACE_TAG_NOT_READY (1LL<<63) // Reserved for use during init
|
||||||
|
|
||||||
#define ATRACE_TAG_VALID_MASK ((ATRACE_TAG_LAST - 1) | ATRACE_TAG_LAST)
|
#define ATRACE_TAG_VALID_MASK ((ATRACE_TAG_LAST - 1) | ATRACE_TAG_LAST)
|
||||||
|
|
||||||
#ifndef ATRACE_TAG
|
#ifndef ATRACE_TAG
|
||||||
|
@ -25,7 +25,7 @@ namespace android {
|
|||||||
|
|
||||||
volatile int32_t Tracer::sIsReady = 0;
|
volatile int32_t Tracer::sIsReady = 0;
|
||||||
int Tracer::sTraceFD = -1;
|
int Tracer::sTraceFD = -1;
|
||||||
uint64_t Tracer::sEnabledTags = 0;
|
uint64_t Tracer::sEnabledTags = ATRACE_TAG_NOT_READY;
|
||||||
Mutex Tracer::sMutex;
|
Mutex Tracer::sMutex;
|
||||||
|
|
||||||
void Tracer::changeCallback() {
|
void Tracer::changeCallback() {
|
||||||
@ -46,7 +46,7 @@ void Tracer::init() {
|
|||||||
sTraceFD = open(traceFileName, O_WRONLY);
|
sTraceFD = open(traceFileName, O_WRONLY);
|
||||||
if (sTraceFD == -1) {
|
if (sTraceFD == -1) {
|
||||||
ALOGE("error opening trace file: %s (%d)", strerror(errno), errno);
|
ALOGE("error opening trace file: %s (%d)", strerror(errno), errno);
|
||||||
// sEnabledTags remains zero indicating that no tracing can occur
|
sEnabledTags = 0; // no tracing can occur
|
||||||
} else {
|
} else {
|
||||||
loadSystemProperty();
|
loadSystemProperty();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user