From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0070.outbound.protection.outlook.com [157.56.111.70]) by dpdk.org (Postfix) with ESMTP id 4965E8E94 for ; Tue, 18 Aug 2015 14:41:39 +0200 (CEST) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from localhost.localdomain.localdomain (122.172.75.253) by CO1PR07MB955.namprd07.prod.outlook.com (10.141.74.17) with Microsoft SMTP Server (TLS) id 15.1.231.21; Tue, 18 Aug 2015 12:41:37 +0000 From: Jerin Jacob To: Date: Tue, 18 Aug 2015 18:10:05 +0530 Message-ID: <1439901605-31164-4-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1439901605-31164-3-git-send-email-jerin.jacob@caviumnetworks.com> References: <1439901605-31164-1-git-send-email-jerin.jacob@caviumnetworks.com> <1439901605-31164-2-git-send-email-jerin.jacob@caviumnetworks.com> <1439901605-31164-3-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.172.75.253] X-ClientProxiedBy: HKXPR03CA0065.apcprd03.prod.outlook.com (25.163.104.23) To CO1PR07MB955.namprd07.prod.outlook.com (10.141.74.17) X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB955; 2:CKzfYrZjkZ4gqcKXTt+8mtde+qxxcNpNAbevxS22G5wWwNbNFGAnnlkj1KjtXs8K+q9SUag2iGfnFcGX4JsvQjd1/z958bUivY10D2Gfa28vk/UQpOhaS5iw+xYhAwP0zSBXky/9wm4V4jaMDEO2FlwuZpuSBzUHoaeljKjk3e0=; 3:5Koy+vcDjY8lQyNDhWQadgZxMcwKaWUn7B3SQ57VdE6bIGuu8zF5lgh0qx5NZzKMr+7NzCfcUcKwfwuaRu+frrK1JldMwwZoj8BlEYaa+z2yrqKmtgWvzGFXxS61DoBgQzFtseReVrov57VaTy3Y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Z8LsoSBnALVILTctoTGKcuHoG9SLUwVy1ol1ByhUuDY9VfzLeTY46myjm36jQCKNETb6lP72KODy41PHRegue3Qo9RpHi31La1tYNBbmxc9yTM/kTquzYyiZVktDut5/soopRIPqGxNVXFmT/ovlqre32BVldiU5ffwuZVuc3XpjSCHvWcxMJdQj5mqx0ZUGGnjJE8X4ct/CCATjW5ugAzwQF+wq4eaSzWMU57eslfZd+KB9hYwmhhO/vYdJHgxjSA1I0NG6CMZjInhhTC3n37A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(3002001); SRVR:CO1PR07MB955; BCL:0; PCL:0; RULEID:; SRVR:CO1PR07MB955; X-Forefront-PRVS: 067270ECAF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(199003)(189002)(97736004)(107886002)(77096005)(47776003)(189998001)(66066001)(19580405001)(5001960100002)(86362001)(5001830100001)(40100003)(81156007)(50986999)(122386002)(64706001)(110136002)(68736005)(2351001)(5001860100001)(87976001)(2950100001)(106356001)(33646002)(46102003)(101416001)(229853001)(4001540100001)(19580395003)(42186005)(76176999)(48376002)(92566002)(50466002)(50226001)(105586002)(450100001)(62966003)(36756003)(77156002)(5003940100001)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO1PR07MB955; 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; CO1PR07MB955; 23:fMX1Il5eD7vaAieSvcfgLK+Duu8gJdm54xPqp3U8e3?= =?us-ascii?Q?2MCcR8cYywYWBrEgpuUP2Z5CO4XwfFDSzoRlh00gJFDtA75BITXQ25H5hK+z?= =?us-ascii?Q?UTtI7tZAD9C631oC7XByB/qyIB2awlEtL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BCr+fqZ0kCpiFPSADWsWtCkvWSQQZPPcw42Ym6WDFefV9fTA8Dgh?= =?us-ascii?Q?vkLbMMQBMTv/WX/w+yEY8yz/htJBPu3XuteLYomXdO+2iM0fpROAfkuLG5fL?= =?us-ascii?Q?9H1mTYIjDfKfL4IiW4vbLi5GUhhjw6Puq3/fX9oeVr74YsOzO1jMCf4WqNT/?= =?us-ascii?Q?4gmVobtBloyC7wNWLZ440gi7UIzX2cSZ9I?= X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB955; 5:1yw1ZD+QpANBPOP6NrS2cKmvrHoLRdkj7we7lqcsWWCFvc3yEFl8Mmaa7CxcOTm6pKpBAR3WvbHckcyxngLSFZstM0pj4GQ7vlBILL/JlmIc29WakyZBG5Pmx0CpXtr2ChlLpPKUSn8CsKF+5ILFuQ==; 24:H1+7aFWtEdT4Ba3frFMtwLkJKTjRony72dPcbc3lKsc8PINya3Lmuk4mUDGtydeleyJ9XisSAX3BetMPJBv19oeayyWe/oy/oAJv4w13JUA=; 20:lst/C2Bg+KVf1wSsecr4E3yJhd5dFI16gRR2DTQBtUFm0e47IFlY2C5BWcQLCZ/hozI19vqdWXYH0t+wN7EFcA== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2015 12:41:37.2134 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR07MB955 Subject: [dpdk-dev] [PATCH 3/3] app/test: enable test_red to build on non x86 platform 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: Tue, 18 Aug 2015 12:41:39 -0000 Signed-off-by: Jerin Jacob --- app/test/test_red.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test/test_red.c b/app/test/test_red.c index 262df72..813c508 100644 --- a/app/test/test_red.c +++ b/app/test/test_red.c @@ -146,6 +146,7 @@ static void rdtsc_prof_init(struct rdtsc_prof *p, const char *name) static inline void rdtsc_prof_start(struct rdtsc_prof *p) { +#if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) || defined(RTE_ARCH_X86_X32) #ifdef __PIC__ asm volatile ( "mov %%ebx, %%edi\n" @@ -155,6 +156,7 @@ static inline void rdtsc_prof_start(struct rdtsc_prof *p) #else asm( "cpuid" : : : "%eax", "%ebx", "%ecx", "%edx" ); #endif +#endif p->clk_start = rte_rdtsc(); } -- 2.1.0