Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6278924pxv; Thu, 29 Jul 2021 10:28:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwe3cDmV0ysuUAJV78lBDT39Zokxs/fKOpzD1Rl/FdMNZKJ/D1364HHDOJzrhdbFaGAsiAF X-Received: by 2002:a92:d28b:: with SMTP id p11mr4632183ilp.250.1627579736114; Thu, 29 Jul 2021 10:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627579736; cv=none; d=google.com; s=arc-20160816; b=D3TRS831rJTpaqvP/az9SCULcpFV2Vbe5WrHMZoNN99lBmnsC2uMUEPVB8aObU3N29 OyQz1is6CVD0Ro7HxyM/iQYn0NGNS00NDcm2qhLjasghZFwy+o8Doz62WJj9rr4RDdZP DHx50vEfQ+F4fcPko+Yir9ukOFXo6Ngcn2aq2Xg+rKrpS90AnYBbLMCfuyODE2BxbFvV NSNaZWE5+SG5ew/MNYi3avT3OwDlSHxMzitvcfjjJ0lTIT8bnWNU1plmLI6x+GaqtwUz 6A2pyEjmvr3fkYo56h+Yp6f0mXBOS0sdHzRXQQOd6BrjBgMzkZyTPWrBz1pE1phzyjjz ftLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1TJn11KWxh6Ms0mK4tEBNoyeY+OXDD+P+VEKQkQD+NY=; b=zRWxu2tevHgBwX0hYCKFhLcfs0n/HNa2EBZ9YWmJ/NfkMIVoWFMLMmQz6IIFf//Qze 8n/4emQ764Nhp77851olhzqXJypOoCs+cDiO7w+AcyHwjet5+8HNvDene4v9Pobx/Z3t VPNlkZJWZS10dH5Swp7p5XYKMPhYP7rRAnuBrZ1cbcZQKOAUkV8OR20gcxlH2CC6g2y+ 2Ktcc51jKNfs8+B0ex0t6HzC5tuB6darv463nyyU8l4p/DiP60wYC4s7/njvItgJBPvM KSH9pghyPmB6N98TkfcQrUVX/ngBlQQqWKFXy+A53A89OFIshZMEj277eWgYvN7Upnwl K19w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gArWMxjX; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l6si2289441ios.26.2021.07.29.10.28.43; Thu, 29 Jul 2021 10:28:56 -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=@google.com header.s=20161025 header.b=gArWMxjX; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231245AbhG2RZ6 (ORCPT + 99 others); Thu, 29 Jul 2021 13:25:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbhG2RZ4 (ORCPT ); Thu, 29 Jul 2021 13:25:56 -0400 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37827C061765 for ; Thu, 29 Jul 2021 10:25:53 -0700 (PDT) Received: by mail-il1-x132.google.com with SMTP id c3so6695309ilh.3 for ; Thu, 29 Jul 2021 10:25:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1TJn11KWxh6Ms0mK4tEBNoyeY+OXDD+P+VEKQkQD+NY=; b=gArWMxjXXqu1OGyaMxDZQLC7i3MHPcCwF64UUfAPXyDJCorXxfzg5a5vysUeCi0oTs 7wFR6iAl9vrkIiIim8d796MbceV1SQt3ohDK1ASDKT6JrvVjxpWxD8wEaGlV/tnO57t3 RmC0xlJtZW/UDFxt5uAXeyNkypjdqlbCYCZn4FR/6qqp4gdTPuPWTE8T6vE1kiYtNXZv UZfE+jUng3gWHY8JQ1PLBmsioi9bcfuEB7t/MyPzXlGUYCT8EjD1ypK1T7hGkc5P3te4 4YwtB2Au81Hle8YpONuLo35dtXRlJUYybfoeR6F2rTFIP6zhpArk30NC+p/P0VeWvg2P ejaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1TJn11KWxh6Ms0mK4tEBNoyeY+OXDD+P+VEKQkQD+NY=; b=BXQK+ZoTwDpbyt/hLucmTnFFwof3z9H21iFEN4x0qEcdo8AVA+rysDc+6MO7EGk8mj cjKICk6Qkh/pJYGowOAR6gQn0X7OWmvTanvAWWmdzYOMObFnGt6utn6NCwW6HxCjVVog AwWmE+6VCDLCYmnwqc3Jf5HAc+ZqsolSCGuyY6Y+iurUHcMM02rLFbJ70+Rmxf49bKyC h/22lr+BOjXgBGh+v0lD/kM38AlsDaASxVBJLukjx11P+Qa0oNxn1ePS2XDZdDNDPxFc vsyS3i8YdYdBFoPpzv9m7F1xFM0CZTvjZ7vd3/L1p0uY9aY4LCb15MHOHj1DG9PHiu1g kkSA== X-Gm-Message-State: AOAM530YrgY/YYxBhjJYYPcBYTGVS9XzE116YEikbTikZI3VLnR+8hf/ A6QxwXnqxvt4q2a/DxSUgczH3NkFs4oiCdenhIpyNQ== X-Received: by 2002:a92:6503:: with SMTP id z3mr4427664ilb.258.1627579552466; Thu, 29 Jul 2021 10:25:52 -0700 (PDT) MIME-Version: 1.0 References: <20210729092831.38106-1-ligang.bdlg@bytedance.com> In-Reply-To: <20210729092831.38106-1-ligang.bdlg@bytedance.com> From: Axel Rasmussen Date: Thu, 29 Jul 2021 10:25:16 -0700 Message-ID: Subject: Re: [PATCH 1/3] mm: mmap_lock: remove redundant "\n" in TP_printk To: Gang Li Cc: Steven Rostedt , Ingo Molnar , Andrew Morton , Vlastimil Babka , LKML , Linux MM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Axel Rasmussen On Thu, Jul 29, 2021 at 2:28 AM Gang Li wrote: > > 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 >