From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0082.outbound.protection.outlook.com [104.47.40.82]) by dpdk.org (Postfix) with ESMTP id 6A9297CD9 for ; Tue, 4 Jul 2017 06:54:46 +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=k/d9fETMgMIntigwbFVMDs0WR8K4NqqFhagCZWR70ek=; b=ZTGbqKRZltB+YlIJWXZB5ATuvJ2XGzMB1T25j373kLs54ZVqHWVmDvnGTMdpmeIoBDKjcZ/UQZH6yPrYRAIokQLeVdYJKTIQW1MV7hB0TOBbsWcHuaaDz1gknxe67Ko8fzpHyIgA7nyZ70dx2bBa9yoZQ3Sf+27D97eQwekLzoA= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin.domain.name (106.200.206.49) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) 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 04:54:41 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: harry.van.haaren@intel.com, bruce.richardson@intel.com, hemant.agrawal@nxp.com, gage.eads@intel.com, nipun.gupta@nxp.com, narender.vangati@intel.com, nikhil.rao@intel.com, gprathyusha@caviumnetworks.com, Jerin Jacob Date: Tue, 4 Jul 2017 10:23:06 +0530 Message-Id: <20170704045329.24711-12-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170704045329.24711-1-jerin.jacob@caviumnetworks.com> References: <20170703191402.3638-1-jerin.jacob@caviumnetworks.com> <20170704045329.24711-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [106.200.206.49] X-ClientProxiedBy: BM1PR01CA0106.INDPRD01.PROD.OUTLOOK.COM (10.174.208.22) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 903f2df7-b2e0-4666-360d-08d4c298c9d4 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:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:hbbCtFcw9AnDv4L5+Fxie/sdxpueTKeGpS5f8pps/WvGi1PnfidRnvV/pPMgtlhpk2hCp1XkAD4t9wFa/aUN9uknhXZ8I6UcldsaaQrB5LPGFsNKSR5+juvJAf0xg9DvyJX1lOWDKjc3meg7byYhzOLaPHFiwgs7Broid6er1DoL7xmsEbleQrsWXHKEa2fY3Za5INywgolPWsFp6U1uRa4AOmCxedexRyCDrawAjRqg+fpEr8pOxGolmHamupmMrI4FfrQUvvwE08gU23LkpDcLW1xs8KQetWr1cKhbe5XHr7p0vxSt3LMPLKov3Vg2o2X0idhqk9S8+E3eT5rzjavuu4RQeGzTEqzWvBSJej98YcMcQqLygTydofXqwqzuGruOL4iaG+sNDIiMxs41LZqqDZKe/D+9ozrzcay5MgO2m3ew7Ur9Ye1r5N8S5xnFOXHLsC5+lXvLmooKunSBGNVSFhPvr0TW9146iUpv6D9rQ4tuAi/Q0MyrRCYsV1f38pkGV68RCw7FwULVaAUSaLREcQoJIMAdTfCyExRP1viCAc3ZVoeR86CY6QTMu6GqtZRwUSaJoFWXhAyQ/l84mn1qgRK2aedHM3KvSdYa2l+1bLpj7+4x7gV5vB6TLhJ6BqCrs6RnhyGpSrM6EiVC/ck++AqeJR8pjkabszVAeQ6wTW1ofBbO7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lHcqHogWR98RzGWzz2rS4A9ssmjnaer/9aYWE0jcpEvsG8dzWbsfNJkCAmcF8kOde9WQov/TRM4eo68TMeAEfQA+sGzA9bo/wAhwAxU9Cz7Cp/sfjZh01lOg0viof7ks28kUMOkeGAcATPMUgOfmwjBFxynLLOH4qeRE7seNqdUikzeCwfDAlxpk4s2OVwFFGa8g/ZomWrSkUdpxricVrGRmDt4i3BV5F10pQAld+Q+QArQ0XQ2Vo4UL4znKIQxPC4m4cF4vFtbSTHGU1yoBlOGsGub/Ibqb7/57YXDNDDU4WYh18rI5lgLB3DVlVFt+tOLgrqwTIKNOf8i6ndYhrx5SY0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 4:IOrEdWze2EiVSTqCnuxDcDKslYNm5BWgug3kB5VR?= =?us-ascii?Q?CKnUb/BzzADqdZHxYwBUZAI/A5v4u7hIn8P1N5JpdkM4Gq16m7ZTt2swEfRz?= =?us-ascii?Q?BfUwh/jDGSqB5xEbgAQKF5o6rS7DKQf0QyN/cm0VYLAu78pkatGsb0a1Dlqo?= =?us-ascii?Q?38Ya4ijK9el5QdNbpmdgSEPNCW932KkqjyCd/hjouOFiQ4ADHdH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IaWVj8cQW4Tazqsnx4m72f+vfyPQqigJtxOvY?= =?us-ascii?Q?3RGrPxyB9og3SYcEO4qK+xukpXlfdmbqVs5CZ4cs09N1GZQuSEJOrDhO8JWq?= =?us-ascii?Q?75d3CyCGb6mdfQXlg5iq7ekCPMrR5ImNAo/1?= X-Forefront-PRVS: 0358535363 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39400400002)(39840400002)(39410400002)(39450400003)(4326008)(107886003)(38730400002)(6512007)(42186005)(6486002)(8656002)(6506006)(33646002)(53936002)(25786009)(6116002)(6916009)(1076002)(5003940100001)(3846002)(42882006)(47776003)(2950100002)(478600001)(2906002)(6666003)(66066001)(8676002)(50226002)(48376002)(81166006)(7736002)(110136004)(2361001)(2351001)(5009440100003)(189998001)(5660300001)(305945005)(72206003)(53416004)(50986999)(76176999)(575784001)(50466002)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 23:jrr9Pe2NqEcL5bY/u5smC36YZ30EofE8vtAP2KS?= =?us-ascii?Q?XJMTBCr9t7z+Zn1HYWWeR7ri3Mrlb0zd68VCY2rnPGvd5ey1Le5xDB+CSC0T?= =?us-ascii?Q?CNIAyYrMnQJwlwNga4/BGMtMhZ/saTuJpvOUwbLSwkCgcvwqTPx6WzZxcWPv?= =?us-ascii?Q?+zK209YFZNiWZzsMUX141/WkFckCt9WKDxD9LLx45wQSh/ibThCkQ6FAqH2P?= =?us-ascii?Q?qIl2GeFCCcEmMpYNWxHsic6aB4RIT5NDvoWoIewKxEl3doC502JWQ99p8eow?= =?us-ascii?Q?X0u+QJmeoLtOuEqTlOKloynSKPRVAAN5wfgAvD1bWy8D+XAN9jZw3k4wzdl4?= =?us-ascii?Q?08lMs8h6AgbJ6oZmM9w/kD4kd5AMPyA46fEiH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?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 6:pYkkNEjRsTH11OYy+qitazejhjYl0kUipPNe/jou?= =?us-ascii?Q?U+HOJvpxWmVKNBwgtnO5D+Lfi7gvS29W1IdGPnOURQ6WUN93+/fRpIrWHW/T?= =?us-ascii?Q?WyT/Hm6V/2PRnn1vof0stBlqEisWyYNXqu0qKNQz5X6+yXvUy6wm/ymlDzID?= =?us-ascii?Q?FHHrsvgb8b/QK6UW7oqbGDdOpDM8jrIS+HEqbSmNifzGwfJhH5E9kl9Lca4/?= =?us-ascii?Q?zey06DgYCxC3P2zMb6oiNm9M3W7DVXNIhkORK/DhJOs4/4pEHlhWN6gaIbR5?= =?us-ascii?Q?EOfXQXgIo4ZjKilqxmc6na64YLaDCydK16nN2tW2efioV9IcVGwetTTVCYk+?= =?us-ascii?Q?c4LzJa4kAcD7ifk6xfqGJKx7YoY/CzPnmG65QjgAOgnKgys0cvcuiAvPMhrg?= =?us-ascii?Q?1q9WhsnAa6kNyB8+GuiGAmyI0/u9I7zzMCYT6XTsD3r7pIOF8VBf6zsRVRRe?= =?us-ascii?Q?qCieg6xtypP9itG4mO7W/o9gM6262lkKedaFYNTHShFr02mPYlHrxa41iQCO?= =?us-ascii?Q?Kr3rkvkSugUCeQP0DlsBQWe5udOxHau14p5dVyyanUaVMcV7jwaO76R8hyo9?= =?us-ascii?Q?ifIHN4VD5S86GIWS9o1LzmoBDUIHPzYKLOeqjcPL2lWBMUhx4tjV9vi1lqMn?= =?us-ascii?Q?a2vtdWLb9LrAH0Gsta5UHbwDryJG/Rzmp1HHVdxe13NoA0mqc55/gNVPTd/r?= =?us-ascii?Q?Czy2ihFpVwKXQcldunOcPa6qduchkMX12brF84qF7nLi3t0ZoLmynQc9Wd/6?= =?us-ascii?Q?eNqvw+H+KrjxVTzV1VzdOavEHrCkCeuMtSY/LV+TBZpNBMtQuyJHRMxg4Nbt?= =?us-ascii?Q?XC3EzWnEZXrTMRo2dcjmjZdSQO+pGN0mELWu/QksfPJ1M57uCnHA+kQHnGtA?= =?us-ascii?Q?7XcVdoxoGt9NtzoSErWB3uWUonWrrbRpF/MsCF9IVMlYtxVZ/Ke+0SIYte5K?= =?us-ascii?Q?Ox7XpqoGz2pAySXqho8H7r8VUaS4uF1kv8xeSNRp8GqrpJYwbpHJo1acx476?= =?us-ascii?Q?3S0=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 5:SmXRVy2xJ7u3098Yb42vqYoWmVbTs4sVPfjD9NoXlo7l65LDDFvo6jFCygTLiT9HoJBI/6DMeppaCSccXwr8WgFEkiiMPxVDUJIZD4UkJX5eQZK9z66iS87R+IgxTZmyyL6gkxqCGt0JJc4P0wdhV9aVxVYdyH/UgfIhFm44fRbhhA23Ae5JzN86hj+cBrLHv4rSWY8tyKYLd+6KffBIwDvSLZvwlEtsscb5+Qc4V6yGtjUwab26Rmy3YO6HyRK3/6pf36nqFwzQCYpq1N3d7OdToBdOP3Uxo+u3Ufq8ioWm3no3p8T9LxDxu4GNOHKjV0rZdZABcEq6TqNKGsiNZGWnkdyDw8JJ2WiK6cSSVDKkoIBQ6qc/gjB8Jpg4jH13kDReTxM5ujqVQp8ypJj3HWjv08uW5VdJRlu9BxetkR/aIHAO78qRb2yviFDs2I54zmZAG1dHgFERLnvahNn7NcylR96rd5M0CVBqTEy4YV5eY2mT2biziemVMg0l5H4r; 24:f5BYmG4bmkHzqx+pWU4Lhr5etQ4P8QlKdL3LrrKGCEpERWY6GaZeOVKXnQerDG2O6RcvVlxlMQs4QI7tYX3WpCDdg1tcTrDsQgu/F7IU4bA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 7:Ynwn0CoecqAAi11SBgI1uGgIS7wXfubUJxvRMitKO0UgyvEF7qJzuS5hf2of1v4M1Fvg9U9TRJEL7ie59dNiNlPdObeGrn3FZ0rVC15XoVi2TIdByMnmduGR8g2BdJyIWjkJChnlRy8IYdG3VrBSEg7qp6lPOrfLqKg1FlKxGdYX28txneeQxHxFAYJi4wmfNXVyKZUU0MHJ0Bugboznj5PGPASPJA3zrh8ZxcNZhifUkF8/V+RwES6ZiJ67mAfm2it1rVjTPwPpuYzchNQt20nJl+I/gVgQ8uTZH8F/GXE5c6MpUnTvS+X0vQKy+S3/2uklZsCel+77nQVHnXYrgTFPlEdW8WWIEgqaEG/raFDURlU5BwzYS/KU8JVOrqOZHn6/83VGKgh7VpRcjoOABrztp1ob0O61785lZhOMWYTc6uR0EVkumaCM8pysQGMsrmAo+s2ytuatwdvJGF2NkhmHYxVJtWxSPC1+PWAAxa1oy4VEMHB87Wl0sHi2G2K8rw0Kfx07k0RVn+4pi2E5c4h+zAXi2/U3/p39wF7M38QOUm+OoTs/ALQpVZcptpPvAkrNr8wTMvXLFHVwhxbb4ZEAdy9uQRkxYIHCgT7gy+a2RiElMUebz2N5K+U5uZdx626CQXOPcZ+uht1LbPlZq+s0TVfRlfrBXPV/bt/9y6jsN8bmKlmGp5te6w+MDDJrVCe2bdKpCCQNrwr3owuRsCjKzlaT+FBCGn5LKol/5DW3xmh7U3nFMniFmCTXUyvhMXWsPLwhk7ct/nWR+kRq1E7RhkjywXxUhBKSAfdmuds= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 04:54:41.3891 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH v3 11/34] app/testeventdev: add the signal handler 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 04:54:47 -0000 Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- app/test-eventdev/evt_main.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/app/test-eventdev/evt_main.c b/app/test-eventdev/evt_main.c index 27d0ae683..56cd137ce 100644 --- a/app/test-eventdev/evt_main.c +++ b/app/test-eventdev/evt_main.c @@ -34,6 +34,7 @@ #include #include +#include #include #include #include @@ -44,6 +45,35 @@ struct evt_options opt; struct evt_test *test; +static void +signal_handler(int signum) +{ + if (signum == SIGINT || signum == SIGTERM) { + printf("\nSignal %d received, preparing to exit...\n", + signum); + /* request all lcores to exit from the main loop */ + *(int *)test->test_priv = true; + rte_wmb(); + + rte_eal_mp_wait_lcore(); + + if (test->ops.eventdev_destroy) + test->ops.eventdev_destroy(test, &opt); + + if (test->ops.ethdev_destroy) + test->ops.ethdev_destroy(test, &opt); + + if (test->ops.mempool_destroy) + test->ops.mempool_destroy(test, &opt); + + if (test->ops.test_destroy) + test->ops.test_destroy(test, &opt); + + /* exit with the expected status */ + signal(signum, SIG_DFL); + kill(getpid(), signum); + } +} static inline void evt_options_dump_all(struct evt_test *test, struct evt_options *opts) @@ -59,6 +89,9 @@ main(int argc, char **argv) uint8_t evdevs; int ret; + signal(SIGINT, signal_handler); + signal(SIGTERM, signal_handler); + ret = rte_eal_init(argc, argv); if (ret < 0) rte_panic("invalid EAL arguments\n"); -- 2.13.2