From patchwork Wed Aug 29 12:31:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Holmberg X-Patchwork-Id: 10580139 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 08AF0920 for ; Wed, 29 Aug 2018 12:31:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EEEDD2AF89 for ; Wed, 29 Aug 2018 12:31:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC6EF2B047; Wed, 29 Aug 2018 12:31:32 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 8DF922B055 for ; Wed, 29 Aug 2018 12:31:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728042AbeH2Q2N (ORCPT ); Wed, 29 Aug 2018 12:28:13 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:39163 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727316AbeH2Q2N (ORCPT ); Wed, 29 Aug 2018 12:28:13 -0400 Received: by mail-ed1-f67.google.com with SMTP id h4-v6so3795437edi.6 for ; Wed, 29 Aug 2018 05:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owltronix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=44g6Zy1wNBnya2mMeli7v/3kqfSkk2oTAcHk9GhhS1I=; b=XbH5Tj2OU3ScxKPnFVXaMihib/bypEiDqhA9vUYdlqB+XNT9Y6aRcNWv8ayYJf+Nk0 9pUZZfa3Vz3rNs5DiMHflfKRNztljh6y4CmN5aSfgfQKvAh40aHQOvaa1hIrVjkhVpJj ZZVErLNcMCIOUVt/1csMGiNg/vAXnKiv8sisR4qF7tH0ZRdM7n0xLsXwf7QAGZ2b8Ahk JRAHQty8llFp6z9fydROBiAopxAwCQx+0jDzhpWpdXI0W2gIZVfVl8FXWA72I4QyhlNW BeHllhsX1Qb3oJGq5VuJl26ru0FtOCgbGY6Oc2THrtMMFjNvG8SETIDVTXAttN3mglB0 5mOA== 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; bh=44g6Zy1wNBnya2mMeli7v/3kqfSkk2oTAcHk9GhhS1I=; b=TGacOU7lYjd3BOackYkqm6nOKWyKpECGWKNzioZ/g+qCdtWLkattAs5JM+/i99kxDl iOuZckRmcq/Y5MkjZlFQQ7nszkY/D0lInLZH6DgucYDMgTno82cN7CjxAQcy2VcADbHm AroJP9qH42DtUH5XFf8Uzh93Gzz7p+SgukDLWEzVobuBoxjycgwcG+BSe45MSQkAIav+ PrhQYm6s8IR1ZG49+abG8j7yh4XmmpObFfN4rqTChh/oqpZSzHFdnzKL9qxuYTg3junS NIpB8nim1sQ6GCCilEeGwwS6IfyNCAV1Tib28nQf1klTPcAKvz/0UwgsME7RreXppaN4 5wDA== X-Gm-Message-State: APzg51Cp+sEDjBYuixKq+sodU7+XkrMCJl/BgoY/tuEOTcWDdNFdh0FD NmCHA52SQ+zgfDXGGhkGc1tUpA== X-Google-Smtp-Source: ANB0VdbBPcv1H6zflmoYsKQtMdwaep6ihDu+fnCpCIceg5EfQRGlozQEzxq/wZ0WeT4ZaH6vcwaLNA== X-Received: by 2002:a50:8921:: with SMTP id e30-v6mr7523173ede.121.1535545890199; Wed, 29 Aug 2018 05:31:30 -0700 (PDT) Received: from titan.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id r44-v6sm2765454edd.87.2018.08.29.05.31.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Aug 2018 05:31:29 -0700 (PDT) From: Hans Holmberg To: Matias Bjorling Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Gonzales , Hans Holmberg Subject: [PATCH 0/4] Introduce trace events for pblk Date: Wed, 29 Aug 2018 14:31:13 +0200 Message-Id: <1535545877-770-1-git-send-email-hans.ml.holmberg@owltronix.com> X-Mailer: git-send-email 2.7.4 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Hans Holmberg This patchset adds trace events for tracking the internal state of pblk. I've used the events extensively the last few months, and they have proven very useful. The patches depend on some of Javier's for-4.20 patches. For ordering, see: Branch: for-4.20/pblk Remote: ssh://github.com/OpenChannelSSD/linux Hans Holmberg (4): lightnvm: pblk: add trace events for chunk states lightnvm: pblk: add trace events for line state changes lightnvm: pblk: add trace events for pblk state changes lightnvm: pblk: add tracing for chunk resets drivers/lightnvm/pblk-core.c | 69 ++++++++++++++++++- drivers/lightnvm/pblk-gc.c | 8 +++ drivers/lightnvm/pblk-init.c | 8 +++ drivers/lightnvm/pblk-recovery.c | 6 ++ drivers/lightnvm/pblk-trace.h | 145 +++++++++++++++++++++++++++++++++++++++ drivers/lightnvm/pblk-write.c | 10 ++- drivers/lightnvm/pblk.h | 14 ++++ 7 files changed, 256 insertions(+), 4 deletions(-) create mode 100644 drivers/lightnvm/pblk-trace.h