Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
cddc97cb
Commit
cddc97cb
authored
Jul 29, 2014
by
Mark Salyzyn
Committed by
Gerrit Code Review
Jul 29, 2014
Browse files
Options
Downloads
Plain Diff
Merge "debuggerd: tombstone: suppress logger request for logd process"
parents
47a12389
45ae446c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
debuggerd/tombstone.cpp
+10
-0
10 additions, 0 deletions
debuggerd/tombstone.cpp
debuggerd/utility.h
+3
-1
3 additions, 1 deletion
debuggerd/utility.h
with
13 additions
and
1 deletion
debuggerd/tombstone.cpp
+
10
−
0
View file @
cddc97cb
...
...
@@ -210,6 +210,12 @@ static void dump_thread_info(log_t* log, pid_t pid, pid_t tid) {
}
}
}
// Blacklist logd, logd.reader, logd.writer, logd.auditd, logd.control ...
static
const
char
logd
[]
=
"logd"
;
if
(
!
strncmp
(
threadname
,
logd
,
sizeof
(
logd
)
-
1
)
&&
(
!
threadname
[
sizeof
(
logd
)
-
1
]
||
(
threadname
[
sizeof
(
logd
)
-
1
]
==
'.'
)))
{
log
->
should_retrieve_logcat
=
false
;
}
char
procnamebuf
[
1024
];
char
*
procname
=
NULL
;
...
...
@@ -450,6 +456,10 @@ static void dump_log_file(
bool
first
=
true
;
struct
logger_list
*
logger_list
;
if
(
!
log
->
should_retrieve_logcat
)
{
return
;
}
logger_list
=
android_logger_list_open
(
android_name_to_log_id
(
filename
),
O_RDONLY
|
O_NONBLOCK
,
tail
,
pid
);
...
...
This diff is collapsed.
Click to expand it.
debuggerd/utility.h
+
3
−
1
View file @
cddc97cb
...
...
@@ -46,9 +46,11 @@ struct log_t{
pid_t
crashed_tid
;
// The tid of the thread we are currently working with.
pid_t
current_tid
;
// logd daemon crash, can block asking for logcat data, allow suppression.
bool
should_retrieve_logcat
;
log_t
()
:
tfd
(
-
1
),
amfd
(
-
1
),
crashed_tid
(
-
1
),
current_tid
(
-
1
)
{}
:
tfd
(
-
1
),
amfd
(
-
1
),
crashed_tid
(
-
1
),
current_tid
(
-
1
)
,
should_retrieve_logcat
(
true
)
{}
};
// List of types of logs to simplify the logging decision in _LOG
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment