From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id A754BA0096 for ; Mon, 8 Apr 2019 05:03:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6DF364CA7; Mon, 8 Apr 2019 05:03:40 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 63B342BCE for ; Mon, 8 Apr 2019 05:03:39 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Apr 2019 20:03:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,323,1549958400"; d="scan'208";a="159608475" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga004.fm.intel.com with ESMTP; 07 Apr 2019 20:03:38 -0700 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 7 Apr 2019 20:03:38 -0700 Received: from bgsmsx152.gar.corp.intel.com (10.224.48.50) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 7 Apr 2019 20:03:38 -0700 Received: from bgsmsx101.gar.corp.intel.com ([169.254.1.171]) by BGSMSX152.gar.corp.intel.com ([169.254.6.80]) with mapi id 14.03.0415.000; Mon, 8 Apr 2019 08:33:34 +0530 From: "Varghese, Vipin" To: "Pattan, Reshma" , "dev@dpdk.org" , "Kovacevic, Marko" , "david.marchand@redhat.com" CC: "Wiles, Keith" , "Mcnamara, John" , "Byrne, Stephen1" , "Tamboli, Amit S" , "Padubidri, Sanjay A" , "Patel, Amol" Thread-Topic: [PATCH v5 2/2] app/pdump: enhance to support multi-core capture Thread-Index: AQHU6TUdRxunck6MJ0aCmCq5Lg2fiaYor2gAgAENLYCAA7ncgIAEJfiA Date: Mon, 8 Apr 2019 03:03:34 +0000 Message-ID: <4C9E0AB70F954A408CC4ADDBF0F8FA7D4D32ACCC@BGSMSX101.gar.corp.intel.com> References: <20190402043318.20382-3-vipin.varghese@intel.com> <20190402091836.35779-1-vipin.varghese@intel.com> <20190402091836.35779-3-vipin.varghese@intel.com> <3AEA2BF9852C6F48A459DA490692831F2A4341B4@irsmsx110.ger.corp.intel.com> <4C9E0AB70F954A408CC4ADDBF0F8FA7D4D3294C8@BGSMSX101.gar.corp.intel.com> <3AEA2BF9852C6F48A459DA490692831F2A443D64@irsmsx110.ger.corp.intel.com> In-Reply-To: <3AEA2BF9852C6F48A459DA490692831F2A443D64@irsmsx110.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDVlYTc5ZmYtMTZjNi00MDA2LWExMDMtM2EzMzY2Y2IyNTBlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibGNsaGgyXC9OR3c2V1dDWElzRFpyWGVkUG5oZ2wwZ0RlTHVoMVp0cXI4RHF4SVFETW50NVZFXC9sc3ByUytnSlNCIn0= dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.223.10.10] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v5 2/2] app/pdump: enhance to support multi-core capture X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190408030334.01d5SUbiy1Dbq9mUHux-2DGzr0qXUvdrcgySmTXssjQ@z> Hi Reshma, snipped > > > > > > > + fflush(stdout); > > > > > > Why is fflush used here and in below other places? > > To ensure the stdout content is flushed out. We had used similar approa= ch to ' > > examples/l2fwd/main.c' > > >=20 > Can you elaborate more? What problem do you see if you don't use this? Sure, when running on multi cores (Xeon, corei7 and denverton alike) depend= ing upon the isolate parameters and other application, printf from lcores e= ither comes as partial or misaligned. Making use 'fflush' ensured in both a= pps and examples to be flushed out.=20 >=20 > Thanks, > Reshma