From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0085.outbound.protection.outlook.com [104.47.33.85]) by dpdk.org (Postfix) with ESMTP id 8C7AC2935; Tue, 4 Jul 2017 10:06:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=hjzuiH49tT/5czLiZmufWxG9oGTKWQbnEGSbwo1gxK0=; b=MUcw1tMeo51Is202GlNtAfmY4Gq6nmRwHTfzP1QSl2ovumfpKCqJqgzhdQEG7pwxruCc6OC8HtRJ2q0U6B+yHorylOTZ2uachZ7bcvP7O5Y6T6LgOA/mb1Ss0c4gVT76l8RHNS6l//UrtK7Glsch4DtEupUBYHqCZq3zp1zCo3U= Authentication-Results: caviumnetworks.com; dkim=none (message not signed) header.d=none;caviumnetworks.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from 1scrb-1.caveonetworks.com (50.233.148.156) by MWHPR07MB3070.namprd07.prod.outlook.com (10.172.97.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Tue, 4 Jul 2017 08:06:06 +0000 From: Ashwin Sekhar T K To: jerin.jacob@caviumnetworks.com, john.mcnamara@intel.com, jianbo.liu@linaro.org, tim.odriscoll@intel.com, techboard@dpdk.org, govboard@dpdk.org Cc: dev@dpdk.org, Ashwin Sekhar T K Date: Tue, 4 Jul 2017 01:05:55 -0700 Message-Id: <20170704080556.28677-2-ashwin.sekhar@caviumnetworks.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170704080556.28677-1-ashwin.sekhar@caviumnetworks.com> References: <20170517181949.12002-1-ashwin.sekhar@caviumnetworks.com> <20170704080556.28677-1-ashwin.sekhar@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: MWHPR15CA0067.namprd15.prod.outlook.com (10.174.254.29) To MWHPR07MB3070.namprd07.prod.outlook.com (10.172.97.12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cd76d0ab-4f3d-41ac-a426-08d4c2b3860f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:MWHPR07MB3070; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3070; 3:p4ULnhq9G8D8Whwcx/7HDivR8fXiAtNDbBA7XjyuHfQYU7ZosGUvS3z/+UM2cRJHpIJO7gmAoraA/2s8yyxM0EZEh/TlZMBhKcq8Ui+J9JJCS5oOZ9z4U6BQvteh2+YU6O9t1w1IVLEpg2C+h66itfoL0baU3lEMGuyXaFyKbLO2adQXUWoYXVoJMbdV4zLmopAbeD+fx7MkNzMfP9HpqVhhiQnm6krRzONur/+cO56keWgZ+QhgjXJ9J9bkBouXr/jc/5Dcey76NvJGArTRDkB4mlJuRotIR0lcy4lIFuPdQtRy4AFBfwKVih8NQDN3aGMvsOiS45mljs0U6BlHa6HjaBXA9xP6dkc/brLB2Fbd7FQzh7EWg+rBHagpXgdX0GTnBj04ByoaZjeiqs1+uE6nSD3SoaetpmvzKdUqIeLjIp+N7NYXhPyKzh+qnhFMz1xsMKJEb2J04mxQCndodlp333LqLDH/QNAitv01n8mwy+8NxbRsuIfGXWRncCW66gx94ZZTy4wwwvBE1NzOfu0nKdu3ee88UijuRKRxnSgkyEhw1tclvV6zoCzjcOUtCkU+Ab7LC/KCOUZG0I7NL++IdAyT9dEWM4mcG6oMOQT0dOm9uxkoxhPxLgW5bCW2lENJ+8mVdtCasb0fKNqJhUqIDkaPqbBvba6I6fs+hwWHYepdhNlzMtEwfc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iPayQXbju4jQprGV1XTNfCqeCduJLc3mRwDfUUUX6/K4G8ZgBSVdzfUuYbqcGOWde7nJFCY9cOAF01k6OAHs569Qen0HreTMcznsntkorQnhoXMPYslkZ0Hn+e0J51CwbFfw7FtdkYN9GCednjiaWwd/0tbLFTPNDsM1rS4xwcIYm/eL2kN9ZkLM6Xb9+UOQx4CXZRGRliiy13dTi1ZHPUeEbjB3exAJMG15oY+LpWFDRTYiRbSCWk9TSbdOFT0QgiuqwjqToae79J2oVikYx6His0gWuhrxMGEi+UZXZrMRLLb6k8vSXlDwT7tg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(166708455590820)(236129657087228)(148574349560750)(158140799945019); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(100000703101)(100105400095)(10201501046)(3002001)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123558100)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR07MB3070; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR07MB3070; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR07MB3070; 4:P/F+ljkIJRwUAr+zGl5Z40oUxh889ASNGBJk11RKHh?= =?us-ascii?Q?RyTA01Hc6jxshSnVgKgj7XiXZipFN/5yvJz9MopHMRTW6h5OhVx7gS8drked?= =?us-ascii?Q?sdzEoXOiLFaKseucQSNakIWlHaDrBkianjHeTpFCkLddDMJCWxtEe8utZR4t?= =?us-ascii?Q?i8LPYNoVZCeiZMA0+dirXQ/fMDhq40rDFs1ek2HITvoasy7E+PCs8HnwD64i?= =?us-ascii?Q?e0PQNTEiF4b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PLz?= =?us-ascii?Q?iNgPeQ84BrUSPm10Ff5Li356/lnfGFer7L8Cyv/Nl6V82wZ7GvB//TyavB47?= =?us-ascii?Q?oOAkVF3GMhy5sArKVf3wlTlhg3sFqyJSh+emsiGDU4UkJoQyppXbU9jLvkrN?= =?us-ascii?Q?WdOHl1oh/4GWxjhU87ix22BC5HaSqOYZuaXyU5?= X-Forefront-PRVS: 0358535363 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39400400002)(39840400002)(39450400003)(39410400002)(6306002)(2950100002)(42882006)(53936002)(6512007)(189998001)(5660300001)(2906002)(50466002)(42186005)(4326008)(53416004)(25786009)(36756003)(50226002)(6486002)(6116002)(6506006)(5003940100001)(1076002)(3846002)(81166006)(478600001)(33646002)(50986999)(76176999)(110136004)(107886003)(6666003)(38730400002)(8676002)(305945005)(72206003)(7736002)(66066001)(966005)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3070; H:1scrb-1.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR07MB3070; 23:Z1bxZM0MO0D+CjdPaYOwdngInv77pvi8KtMksJ0fV?= =?us-ascii?Q?hIPvMEhrgnb8KKjSgwR4NvIMLiGSoSXYB0hekOY581i1xSpeF2jt2TNhB4N1?= =?us-ascii?Q?P45RQUL1DGMjSl2MAqoywss4TXMOvS6pBmlJM33iwD63Pke8IDkSLOljysr/?= =?us-ascii?Q?8y0wqxOk8e8lbWyD6Oimhqb2pjcijn1fH4Q0AL+QgF/IXwtJS5VJv/KIfIJp?= =?us-ascii?Q?FFTsa6tVIQ2wl4H4xtbCDnrOsywBA2kWlzQBPy/iOuW+T4OlrifW9tScqTkN?= =?us-ascii?Q?6Mrj1j/wwKc71flCzmNrCSgsdO8z/kMf5HnwBjAi0mkCxVzOo/TW4c50JM8b?= =?us-ascii?Q?9d5QeNXHlpxiWgwuPY5q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xT5H9s21b7TbeESvUqoeELH6x6RfbMlrCe4bhvMIyJcI+477KWRzreMkRZK4VFRQLBEaKAD58IVRnCQqLNgSjAnPqZeTpGa7jqRq0K9oEsccoMRZXr+SeN9ylJywbSnzgznlhoujGFIOLfsBswQdB9RwYmNR+B0Yw1zK+GmkICpw04RB2JFl//kxOj8bfO5OHjmFQc1XpuuzM/L5qO3HkzHKcHTNhMIvqiAKris7oQ2r+ix6KIrgkBp7gYzJvuGGUaaAofWAJ9WgMUI3NKcPRmrpZLHXpDSewSaotnyFHHsWQbm5d/AJ69EuMkIZDWPZRTTmP6FZKaNJxAdjewENbHyWh64awLiH1b7kHxBgFsgyF84nb0IPLEsN4OAImGMWM7tzOSCO1oCv8tHtQDeJH1fWlN3N2OgvoG+eRIag+k/YlmR/LqeD2+PwgJHJCestIfohCKNEj78K7v0nYlD2oq7ybEG1dQ/kJmCBdLkKX3Rh/ndbD8EegAHOks/HDyBmTyDy7i2MVmhcWKytSEU4= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 08:06:06.7689 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3070 Subject: [dpdk-dev] [PATCH v4 1/2] examples/performance-thread: reorganise arch dependent code 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: , X-List-Received-Date: Tue, 04 Jul 2017 08:06:15 -0000 Moved the architecture dependent stack set code to architecture specific directory. Signed-off-by: Ashwin Sekhar T K --- .../performance-thread/common/arch/x86/stack.h | 94 ++++++++++++++++++++++ examples/performance-thread/common/common.mk | 8 +- examples/performance-thread/common/lthread.c | 11 +-- 3 files changed, 102 insertions(+), 11 deletions(-) create mode 100644 examples/performance-thread/common/arch/x86/stack.h diff --git a/examples/performance-thread/common/arch/x86/stack.h b/examples/performance-thread/common/arch/x86/stack.h new file mode 100644 index 000000000..adb8e4fc2 --- /dev/null +++ b/examples/performance-thread/common/arch/x86/stack.h @@ -0,0 +1,94 @@ +/*- + * BSD LICENSE + * + * Copyright(c) 2015 Intel Corporation. All rights reserved. + * Copyright(c) Cavium networks Ltd. 2017. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Intel Corporation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* + * Some portions of this software is derived from the + * https://github.com/halayli/lthread which carrys the following license. + * + * Copyright (C) 2012, Hasan Alayli + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + + +#ifndef STACK_H +#define STACK_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include "lthread_int.h" + +/* + * Sets up the initial stack for the lthread. + */ +static inline void +arch_set_stack(struct lthread *lt, void *func) +{ + char *stack_top = (char *)(lt->stack) + lt->stack_size; + void **s = (void **)stack_top; + + /* set initial context */ + s[-3] = NULL; + s[-2] = (void *)lt; + lt->ctx.rsp = (void *)(stack_top - (4 * sizeof(void *))); + lt->ctx.rbp = (void *)(stack_top - (3 * sizeof(void *))); + lt->ctx.rip = func; +} + +#ifdef __cplusplus +} +#endif + +#endif /* STACK_H_ */ diff --git a/examples/performance-thread/common/common.mk b/examples/performance-thread/common/common.mk index f6cab7718..532dbf61d 100644 --- a/examples/performance-thread/common/common.mk +++ b/examples/performance-thread/common/common.mk @@ -37,8 +37,12 @@ MKFILE_PATH=$(abspath $(dir $(lastword $(MAKEFILE_LIST)))) -VPATH := $(MKFILE_PATH) $(MKFILE_PATH)/arch/x86 +ifeq ($(CONFIG_RTE_ARCH_X86_64),y) +ARCH_PATH += $(MKFILE_PATH)/arch/x86 +endif + +VPATH := $(MKFILE_PATH) $(ARCH_PATH) SRCS-y += lthread.c lthread_sched.c lthread_cond.c lthread_tls.c lthread_mutex.c lthread_diag.c ctx.c -INCLUDES += -I$(MKFILE_PATH) -I$(MKFILE_PATH)/arch/x86/ +INCLUDES += -I$(MKFILE_PATH) -I$(ARCH_PATH) diff --git a/examples/performance-thread/common/lthread.c b/examples/performance-thread/common/lthread.c index 062275a43..7d76c8c46 100644 --- a/examples/performance-thread/common/lthread.c +++ b/examples/performance-thread/common/lthread.c @@ -76,6 +76,7 @@ #include #include +#include #include "lthread_api.h" #include "lthread.h" @@ -190,19 +191,11 @@ _lthread_init(struct lthread *lt, */ void _lthread_set_stack(struct lthread *lt, void *stack, size_t stack_size) { - char *stack_top = (char *)stack + stack_size; - void **s = (void **)stack_top; - /* set stack */ lt->stack = stack; lt->stack_size = stack_size; - /* set initial context */ - s[-3] = NULL; - s[-2] = (void *)lt; - lt->ctx.rsp = (void *)(stack_top - (4 * sizeof(void *))); - lt->ctx.rbp = (void *)(stack_top - (3 * sizeof(void *))); - lt->ctx.rip = (void *)_lthread_exec; + arch_set_stack(lt, _lthread_exec); } /* -- 2.12.2