From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A187DA0C4B; Mon, 13 Sep 2021 07:27:20 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2438940151; Mon, 13 Sep 2021 07:27:20 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id DAF2F4014F for ; Mon, 13 Sep 2021 07:27:17 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10105"; a="221239485" X-IronPort-AV: E=Sophos;i="5.85,288,1624345200"; d="scan'208";a="221239485" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2021 22:27:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,288,1624345200"; d="scan'208";a="468916111" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by fmsmga007.fm.intel.com with ESMTP; 12 Sep 2021 22:27:16 -0700 Received: from orsmsx606.amr.corp.intel.com (10.22.229.19) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Sun, 12 Sep 2021 22:27:16 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Sun, 12 Sep 2021 22:27:16 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.177) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Sun, 12 Sep 2021 22:27:13 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hY8Pp/tW/Wdf/i6BhiT8nFMPmbt5OgBn8jxG48gIQBv724oDR8Y+wyq7ZGvhKgNpwdusJPNEVBYdeBYZg1lfh8dTsQ9/wOZVkk9Ti5R3ZRDXq2TEGDyfMZLJo73Cm0JPcvd+jD+YiAs+w2ficMI9exkUs9doQ29+H5lguPwbnzXvfUzpCBX+vw3oc2DGG7oILcv+ILxzwsofSs5L5I8d+zZ04IsgG+/9q0HjVi3Z4w7IhzHv6ZUt7JVmI4soqiJ6qT2cAHqEMzeqqvGb82XhL9QSzJmEDdirKSEKfIQ9c4V7JynV4PB3itnVJil9MDTfVmZmSC6dPv7VflUm1MzHsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=KIWOjQ8FL+s12X4wxgltprIwB5KMWTKtuFeXha7xPS4=; b=fS8aY1nwfe94x0L87lLag5QIdGgosTjrsxXhaxksRxyngx78QQzi/OHjyHM8Ur6agXQfgMskIdmV5Sz5tlWNZBbV7M0o92/NylW9kbSgCT7xQZaxMNB4m4LuPJSO+a2nOS1QvFK532fcaySEYEyZawHda2+qHZYnU7dI/J8AjNCdh0rzELlkvOppOX9UFlOxOGWOV0/b1DsEXRrfu9j65T2BvTy4tPK2VIejxzpxbdmvYPz7W0aszIZQK9VeOmSZxYHA/BYHytjoZgzL3Icc8BZCSE8Szo1O+/OVhl+9nYkxM3vMnu+V/Pa1SITtUqfy43haRkj+yif59GftLx5qpg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KIWOjQ8FL+s12X4wxgltprIwB5KMWTKtuFeXha7xPS4=; b=sL1asG+M4eDAI6jAgypwR1xYIU4nNraH7E+1pozb7vDkm78tah9uOmK/XfDLTK0DUnwj8clO3leejD7r7kD+lzJouPoKf5SPeluVCXzvukHtzJ35HJ0ydbEZEa8nYcpWquCdtug8HzdbL9z4JMb1eYa1ch4KQC2pgg0WIBrW6fQ= Received: from DM8PR11MB5591.namprd11.prod.outlook.com (2603:10b6:8:38::23) by DM8PR11MB5621.namprd11.prod.outlook.com (2603:10b6:8:38::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.21; Mon, 13 Sep 2021 05:27:12 +0000 Received: from DM8PR11MB5591.namprd11.prod.outlook.com ([fe80::904:ace8:b3b:c1a2]) by DM8PR11MB5591.namprd11.prod.outlook.com ([fe80::904:ace8:b3b:c1a2%3]) with mapi id 15.20.4500.018; Mon, 13 Sep 2021 05:27:12 +0000 From: "Peng, ZhihongX" To: Stephen Hemminger CC: "Burakov, Anatoly" , "Ananyev, Konstantin" , "dev@dpdk.org" , "Lin, Xueqin" Thread-Topic: [PATCH] Enable AddressSanitizer feature on DPDK Thread-Index: AQHXpekaZirFq4rsI0+KAixoEAy/lquckLEAgATfDoA= Date: Mon, 13 Sep 2021 05:27:12 +0000 Message-ID: References: <20210910020147.148019-1-zhihongx.peng@intel.com> <20210909194756.6addfe73@hermes.local> In-Reply-To: <20210909194756.6addfe73@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 288fad07-ee44-4336-eba3-08d9767723f5 x-ms-traffictypediagnostic: DM8PR11MB5621: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UFu8s7z9M5lfcs1TV8fJ6N9xfRSqll9ZdCrZsLSNcJOL5/wGVasOPPnYr86XYw9o5g5zszp4fq9OHyuXT41a+6jzHsFI+nJw+wKN6x/POar0p8Fy7Gi8k4Ya3pMGEjcmxNPic5Y2V2L3m1oKou4WUd5ohucVG9fkGbphlSkGr4q5a16GaRZqaHBj8Wxs4Z7Mz+xynkXZfOs2YQVzVfSlriXDAP0QIr+j+8POxQhkVlRslqZMW10u/vQBXCP0UaEUkp78x7F84oh9yQzIuYh1Wl4/7oR1daB/6mVhG7Io+FhtAuUaqfiGyWBuOxtlTSXg+bv/WvU/RO/S88HMas7/oMY3EQgnOCWZET9SIgNCSNx7zyq7IMD5eLTGOvS6hLViMCAXssUR4afWSjlYGiJF0ooP9UOfP0QlyaeriR9Dso2pPvb/gFZwmBok6GqLBZxJDR88xj48+vgb0O//05b8pM4cGX2oHR4OHCEMK+Sas/XbQOlbmhZNPaV/rbeSznxs78hragIwJ+0ex26OP8Tju9sq/LOjYWxFUS/f8yr/J941hGgl63/zWZwSoKQjcXgXWg1Vd7e6m1wWPQ+HHxg+FQwKQpPsa9CpS05phN/Evt424V9uhWM5Oj+cTongd0PGZchjc8MMbFZ5c0UhJ2+XBWP+FYKGgBOM2DBSUesj2yqMjExF0ckC+rBJ8rL25RLFH6NPoWR/ybUMVO6UmRyrCQO2he9tEuO5koBK9OAgweo= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM8PR11MB5591.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(38100700002)(8676002)(122000001)(6506007)(316002)(8936002)(508600001)(7696005)(83380400001)(186003)(26005)(52536014)(55016002)(86362001)(54906003)(4326008)(4744005)(107886003)(6916009)(53546011)(38070700005)(33656002)(9686003)(5660300002)(71200400001)(2906002)(66446008)(64756008)(66556008)(66476007)(66946007)(76116006)(49343001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?LMhfecRzcAZB6jg2icr/n2nhugWe+6HFJWxT/yhV871L+Z0bM2jLJWeH75M1?= =?us-ascii?Q?5OnYkD/O+tNk+Vp/NSOSaonrtK33IusXVj4pknIuK5aoKmAS+YX+0IQQdUs2?= =?us-ascii?Q?M15bNAKZKm4Fjj9J4V/KY6HpkfuEQSexKbpbaHFfC+u8o0B0WNcdrFwwH81l?= =?us-ascii?Q?12ViDaxsxJZo2rm0KTo49iF7SV8iBtSM04t/hmFklnhw2ZMOL8GeNK0jIVKe?= =?us-ascii?Q?pW3QJifPuFAhYw9BzPxHkpC/SYPxjaPOli4qe6qlEsn4xeDxmxcunjiCp8+B?= =?us-ascii?Q?b2exo5s6nTqFgKbwtTRGmW0A8HKC9OtSQtosaKYbc0xUlxMr2Lzo0GcnMegL?= =?us-ascii?Q?qTYckc03JKGBYZ2RP/v4qOXfIUfIClo178cIpz9vjXKdcWNuXmKAnsQ+hBkK?= =?us-ascii?Q?G8fzyz02e1BDk+XOgS1MzW3+vFXwdDCzbuWJkb0YjFeE8cj9C7AAEjw72W1t?= =?us-ascii?Q?lbABQs4Z38NEsmy4NOeYs7gU8fxzOYnSUARzFlYN4KXpPrXz+S0+gRHIVuT5?= =?us-ascii?Q?XCTfy0apQ96usivM2tC9NF0/NXBgM15QaAY0Esv9lQzckLW9KEdW61lmTx3W?= =?us-ascii?Q?QM4/ycCPysz5hP4pkRCULihoWLdTzjfGKcVVN3n6OKNFRrI7hSFTkRy1pNd5?= =?us-ascii?Q?o1wyt9vJMLaE4/JLp1DW9ysJVRG2HpQXGAMilDRE1PJAaH36pKFtCWqU3UCW?= =?us-ascii?Q?dxlCjzjMPcGIAbq0QzOugar0zsBzVwh7FtDFcH9X2hMgI3OGhE8LMCQD9yDl?= =?us-ascii?Q?Ah0JIxshl3oXoICoFFaDhQe1cVGDTfpgbGrgugcxPQl4iKvz9Omt4d9QnIT3?= =?us-ascii?Q?Ld1N+9i3pNG7U9FPaogOStcG7p4SPX1YJ/0nzmdswTMS/4fyZRh/6rGcSV72?= =?us-ascii?Q?V2hO7EgdahJOQRHm2xNQVG2czIEtstq4maVJnpAflLcppjlOafSbQlfaRUuC?= =?us-ascii?Q?T/Q5arijzHn8ipnFFlgzLVLaIb0Ny7DZqyLvPitV+6N4m6mrtXryjzgawUcF?= =?us-ascii?Q?w7xOJSiUhV8PMp0ZZHO9pmQrDLEm3n/0yjw1Xrm7yt7WGnF2K+xxbXYEZVxd?= =?us-ascii?Q?km4QRRS9oayfadJlSBbHW6vzaO6ukcLNKV0NAaw2ehSd+Tghu55OWaqtZ1Oz?= =?us-ascii?Q?sqp7P1WvYCecsYg6ioF4sF72u6cBsP3/dTgXP1NHIswQizQqoXit76GsjzqX?= =?us-ascii?Q?+7Lne3ecThYL5cko7XZHPz2mxut9wdqsf8IzAzgvSS0VraKma69PTZtSECNF?= =?us-ascii?Q?TroPDMeJgetT2yIITbw6e8fFQAFcenBuvtO+VryX8j0cdXGXJqwij22GNCBJ?= =?us-ascii?Q?gL4=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8PR11MB5591.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 288fad07-ee44-4336-eba3-08d9767723f5 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Sep 2021 05:27:12.4806 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nJ5EX0w5fHMvoS8ZFPyxffNrtrrfyd62kplD79z9jbkTLYmMZxYbv2JZvdxp5PoD16Q/s73RN2SPUX4GJi7W/Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR11MB5621 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] Enable AddressSanitizer feature on DPDK X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" > -----Original Message----- > From: Stephen Hemminger > Sent: Friday, September 10, 2021 10:48 AM > To: Peng, ZhihongX > Cc: Burakov, Anatoly ; Ananyev, Konstantin > ; dev@dpdk.org; Lin, Xueqin > > Subject: Re: [PATCH] Enable AddressSanitizer feature on DPDK >=20 > On Fri, 10 Sep 2021 02:01:47 +0000 > zhihongx.peng@intel.com wrote: >=20 > > > > +if get_option('b_sanitize').startswith('address') > > + cflags +=3D '-DRTE_MALLOC_ASAN' > > +endif > > + >=20 > This looks great, but can we make it just do-the-right-thing and get rid = of the > nerd knobs (i.e no meson configure). >=20 > The address sanitizer already has a way to detect if enabled. >=20 > GCC uses: > __SANITIZE_ADDRESS__ >=20 > Clang uses: > #if defined(__has_feature) > # if __has_feature(address_sanitizer) Tried this method you said. It can run successfully. Because gcc and clang = have different Methods for determining whether to turn on the asan function, so if you jud= ge the two methods in the code, it feels not simple to judge in meson.