Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5948065pxv; Thu, 29 Jul 2021 02:30:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5qIfa2k8B7PDGVKafYLgtD9jyVFlSMd/eGD5AKy1Q02R20JHTVpZTLDsS9zZ7I05vUOJY X-Received: by 2002:a05:6402:214:: with SMTP id t20mr4916228edv.247.1627551034901; Thu, 29 Jul 2021 02:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627551034; cv=none; d=google.com; s=arc-20160816; b=QJB8Cw3rbU2GpwkNGL3wILMDQ5cqjou794g3bnE63LG0HbVaC6RQ4dHOxUVIoDxLov +v6Fp6rfgHft4P+hlF+Cgx03Sq6W2a4zDvrlHiGNmH1fQ+6E+PvnOh1+YohOPUdX4ad2 VuI+RYPE8f0qwDMnKP+9YC1HKszURIaL2eru+FLQ/pNdgQZ3e/fccVJpDqwMiHphH+/Z Blok65pp9Tvn+wi1UjLSfC9re0uSNTCeYpkY1cHzAqqN94dtrnJCEQbMp4o4FvA6VLu/ m8WYJ0k9gDFQ1GW66nT3FDhnOOD7Zy1QverjsOgw+egbcT9A9cObVspYhibasisj15lc +x5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=L4GOHKQpdKjGYrmtCwrt0j30dBYvWtSv27SD0TMpOQc=; b=yL/lr1KfpDfsTHKcyhK+GE/atJwcpfAbmyYqfgPaW0onXYQdEb4wMMQLDMM8ODcrha 74rVgROO2IlmR0NLUApWbNBMFMFS8qPSN8oxxSSKVgT8I7xfFPV4LawtX2JcsnsZmGKN BlO8Yi2+vRslftP2zGweIh6IVYNjvkA4TNctPv8I4an7W9Y+ev2kXpsCujLntruhAfAS fAN0i8ykKzfIqmKqO1DJ1cIljQLFmXpmqA5mz46SZIytO+77/zwj1hSEAaPCCGlfz0v9 NkivynWX7WrcpfdFl+UiKacTa3Hflyu0b0NYhyERN1EOlt9dO4iS6gopeTfXIwendr7T TQbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=M9b1CHbc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qb4si1647102ejc.331.2021.07.29.02.30.11; Thu, 29 Jul 2021 02:30:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=M9b1CHbc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235366AbhG2J2l (ORCPT + 99 others); Thu, 29 Jul 2021 05:28:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232663AbhG2J2k (ORCPT ); Thu, 29 Jul 2021 05:28:40 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 319F6C061757 for ; Thu, 29 Jul 2021 02:28:38 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id ds11-20020a17090b08cbb0290172f971883bso14702353pjb.1 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=owdn18B0Ab95d+X7zewmzYXxdfKyjcQ8lidenxdNrSXkXKch/QKxALlp1LVDokjyjL UEkI4Cr5MaO2onF8aaxDJUjWi3RnRhI4q16PGPGGGugHQp5Z5EnnC0lo6rwLHO4jvVeu +cl8qNgBpLaAX5lO++EI1I8POw/eGilgzqw5JG9S8JTS55LEcHXntR63ETbI+3l43iRI Dy5EGy83bKitFvfmbj3j8UFnP38VVLvjzhKpNLud9gHBDPj/+KPZP54+WRkrsGWK66eD O8vwgirox80OmLD3978HuNBEV3MoIs9GlGxIni8rbtyYZxS8b7BaP1DEQj37ZbZ4wzke +laA== X-Gm-Message-State: AOAM530T1atxszEKXQqdTwUVLJkFtBC0H5VfKR2fZVgjJKpMaLFeeYci U6ZjzOMDBVR1glGo1NPAmp1nbA== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ftrace core will add "\n" automatically on print. "\n" in TP_printk will create blank line, so remove it. Signed-off-by: Gang Li --- 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" -- 2.20.1