Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp18138462ybl; Thu, 2 Jan 2020 19:20:42 -0800 (PST) X-Google-Smtp-Source: APXvYqxo7dpETno4i79wALbVfn9qIM7Tgof9GQPA7CV2K+4s1WpYYGkEEBsHzbR259Dx6Cb33oJi X-Received: by 2002:aca:cdd5:: with SMTP id d204mr3725110oig.134.1578021642307; Thu, 02 Jan 2020 19:20:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578021642; cv=none; d=google.com; s=arc-20160816; b=KTC7A6fBYGJ+OqCoDsvyQZwjcchwwh8y7xLGgEQTC9tAjoTgZzBkHA76BnDVowWLHd xrEMTmkyA9zSy2q0/VcWe7fjEIB8ebIRfRFvU37Bodbmi+UbxGBiQ27ydFT543X8/XGA OsJQ+vJNTH6dcCNYP6FtR3efzN/31yZAnB15X6UmjxIzCr9udo1RroF4npjOx0YgbB/2 6tqtuyyDKHa/gpd1nkJgUPDFS7MMRvi/mN7O1NOMBA70nmGIGljet9IAiY3nhcSzJvMc O5oDrvRFGpf38RFvJrdiBGCWQMDuW2273AovxoJVwjkSt7W94+TNeN9qI5oQLJuOzqEA i4fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=vjy5dIMVDT1Phjpq4ZShDs2av01qUSIKCZ/bB67Qb0g=; b=J6vodBHf/BFONu/pl2yeBeNewKf+EN7yFsruT2EZamHSYnOCPcRTjuzKcW+AcBNgnm sVZn39okKB3H3jzSwBO4iLDpG0p3H/EQaeIhpKCZs4Su7RXXwZZ0MalAdsJNR+YFGWkj NOYPI5fMMlJSK5yWWSsj02WEY/eFD3xnUs7hsfehRndqq9JD5VzQNYW0N6YJFot2gekz 0tSA7Rn7fForBg0239ZMQSNIjpveoeYt3v8bQbdkZBm+dq7UeSSWq0L+bGRwyg+hg8N1 WiUJvbzCi18h0wbyVyCFtyY3Mha7gSQD5o5BteIfxi4geJmG0iq4I3c+J9DOTQx+V29B O1Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=PZzR+KJA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h138si26929209oib.6.2020.01.02.19.20.28; Thu, 02 Jan 2020 19:20:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=PZzR+KJA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726781AbgACDTl (ORCPT + 99 others); Thu, 2 Jan 2020 22:19:41 -0500 Received: from mail25.static.mailgun.info ([104.130.122.25]:15604 "EHLO mail25.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726136AbgACDTl (ORCPT ); Thu, 2 Jan 2020 22:19:41 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1578021581; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=vjy5dIMVDT1Phjpq4ZShDs2av01qUSIKCZ/bB67Qb0g=; b=PZzR+KJA96+j6bo6JCh0tEsnrRXTWW74OPjowsqr034sj2Sbe4AnL7VonKH7Pf58bsjq+LkW 4Ja4/u57TrWG6aqI+uYILB15Gs1MgJSeJX5Y/pMQ7YWuCbm2dsLAYHTCkHQrncQ7OclbFiZS 6BoOrQbFQvR9j08Wa1E6M6DnCEM= X-Mailgun-Sending-Ip: 104.130.122.25 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e0eb2cb.7fd22c807d18-smtp-out-n03; Fri, 03 Jan 2020 03:19:39 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 685DFC4479D; Fri, 3 Jan 2020 03:19:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from codeaurora.org (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: stummala) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1050AC433CB; Fri, 3 Jan 2020 03:19:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1050AC433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=stummala@codeaurora.org From: Sahitya Tummala To: Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net Cc: Sahitya Tummala , linux-kernel@vger.kernel.org Subject: [PATCH] f2fs: show the CP_PAUSE reason in checkpoint traces Date: Fri, 3 Jan 2020 08:49:28 +0530 Message-Id: <1578021568-21552-1-git-send-email-stummala@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the duplicate CP_UMOUNT enum and add the new CP_PAUSE enum to show the checkpoint reason in the trace prints. Signed-off-by: Sahitya Tummala --- include/trace/events/f2fs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index 1796ff9..3a17252 100644 --- a/include/trace/events/f2fs.h +++ b/include/trace/events/f2fs.h @@ -49,6 +49,7 @@ TRACE_DEFINE_ENUM(CP_RECOVERY); TRACE_DEFINE_ENUM(CP_DISCARD); TRACE_DEFINE_ENUM(CP_TRIMMED); +TRACE_DEFINE_ENUM(CP_PAUSE); #define show_block_type(type) \ __print_symbolic(type, \ @@ -124,7 +125,7 @@ { CP_SYNC, "Sync" }, \ { CP_RECOVERY, "Recovery" }, \ { CP_DISCARD, "Discard" }, \ - { CP_UMOUNT, "Umount" }, \ + { CP_PAUSE, "Pause" }, \ { CP_TRIMMED, "Trimmed" }) #define show_fsync_cpreason(type) \ -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.