]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
binder: add delivered_freeze to debugfs output
authorCarlos Llamas <cmllamas@google.com>
Thu, 26 Sep 2024 23:36:19 +0000 (23:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Oct 2024 15:12:22 +0000 (17:12 +0200)
Add the pending proc->delivered_freeze work to the debugfs output. This
information was omitted in the original implementation of the freeze
notification and can be valuable for debugging issues.

Fixes: d579b04a52a1 ("binder: frozen notification")
Cc: stable@vger.kernel.org
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Acked-by: Todd Kjos <tkjos@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20240926233632.821189-9-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c

index 7c09b5e38e32132e5fe5c02dce1459e5ddfd6569..ef353ca13c356acac42b08e4e2fed41a360ccb4f 100644 (file)
@@ -6569,6 +6569,10 @@ static void print_binder_proc(struct seq_file *m,
                seq_puts(m, "  has delivered dead binder\n");
                break;
        }
+       list_for_each_entry(w, &proc->delivered_freeze, entry) {
+               seq_puts(m, "  has delivered freeze binder\n");
+               break;
+       }
        binder_inner_proc_unlock(proc);
        if (!print_all && m->count == header_pos)
                m->count = start_pos;