Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp4023842rwa; Tue, 23 Aug 2022 14:46:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR7w2WwfbSmc9qkYeh2J1O9KagemGgz4Oa2zSQEp8rsKktsn6TQSAjLflJyUUpzIuUftnoka X-Received: by 2002:a17:907:6e29:b0:73d:6894:e668 with SMTP id sd41-20020a1709076e2900b0073d6894e668mr954202ejc.453.1661291212354; Tue, 23 Aug 2022 14:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661291212; cv=none; d=google.com; s=arc-20160816; b=pIyf85vVUZArBPgHpPl6I0zDCh4gsRLZqmvFrTc5PKFYW/AynEJ392MyvXGUZYDbrp NbI5mwsgV4CS8ClwU5hNmzclhWTlDx5x83AXQy3Utl1hS8HMtB0rYwRi9v8k3Lk6E2+u CzAPhIgUzy2Zo88Ypasrkm54FqxPqgj+TRxSBm9xd3YGs8l/9Tsc62Qnf0IDhgtRoGn1 /h+YDKo7kcrU2PwtjVy1BX3HXA/3RSR19K7Lmz+U8VKObreM85aGvrGBZaJQ2la5pLW+ hhio2pmitDuuBOdANHImmtpjy1e7MFIJ1Hbx0XC67vTeE+oT8S1BeCsfmOFspoa4i6Cr Ck/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=G86WRHJEnsOSMJyR+HIgPOCKLJ1FrfHPzigB3+KgUQA=; b=aRBQdxqgC+X9p12KIUiiGZ9aTHINi9AIz1WwVeqTVqyEQxCTiY1VIvPgz4n7iPuHla B9Su+qAITvn8cQjMC78T+quBcU9SO+YUtf3Bh7cfjjcs2PQUmNnCU9rk3/Fcynqb5CBx P6c+PJqU0WvijevbbzZbE/lBuXqXQt3bidfx0e3ec0PN3YPAcocpZzRiXOZVTlFUYZeQ 62qdZ1OsZxLOUP4StY77AYfpytLmqML/O276CguCYpS7XBxU1yAkRlEybv+aEoP6KCAI M6X/4GWPKxiI7gcPxEMjlPBcvaa7iBtD9h9TJf20P7nJ1ONlv7xbq+9fDbH7rBjWRAw0 hMxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=C6xtHq1N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd17-20020a1709069b9100b0072f40d666d6si588633ejc.602.2022.08.23.14.46.25; Tue, 23 Aug 2022 14:46:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=C6xtHq1N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229939AbiHWVkF (ORCPT + 99 others); Tue, 23 Aug 2022 17:40:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbiHWVkE (ORCPT ); Tue, 23 Aug 2022 17:40:04 -0400 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90CF31400C for ; Tue, 23 Aug 2022 14:40:03 -0700 (PDT) Received: by mail-qt1-x834.google.com with SMTP id e28so11434766qts.1 for ; Tue, 23 Aug 2022 14:40:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=G86WRHJEnsOSMJyR+HIgPOCKLJ1FrfHPzigB3+KgUQA=; b=C6xtHq1NXPIMU5uiq5f8U0DS283aZaaUpCRuevskmzyHBlLjarhhQ4fJDZMI0/2W/x EC8gJu0aCTLkvueynaa8kDQMlCit6NrmK02gU7NZ7SFKQWjf7uiUo5LKIECjZDwqF/sT 6UR54omum44/yPn132xscEFqF2nmEyZboXR/ZVbpcfa57YJRbNT4REnxUHfP33deAzrv +KzxpGd8WQKG3dc4Y5Rrl8Il1geRlEFvXWrWsbYTcrH1/2xz6NvVP5JQ7pGmn6LIP4HQ XqbCK/zYqEUr4jdAYPucRWHibKNZBB7ZyfwI9Ds2UGVH3uB+hRXu+wX2MaetjJPkjq70 FXMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=G86WRHJEnsOSMJyR+HIgPOCKLJ1FrfHPzigB3+KgUQA=; b=JVRBdRN1OVONdXpRoyyKd1JicCPqJL4FWEqvvvHFf+ZBb8zObPISozK+tEb2zdr3Zm I7NQQB9UQL6hw4sWfSMUw5jPdRmFftnRAuXkU6yAsV7qQw+O/ThFudiw8yEBqJwIEhsQ O4sx1r3zPncCXQEKi0f78JOQzA6OqOLbvCA04fXVkAYO0yIl4BAInZJ4xCZiu5rOVAix +ihIu1bCqeRjr2fnPpR/RiFfgVsJ0QrmcQszxH8V3Po7ncQXfJcHS1/lchRbOSsFrKJ/ I1fhlkcNef1pnTlNQQUfV5lJhV0n0o+dBpO3gUHf2knLaC9P9ZbsIHdI3frHekgmO6aB 7lSw== X-Gm-Message-State: ACgBeo1RV9YXOnWLP9wstZZY+jY31Gaa3fZHDx6Zt8EZ0emyrWz3uVya 9zH/C/BNbU9IuvC6AI/L63bf7VqQRCf1EHLM5tpVb4Zjjrc= X-Received: by 2002:ac8:7f92:0:b0:344:8cd8:59a1 with SMTP id z18-20020ac87f92000000b003448cd859a1mr22124846qtj.384.1661290802614; Tue, 23 Aug 2022 14:40:02 -0700 (PDT) MIME-Version: 1.0 References: <20220816181451.5628-1-ddrokosov@sberdevices.ru> In-Reply-To: <20220816181451.5628-1-ddrokosov@sberdevices.ru> From: Andy Shevchenko Date: Wed, 24 Aug 2022 00:39:26 +0300 Message-ID: Subject: Re: [PATCH v1] regmap: introduce value tracing for regmap bulk operations To: Dmitry Rokosov Cc: "broonie@kernel.org" , "gregkh@linuxfoundation.org" , "rafael@kernel.org" , "jic23@kernel.org" , kernel , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Tue, Aug 16, 2022 at 9:14 PM Dmitry Rokosov wrote: > > Currently, only one-register io operations support tracepoints with > value logging. For the regmap bulk operations developer can view > hw_start/hw_done tracepoints with starting reg number and registers > count to be reading or writing. This patch injects tracepoints with > dumping registers values in the hex format to regmap bulk reading > and writing. Since it's applied, below might be considered for follow-ups. ... > + if (val) > + memcpy(__get_dynamic_array(buf), val, val_len); I'm probably missing something, but what this condition prevents from? ... > + TP_printk("%s reg=%x val=%s", __get_str(name), > + (unsigned int)__entry->reg, Why do you need casting? -- With Best Regards, Andy Shevchenko