Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp197420iob; Mon, 2 May 2022 16:58:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZwCAlLMNmMebBCKPLrIGnEk9rKzXTz7vX51j8FbAwcM8pBsIkmF9Y1clfKHE6B/ycqXFi X-Received: by 2002:a17:90a:e2cb:b0:1da:35d6:3a08 with SMTP id fr11-20020a17090ae2cb00b001da35d63a08mr1777060pjb.223.1651535909297; Mon, 02 May 2022 16:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651535909; cv=none; d=google.com; s=arc-20160816; b=HX/d7whjw1GVDq259M7B76gVDSFfaNp4Uc0tCLLc+b/7l+YryFpXZOmilqQQgZSzo2 xvUF9dJtwP1vglquecOtX4OBY2QCb0gXgbb++f1SCkqEp97TbKH3jl0It0T6oK7AU3Jl 5X8CNbhcLGBB029KBZLLtHZpOH2LvB32F7i3X/0TzWJd2F9krmGzIoD+Gutd0lkvN1/o Ap+GtRYY7UBJ9N0C0vMioGPSqsoiQvO72tE4tLcBNadnwyIGY/fgq5kmexZ3z4+hrfIh DtxaG7ZbGtIkxtDAeYY2DPZddh9i50iqWtGzJXrabvrw5riVpkkb2VTDs2BpLlpNJlHx bycw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=BD5WA6bauZesMK8L9CoGy0AKOI0erqqwU4MraSAGeVg=; b=Nhr6nzEwIZ4ohxbnp/eh4GTCGqLtbG1rXsMWHP4GM2x/pHYkR4Utnpsx6Q/1QifWv9 z3mNW4AYUqYA4/FZJo+WyvVFISxVJ7ibRW1t7I5i5CQBUxezAWAfpfve2L24D8UZKVMb UzRcbSgERcc/70BNATskld4kNOtM8hPLilJY7rVsOiWXWdnOVijJZwno8GI6ruOKM79C i9ZzKXnqV+Bbs1PyoHwe7QPAeoboLd0qGoLWC/qdIGwU9X2hfV8n9xLt+cs9wnnLRrid cjtsSgT2SECknoQ3FK3Pk4et9om0nnLjasehpRsFL3eHaeiRdi31bZHso7P2ELYgvMM6 Q89Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=KC787m2y; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i64-20020a638743000000b003ab158e5a5esi14731839pge.121.2022.05.02.16.58.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:58:29 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=KC787m2y; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E707C2BB3A; Mon, 2 May 2022 16:58:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381875AbiD3AAT (ORCPT + 99 others); Fri, 29 Apr 2022 20:00:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381873AbiD3AAR (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 1DF993C499 for ; Fri, 29 Apr 2022 16:56:52 -0700 (PDT) Received: by mail-pf1-x44a.google.com with SMTP id p187-20020a6229c4000000b004fb57adf76fso4860188pfp.2 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=ozmw+H1gw2yiEsZ8HH1Y+8vAFD6czc/LoCLr4/UPj5c/aiIr7HIpiL4L94977nkYKC AL1s0BNUfOeCwtB5QdQv99RshDytJn9rT2yXJTmxmS5nfJc74QJ0tLZSaA5LmL2DpCNk 5wmgfyRxhzyjMz0qrPsTxVmkhkCi9bgMsRaP3Epr1/nEKjEv8n7D0/5yOtb2Rue7hYnF xN/J+y1VnXBB5mO/9XJzWUQDgs00b8flHERHOwpyPHsy5k22fpYXeXYtPR+5luaj3T8m fMNjmKzxyUf65AkF11my0cZtHAuvUn47FiuS7kFGb6kjC/oAc2mM7wAh3Hy3vDGVvXw8 3lyA== X-Gm-Message-State: AOAM530BrrLUv3obh9C0KISaHbrOR98XENpLkJjheHpwm88g1eCueolS LneU2PIlbAyi3wlsDpM8jfvH0Xg2Wbhxgw== 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=20Hj=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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 -- 2.36.0.464.gb9c8b46e94-goog