From patchwork Fri Apr 29 23:56:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Llamas X-Patchwork-Id: 12833003 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D15BC433EF for ; Fri, 29 Apr 2022 23:57:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377965AbiD3AAS (ORCPT ); Fri, 29 Apr 2022 20:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381866AbiD3AAR (ORCPT ); Fri, 29 Apr 2022 20:00:17 -0400 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EE9B2CE19 for ; Fri, 29 Apr 2022 16:56:52 -0700 (PDT) Received: by mail-pf1-x44a.google.com with SMTP id g5-20020a62e305000000b0050d2dba0c5dso4846786pfh.8 for ; Fri, 29 Apr 2022 16:56:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=BD5WA6bauZesMK8L9CoGy0AKOI0erqqwU4MraSAGeVg=; b=KC787m2yrK/4rLkdWRx/+Z/w4mAjsMKoeKngidspZ9dHlIHRq6gdEmnWA3POjsB1Jn 6DotCipbzlzyIf+jGHKA9tAfz9NitVOm7w7zZNri9IVO775pKXr/q1iz44T5oive8xbV ttrt651fYEkDc1LjapUCmjNV/Ja+TEBSNyl0/2ONChGpEvc66MDRMW8/FoqF4sAwXqhJ gvBo37fIJxB0fsdZE2nS0ZbedHiQK1VYnk8K8fvKrzSUCKApGL7LMW0MkQJAFiB3tkPa ulnNjXO717TPkFj3BunWrL0+v0DRgeqmbl9FZO5PmBS6AKDGWH+OeZhQqdqwxA2+0t3g H+nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=BD5WA6bauZesMK8L9CoGy0AKOI0erqqwU4MraSAGeVg=; b=BKPWWlkiPxMWpyxV3jGzjZm0WXUzVEbFFoFWViE05mNh7iyF0nWtNMa2Jyg4nO+uAn 6lFdn9+3GZ08rIoAA7qvoEqubpYzNpxUiX6Q5uUCwzV5jg/m4TE/hdNnWzPWFlAvgnlk nPt8wnKN2aUzbQhRwbyoHMskADKWsPYtxVaJkSQVAwVvEjaOHhmbrN3LPKU2Vp8/Z2eg hkQJ/XS+Qk5OgOEioTG3OwnrKbrKO0vYeaIu6RQTkwBrFAbhI6B9ZxJJvGgf0A9DOVxE oLyo/BtZULr5AhUXmS8QXNpAxo3OQK4ConZg3jcsMBTkKnMuDe1V6JXzYm1qQOYHWsig siEA== X-Gm-Message-State: AOAM5337hGTfvhpSneL2bIaf/dA3lt25X4OpDKqxVVneYZ5SEsW1l2de pFgoTTRz3TkSERRFl2zR4GRZjX5cc74BXw== X-Google-Smtp-Source: ABdhPJzYujVQxvDh1+eW1IXNrWZfE7ZGesdLVTY1zCk/VLegWqK/K1vHrC+wxz3Br7qZJH8yzsaQkgpZLrmbtw== X-Received: from zllamas.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:4c]) (user=cmllamas job=sendgmr) by 2002:a17:90b:1d84:b0:1d9:9f02:bceb with SMTP id pf4-20020a17090b1d8400b001d99f02bcebmr6654802pjb.98.1651276612168; Fri, 29 Apr 2022 16:56:52 -0700 (PDT) Date: Fri, 29 Apr 2022 23:56:39 +0000 Message-Id: <20220429235644.697372-1-cmllamas@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.36.0.464.gb9c8b46e94-goog Subject: [PATCH v2 0/5] binder: extended error and logging enhancements From: Carlos Llamas To: Greg Kroah-Hartman , " =?utf-8?q?Arve_Hj?= =?utf-8?q?=C3=B8nnev=C3=A5g?= " , Todd Kjos , Martijn Coenen , Christian Brauner , Suren Baghdasaryan Cc: Joel Fernandes , Hridya Valsaraju , kernel-team@android.com, linux-kernel@vger.kernel.org, Shuah Khan , Arnd Bergmann , Li Li , Masahiro Yamada , Carlos Llamas , linux-kselftest@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org This is a followup from [1], in which a split of commits was suggested by Greg. Additionally, the following changes were removed and not included in this v2 version: - dropped the binder_transaction_log_entry->strerr[] logic - dropped the binder_transaction_error() do-it-all function - dropped the re-work of current binder_user_error() messages [1] https://lore.kernel.org/r/20220421042040.759068-1-cmllamas@google.com/ Carlos Llamas (5): binder: add failed transaction logging info binder: add BINDER_GET_EXTENDED_ERROR ioctl binderfs: add extended_error feature entry binder: convert logging macros into functions binder: additional transaction error logs drivers/android/binder.c | 153 ++++++++++++++++-- drivers/android/binder_internal.h | 3 + drivers/android/binderfs.c | 8 + include/uapi/linux/android/binder.h | 16 ++ .../filesystems/binderfs/binderfs_test.c | 1 + 5 files changed, 165 insertions(+), 16 deletions(-) base-commit: 8013d1d3d2e33236dee13a133fba49ad55045e79