From patchwork Tue Apr 16 18:32:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raul Rangel X-Patchwork-Id: 10903761 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4BA8E161F for ; Tue, 16 Apr 2019 18:33:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38ECA289C4 for ; Tue, 16 Apr 2019 18:33:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C8D7289E5; Tue, 16 Apr 2019 18:33:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3BCD289D7 for ; Tue, 16 Apr 2019 18:33:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728373AbfDPSdH (ORCPT ); Tue, 16 Apr 2019 14:33:07 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:55414 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729746AbfDPSdH (ORCPT ); Tue, 16 Apr 2019 14:33:07 -0400 Received: by mail-it1-f194.google.com with SMTP id y134so340733itc.5 for ; Tue, 16 Apr 2019 11:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nXoph5jRY2xpG1/YRS9IXnuugBw2dQDQrE91vbPLrno=; b=YlcJwSw+ioCGQ7fX3s9xTovl5nBscV9bWBj0X0cOowZLNR5NEWgKdBM7MFJc4WXNHD 2t9/Tjwx6k75QU+LOG/9h6RObHMRCJB0hTMcNZ4y75yrtjDBxiVLO+8JYkESR7wpLzoq 1A8sA+DBifJNIpW2PayDBN/txWAIi2bn2krH4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nXoph5jRY2xpG1/YRS9IXnuugBw2dQDQrE91vbPLrno=; b=UNd6aE+IMm3s2c7+X8BSMsL1RztzMxTu0Ewwyy3ZxNZwkf82KTWImzCsPdL0If+VRj yUmy6cShjxD6OJvKGW1SjXzFDthT6m8MHPPk6owmHd5yYdgIYffWPdf6MmSBfWlXcsgP Hq1rfZPCHOIsRDOzQoJvqDPwFsQoqTTzThICDyXO6nENbQsasv5c/DmOK+3L0AE5OnPG zCDc/tKlICY8Wxclfhb5Ho5BR5WLbtma+ZYwxXu8uJCXLDFv19a/gMHdoe7K5iN2Q2Ia xehNDRivPjbMiODvN0e3fF/Ba6FYNR58osCPGqVRMKhSNVUzpQS6foNUqeICeq3i6qJ8 5vnw== X-Gm-Message-State: APjAAAUpMFg2YCaHlkZQ7XH3+6mB37YhUxqdWc/JnQPPyk36nv48TuMb A/VD1z5VHLMVz1lxoXnYIg2ZhQ== X-Google-Smtp-Source: APXvYqy5ZiiQ9XaLLrhlXaUCHjyrTBPav8uhvcRV/qDUl1cG7uvno0wtEKgBIZdV9PxO2OgOwoq77Q== X-Received: by 2002:a02:c4c2:: with SMTP id h2mr57740694jaj.86.1555439586291; Tue, 16 Apr 2019 11:33:06 -0700 (PDT) Received: from localhost ([2620:15c:183:0:20b8:dee7:5447:d05]) by smtp.gmail.com with ESMTPSA id t142sm83539ita.38.2019.04.16.11.33.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Apr 2019 11:33:05 -0700 (PDT) From: Raul E Rangel To: linux-mmc@vger.kernel.org, linux-trace-devel@vger.kernel.org Cc: djkurtz@chromium.org, zwisler@chromium.org, Raul E Rangel , Steven Rostedt , hongjiefang , Jennifer Dahm , Ingo Molnar , linux-kernel@vger.kernel.org, Shawn Lin , Kyle Roeschley , Avri Altman , Simon Horman , Ulf Hansson Subject: [PATCH v2 0/4] Add trace events for SD registers. Date: Tue, 16 Apr 2019 12:32:53 -0600 Message-Id: <20190416183257.247902-1-rrangel@chromium.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog MIME-Version: 1.0 Sender: linux-trace-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I am not able to make a single event class for all these registers. They all have different struct sizes and different printf formats. Thanks for the reviews! Changes in v2: - Made trace_sd_scr print out flags. - Add BUILD_BUG_ON to make sure tracing stays in sync with structs. - memcpy using sizeof(__entry->raw) Raul E Rangel (4): mmc: core: Add trace event for SD SCR response mmc: core: Add trace event for SD SSR response mmc: core: Add trace event for SD OCR response mmc: core: Add trace event for CSD response drivers/mmc/core/mmc.c | 4 + drivers/mmc/core/sd.c | 10 ++ drivers/mmc/core/sd_ops.c | 6 ++ include/trace/events/mmc.h | 204 +++++++++++++++++++++++++++++++++++++ 4 files changed, 224 insertions(+)