From: Hang Lu <hangl@codeaurora.org>
To: tkjos@google.com, gregkh@linuxfoundation.org
Cc: tkjos@android.com, maco@android.com, arve@android.com,
joel@joelfernandes.org, christian@brauner.io, hridya@google.com,
surenb@google.com, rdunlap@infradead.org,
linux-kernel@vger.kernel.org, Hang Lu <hangl@codeaurora.org>
Subject: [PATCH 1/2] binder: fix the missing BR_FROZEN_REPLY in binder_return_strings
Date: Fri, 9 Apr 2021 17:40:45 +0800 [thread overview]
Message-ID: <1617961246-4502-2-git-send-email-hangl@codeaurora.org> (raw)
In-Reply-To: <1617961246-4502-1-git-send-email-hangl@codeaurora.org>
Add BR_FROZEN_REPLY in binder_return_strings to support stat function.
Fixes: ae28c1be1e54 ("binder: BINDER_GET_FROZEN_INFO ioctl")
Signed-off-by: Hang Lu <hangl@codeaurora.org>
---
drivers/android/binder.c | 3 ++-
drivers/android/binder_internal.h | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index e1a484a..be34da3 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -5559,7 +5559,8 @@ static const char * const binder_return_strings[] = {
"BR_FINISHED",
"BR_DEAD_BINDER",
"BR_CLEAR_DEATH_NOTIFICATION_DONE",
- "BR_FAILED_REPLY"
+ "BR_FAILED_REPLY",
+ "BR_FROZEN_REPLY",
};
static const char * const binder_command_strings[] = {
diff --git a/drivers/android/binder_internal.h b/drivers/android/binder_internal.h
index 2872a7d..a507166 100644
--- a/drivers/android/binder_internal.h
+++ b/drivers/android/binder_internal.h
@@ -155,7 +155,7 @@ enum binder_stat_types {
};
struct binder_stats {
- atomic_t br[_IOC_NR(BR_FAILED_REPLY) + 1];
+ atomic_t br[_IOC_NR(BR_FROZEN_REPLY) + 1];
atomic_t bc[_IOC_NR(BC_REPLY_SG) + 1];
atomic_t obj_created[BINDER_STAT_COUNT];
atomic_t obj_deleted[BINDER_STAT_COUNT];
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2021-04-09 9:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-09 9:40 [PATCH 0/2] binder: tell userspace to dump current backtrace when detected oneway spamming Hang Lu
2021-04-09 9:40 ` Hang Lu [this message]
2021-04-09 15:12 ` [PATCH 1/2] binder: fix the missing BR_FROZEN_REPLY in binder_return_strings Todd Kjos
2021-04-09 9:40 ` [PATCH 2/2] binder: tell userspace to dump current backtrace when detected oneway spamming Hang Lu
2021-04-09 15:16 ` Todd Kjos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1617961246-4502-2-git-send-email-hangl@codeaurora.org \
--to=hangl@codeaurora.org \
--cc=arve@android.com \
--cc=christian@brauner.io \
--cc=gregkh@linuxfoundation.org \
--cc=hridya@google.com \
--cc=joel@joelfernandes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maco@android.com \
--cc=rdunlap@infradead.org \
--cc=surenb@google.com \
--cc=tkjos@android.com \
--cc=tkjos@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox