Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp457572rwi; Thu, 27 Oct 2022 03:44:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ugLEdkdemkAIEJoXHG0sNUxv/BCK6tmHggFfwuMiiaf6YHFOG5AH0CRWKdD9j1WOJOrpd X-Received: by 2002:a17:90b:2812:b0:205:cdc9:2ccf with SMTP id qb18-20020a17090b281200b00205cdc92ccfmr9089009pjb.97.1666867450972; Thu, 27 Oct 2022 03:44:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666867450; cv=none; d=google.com; s=arc-20160816; b=SM/8UcsOuDQrEGo4K+k4SOYo8GHnex2KEsC8LpNNHyg8ZHcNRpD5mES+/AKfAbiHlY sQAgaFbXmEn70W9gXViMDkDJeAL5yU5cIBfsEpPwLycczGc35ryXxpwfS0uQwmrf55kT KMyqMDuI/ImHYCSa2odgQ5zQvWahM3dQRRypnT/FqaCDYwLHBKPBtzhohwA4YDWx2Puk mxC4Ikb9WSWq7clEbqXbNUEtGrJff47e/BeRQ/jaweKLe/y8ynLVRDWAf7pjEOOkAJXb +VQVwdpvVz/QN9ZRRC5gD9e8klbLLuViBlTdkg8tYirVAUDb+tfwMjtsN1PSDZYdBQJh xzVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Gj6424IstWIBa5OAtWCYyoPzHMT5fhzmDPT5zQ+kSXY=; b=z4fKkQ57DFw+S+g8K3WdJJ30323rN//3swGcDS/chy2IFeaRLGtoh2mrOD7HpVyob5 dMluZD47xVQNE7jYqBk5UT4dUjZBhi5u8c2fCTf2Fc90JjTKTrgaSnIjSs7H1T69DTrX 5xxXtfA4Ww6H2/VWTyIi2yVaP8KPFOULmZe5fFGrFB2IQk9tIBdzt2G0o+R1SQ2Y90Fg QOA8v/eFwxOnY0MCQHBAeHXUI6JP4Ui0tqasGk9K6ee6z56jlHZhHSYZ1cCLLi8N5aJR nwQB9kDXuZHcUbBcuCPNDNNoqD0teTXrgI2RSdKBC3UZbrrDz9I5yc0IvvrnMfoiRLjH ozdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=SGOTgvgo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a63de03000000b0045e00b905cbsi1235199pgg.73.2022.10.27.03.43.58; Thu, 27 Oct 2022 03:44:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=SGOTgvgo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235476AbiJ0Kbn (ORCPT + 99 others); Thu, 27 Oct 2022 06:31:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233403AbiJ0KbY (ORCPT ); Thu, 27 Oct 2022 06:31:24 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99C51275D9 for ; Thu, 27 Oct 2022 03:31:17 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29RAT8Zw017735; Thu, 27 Oct 2022 10:31:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=qcppdkim1; bh=Gj6424IstWIBa5OAtWCYyoPzHMT5fhzmDPT5zQ+kSXY=; b=SGOTgvgoQ7N+LnVvO1KyrWfTAm7ImV5WtdGGAbhgMYDNZ4IPMa7ezREzlxme6O93zMHd k6tho13FaxO3ljr68OvXyw+kHIPBVJKL2jd2uX/yMaMWd9nyFvYv4zVtHSmcfZo9H/AM DhmNcq6hV+qwrEnl7LoqVxqAA7uJPmThUM0SP1l/VcbqpTaHIEmuW2Hm9jNhN98Frbpr pPyJAQk8toEzxif7QSzFEbLv3Bj2RwER1jgFS9MJESRpqGvXKFfwo7Ex9WjM3RfxfXer tKVkYVgWQ0cjHjQKNWIesXbspaceZFoPBSJZd3myoNo0qm82xHHbxe5qOYojQyfQb5fF 4A== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3kfahvsnny-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Oct 2022 10:31:03 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 29RAV2NZ026305 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Oct 2022 10:31:02 GMT Received: from hu-pkondeti-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Thu, 27 Oct 2022 03:30:59 -0700 Date: Thu, 27 Oct 2022 16:00:55 +0530 From: Pavan Kondeti To: Pavan Kondeti CC: Mukesh Ojha , , , , , Subject: Re: [PATCH 2/2] f2fs: fix the msg data type Message-ID: <20221027103055.GB18823@hu-pkondeti-hyd.qualcomm.com> References: <1666861961-12924-1-git-send-email-quic_mojha@quicinc.com> <1666861961-12924-2-git-send-email-quic_mojha@quicinc.com> <20221027101702.GA18823@hu-pkondeti-hyd.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20221027101702.GA18823@hu-pkondeti-hyd.qualcomm.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: bgQqJMOi-67EqHUBpImvwTipRzC0CKN6 X-Proofpoint-GUID: bgQqJMOi-67EqHUBpImvwTipRzC0CKN6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-27_05,2022-10-27_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 mlxlogscore=999 spamscore=0 phishscore=0 bulkscore=0 malwarescore=0 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2210270057 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 27, 2022 at 03:47:02PM +0530, Pavan Kondeti wrote: > On Thu, Oct 27, 2022 at 02:42:41PM +0530, Mukesh Ojha wrote: > > Data type of msg in f2fs_write_checkpoint trace should > > be const char * instead of char *. > > > > Signed-off-by: Mukesh Ojha > > --- > > include/trace/events/f2fs.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h > > index ff57e7f..7fbfce4 100644 > > --- a/include/trace/events/f2fs.h > > +++ b/include/trace/events/f2fs.h > > @@ -1404,7 +1404,7 @@ TRACE_EVENT(f2fs_readpages, > > > > TRACE_EVENT(f2fs_write_checkpoint, > > > > - TP_PROTO(struct super_block *sb, int reason, char *msg), > > + TP_PROTO(struct super_block *sb, int reason, const char *msg), > > > > TP_ARGS(sb, reason, msg), > > > LGTM. one minor comment. > > Declare it const char pointer in the trace point structure also. > > diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h > index 11f6b71..22960e6 100644 > --- a/include/trace/events/f2fs.h > +++ b/include/trace/events/f2fs.h > @@ -1429,7 +1429,7 @@ TRACE_EVENT(f2fs_write_checkpoint, > TP_STRUCT__entry( > __field(dev_t, dev) > __field(int, reason) > - __field(char *, msg) > + __field(const char *, msg) > ), > > TP_fast_assign( > Never mind, I saw your other patch which makes it a string. Actually, we don't need a string here as all the invocations (currently) are from ro strings like below trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "start block_ops"); trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish block_ops"); trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish checkpoint"); Thanks, Pavan