From patchwork Thu Jul 29 09:28:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gang Li X-Patchwork-Id: 12408173 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72340C4338F for ; Thu, 29 Jul 2021 09:28:41 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A996561057 for ; Thu, 29 Jul 2021 09:28:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A996561057 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bytedance.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 1A2556B005D; Thu, 29 Jul 2021 05:28:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1550F6B006C; Thu, 29 Jul 2021 05:28:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 042188D0001; Thu, 29 Jul 2021 05:28:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0051.hostedemail.com [216.40.44.51]) by kanga.kvack.org (Postfix) with ESMTP id DF09E6B005D for ; Thu, 29 Jul 2021 05:28:39 -0400 (EDT) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 8A426824999B for ; Thu, 29 Jul 2021 09:28:39 +0000 (UTC) X-FDA: 78415100358.13.E3CE158 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by imf21.hostedemail.com (Postfix) with ESMTP id E732AD0174A1 for ; Thu, 29 Jul 2021 09:28:38 +0000 (UTC) Received: by mail-pl1-f170.google.com with SMTP id n10so6272839plf.4 for ; Thu, 29 Jul 2021 02:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=L4GOHKQpdKjGYrmtCwrt0j30dBYvWtSv27SD0TMpOQc=; b=M9b1CHbcfKuYfUzMvS99VE+HJOwJSEZfyj4HmPCIQfRvIVGmDzhSDur1LaX7VZbQrR fsab0SaHTgacp94jmQLOXP4Jq6P724cTewVUG9z9yOG0YOD2fvzAhGahzzDzuuRs5r33 uO3vTBY1YCmOzzub3wS9EASHqi7d2vsivWimIT5P9H/FyoHq6B1Tz5mzGOSG4va/hNb4 JL5UmloxsxxyeqGButFc7XnBtTybP77iCV0lLzlUEYRftva0W8VA398RQIZZS6L8RrCs gbdxZeSECZcJtqfnybiv+qRgvjcoZxqIqMMqlLM4Id1Y5L3knDywb+/f3TuRsKlo/AVx byaQ== 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=L4GOHKQpdKjGYrmtCwrt0j30dBYvWtSv27SD0TMpOQc=; b=tBiXx8vnUPuzZXRlGxtloUEs9nHTQcuyvFRcP8OVCLj4ECqGihV2JFU7OkXfv/YYzD JSMEmK7nN2PpmpoRvcf1ICy6u7flfCUpsmTQX36WrXzI/brULl1mZ0tONbbn3K/aCc8j GH0mvYnuK0xGhXJfCxXiMV7tYiewqFYUeeKC/bmB3/2gmAhVV5zhnRj5+a1nJNruWgwD N8djZmsp1lDobIOOYUSufZh4glFHYx3KtB3DxSCY9xGypnr+2OeUFLFvNWzu8C9sjqPP +3YO1yRmyfdj17EMFS2Ul/XzYJVIsVxrbyx1BcIhMPCgFesLcrELnr6pPN7FvSlHMXhY bKVw== X-Gm-Message-State: AOAM532cYcRe8G7LJ1ZGbr89u099jOPlAXmqJigXm+L4DV1fIsyGHmmY fZ5GAL0cnOcy55r+PyghogIulg== X-Google-Smtp-Source: ABdhPJyV6MpMhTw91msNDXtPlU6wwKyLC0ErjC+OcmL0d3FpkqINMErlEU4sEm7dAb0TEgMZv9Ok1A== X-Received: by 2002:a17:90b:688:: with SMTP id m8mr13966199pjz.45.1627550917801; Thu, 29 Jul 2021 02:28:37 -0700 (PDT) Received: from C02FT5A6MD6R.tiktokd.org ([139.177.225.241]) by smtp.gmail.com with ESMTPSA id y28sm2906325pff.137.2021.07.29.02.28.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Jul 2021 02:28:37 -0700 (PDT) From: Gang Li To: rostedt@goodmis.org Cc: mingo@redhat.com, akpm@linux-foundation.org, vbabka@suse.cz, axelrasmussen@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Gang Li Subject: [PATCH 1/3] mm: mmap_lock: remove redundant "\n" in TP_printk Date: Thu, 29 Jul 2021 17:28:31 +0800 Message-Id: <20210729092831.38106-1-ligang.bdlg@bytedance.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: E732AD0174A1 Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=M9b1CHbc; dmarc=pass (policy=none) header.from=bytedance.com; spf=pass (imf21.hostedemail.com: domain of ligang.bdlg@bytedance.com designates 209.85.214.170 as permitted sender) smtp.mailfrom=ligang.bdlg@bytedance.com X-Stat-Signature: ez7hsz96bi94dc495twkncmuctorxths X-HE-Tag: 1627550918-172992 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Ftrace core will add "\n" automatically on print. "\n" in TP_printk will create blank line, so remove it. Signed-off-by: Gang Li Reviewed-by: Axel Rasmussen Reviewed-by: Muchun Song --- include/trace/events/mmap_lock.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/trace/events/mmap_lock.h b/include/trace/events/mmap_lock.h index 0abff67b96f0..5f980c92e3e9 100644 --- a/include/trace/events/mmap_lock.h +++ b/include/trace/events/mmap_lock.h @@ -32,7 +32,7 @@ TRACE_EVENT_FN(mmap_lock_start_locking, ), TP_printk( - "mm=%p memcg_path=%s write=%s\n", + "mm=%p memcg_path=%s write=%s", __entry->mm, __get_str(memcg_path), __entry->write ? "true" : "false" @@ -63,7 +63,7 @@ TRACE_EVENT_FN(mmap_lock_acquire_returned, ), TP_printk( - "mm=%p memcg_path=%s write=%s success=%s\n", + "mm=%p memcg_path=%s write=%s success=%s", __entry->mm, __get_str(memcg_path), __entry->write ? "true" : "false", @@ -92,7 +92,7 @@ TRACE_EVENT_FN(mmap_lock_released, ), TP_printk( - "mm=%p memcg_path=%s write=%s\n", + "mm=%p memcg_path=%s write=%s", __entry->mm, __get_str(memcg_path), __entry->write ? "true" : "false"