From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0053.outbound.protection.outlook.com [157.56.111.53]) by dpdk.org (Postfix) with ESMTP id C7FA28E8B for ; Sun, 30 Aug 2015 10:56:47 +0200 (CEST) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from localhost.localdomain.localdomain (115.185.150.234) by BN1PR07MB952.namprd07.prod.outlook.com (10.141.64.24) with Microsoft SMTP Server (TLS) id 15.1.256.15; Sun, 30 Aug 2015 08:56:43 +0000 From: Jerin Jacob To: Date: Sun, 30 Aug 2015 14:25:22 +0530 Message-ID: <1440924922-11156-4-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1440924922-11156-3-git-send-email-jerin.jacob@caviumnetworks.com> References: <1440924922-11156-1-git-send-email-jerin.jacob@caviumnetworks.com> <1440924922-11156-2-git-send-email-jerin.jacob@caviumnetworks.com> <1440924922-11156-3-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.185.150.234] X-ClientProxiedBy: SG2PR03CA0025.apcprd03.prod.outlook.com (25.160.233.35) To BN1PR07MB952.namprd07.prod.outlook.com (10.141.64.24) X-Microsoft-Exchange-Diagnostics: 1; BN1PR07MB952; 2:nEu32Sdjvbui8FQjM+MkQCihyMrISZgvSImM+Lji4pPjrDQx0ICzw7Gk3DlunL18qO7eYJIHya0UIgwcPA/fkt+dyZn0PTRLV7dqr2QiBCSDz6Nr8YWj2S0vi1F32RAws3W4sqhzxtJ/LHMz4AB5VwA3U6WMmSiDK3ICbmg+Xos=; 3:GGT3m2HV02o9AKLZ6rX+LRf4SqFKAmwrgzCXoaOg7W3XthKT7VVZ60kp0nTbXLdsXqVk0D13/MbWs9s86CVB82EaalgXK91WsWpfOJu79TK0ljrqGRPY+/QUK0duZQh0ns91TjcR7xhh/KKu0hq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P1dOoASMtGjANDFZTImIsP+rFVzadsHmIVZfagLmxTwlS/LekFWWMua5P0D7/Bxk7/PXBwtfpKLzMnvG3X71z5yZ7H7mICHrNghRb5HhzqZvDh7QL4PzSkhBVYx45io7bXyDjX/GF1XeF5UgRRjC4v0k2ETBk/3fJRVHdNjxrxobqAdkslPhoTsn7PNTmMkYVlgpmNEUiolegm2fYqEr876plUGUtMIQhYtEE/RL4dmi+oUB+im X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(8121501046)(5005006)(3002001); SRVR:BN1PR07MB952; BCL:0; PCL:0; RULEID:; SRVR:BN1PR07MB952; X-Forefront-PRVS: 0684F80A5C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(199003)(189002)(107886002)(106356001)(47776003)(105586002)(19580395003)(5001960100002)(46102003)(40100003)(122386002)(33646002)(50466002)(189998001)(2351001)(66066001)(86362001)(64706001)(36756003)(81156007)(97736004)(42186005)(2950100001)(50986999)(101416001)(92566002)(76176999)(5003940100001)(5001830100001)(110136002)(48376002)(77096005)(77156002)(229853001)(19580405001)(87976001)(50226001)(68736005)(5001860100001)(5004730100002)(62966003)(4001540100001)(5007970100001)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR07MB952; H:localhost.localdomain.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR07MB952; 23:tyYOd+7tRB0+TAut6NLp/nNcCKfD6EoSykvodwqvvA?= =?us-ascii?Q?FqB3G0+EomdLSf9rrWZygrvZjggzSL0WQN364O8faYjEriNQ3k075Xm4pWPX?= =?us-ascii?Q?Schgq2QoyXgMpeYaNgtLEX+sFupH/GLL0NqZIoxjpDE7oVuZclLcKu3jYd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UAI2IOtn8Xa8a6enxT06Bpz5DQZ4youe?= =?us-ascii?Q?mSkSTEjlEMNwetW0Kr4EqviQ+rvVtEDOWNd9ijxGyXXl7tdskFRrSNSIMROi?= =?us-ascii?Q?ylRA8rvl6Rdv7mcFcwATY1ovwk3opwkUwII6Iq8jWp2yPcKSToa1fQC6l7UU?= =?us-ascii?Q?Fgoau0/JluDauwqILvDKjT0ggUMwP+c7wqcY4M6VmIj6yx8NaThGv1TqPJGy?= =?us-ascii?Q?XBm3MEUAzAf8HD9d4=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR07MB952; 5:gfbYiYknOEcvgzstqQg7ntT2S4hiFtXQ84Wh0pWw0aIpnnehsYaYGYMmsRBUorLP16qKIwTkRl8anFGLshRJavC1cnPSev8Cvd0x0Jcs5a1up3LkijoUIUQZfD/WLUDc3GopbF0ZAWf+VpXMHdc7kA==; 24:ArGGoDn5NLgM4j4iLhkbk5/RLKc0QetcwHDrB1z7WF4tZketUv+rC1WgttERGG1xtJNq2jaEMxi1Xqld6+k+fA9grVyRTkDEoLtTUtM/5Fg=; 20:lNVlk7FjHAqmF5wSUwyfVm1Z67/OFFZWDpcrmEcg27/j6gLGAayQi0VAtyX0DWwKmfXFSmRgeYMPSHURZMZwCQ== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2015 08:56:43.7654 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR07MB952 Subject: [dpdk-dev] [PATCH 3/3] app/test: use memory barrier version of rte_rdtsc() eal api for multi arch support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Aug 2015 08:56:48 -0000 Signed-off-by: Jerin Jacob --- app/test/test_red.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/test/test_red.c b/app/test/test_red.c index 262df72..37841b3 100644 --- a/app/test/test_red.c +++ b/app/test/test_red.c @@ -146,16 +146,7 @@ static void rdtsc_prof_init(struct rdtsc_prof *p, const char *name) static inline void rdtsc_prof_start(struct rdtsc_prof *p) { -#ifdef __PIC__ - asm volatile ( - "mov %%ebx, %%edi\n" - "cpuid\n" - "xchgl %%ebx, %%edi;\n" - : : : "%eax", "%edi", "%ecx", "%edx" ); -#else - asm( "cpuid" : : : "%eax", "%ebx", "%ecx", "%edx" ); -#endif - p->clk_start = rte_rdtsc(); + p->clk_start = rte_rdtsc_precise(); } static inline void rdtsc_prof_end(struct rdtsc_prof *p) -- 2.1.0