From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0082.outbound.protection.outlook.com [104.47.41.82]) by dpdk.org (Postfix) with ESMTP id 9681A7CCE for ; Mon, 3 Jul 2017 21:15:23 +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=m4QWgVQ9nwO9iN3LcknF+dguYBSkxJJvi1PZCzLRZ6TBvqriwzzDk9g9lfgylXDvIA8Kwwbqose+ErVGW4v7SwnE118a4Qz5wbnEAlSTS5RAebjZ+KrNrf9GP9lZdX9Jo/AM/n/EJ78ZpqBvs0cI8woIqVciekjTC+YdWXenzVs= 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 (111.93.218.67) by BLUPR0701MB1716.namprd07.prod.outlook.com (10.163.85.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Mon, 3 Jul 2017 19:15:19 +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 00:43:39 +0530 Message-Id: <20170703191402.3638-12-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170703191402.3638-1-jerin.jacob@caviumnetworks.com> References: <20170528195854.6064-1-jerin.jacob@caviumnetworks.com> <20170703191402.3638-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR01CA0103.INDPRD01.PROD.OUTLOOK.COM (10.174.144.19) To BLUPR0701MB1716.namprd07.prod.outlook.com (10.163.85.142) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eda5844a-ab1e-4c72-892f-08d4c247da2d 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:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 3:2WIe1Qx+Tt4yJo7GOjoTzZF98f6QeY0Kt2GNfRTLF4Xv7hVroOIjd5VvIwu8xUqEjePN5t0qwabma7KDr5zQZqNIRM08zIozaXuFHYG2T3I4MkIEsIv6s+gInZLTy4hzXHs2FVzQJdxH8gLmUIQYUWhZ9Sk8C53k6CF5aaDlOckzZAnZ3qoKMHWEiizijSSTCKBPQvkY1PxGuclTnKtF/giosX+t6eOlBw/fhj3ff/pGuZA/L8sT0gVkUFfbJsrcskvsTaYXu6DDkcge5kTKxBg8Csh+JBT5yWd8Pv1HH+G8ADhlKlaSfJFBVh3L2aKDsmJH+d+mq1NgF1vZGAtc1pKgWKHUAtAlCUyznRDJzWa+Nlt2hNME/i9PqTYZN+DdVM4UUCpxLkzYLoCCN2lK0I/TXN4zEHMM3lZt4VjE8lk2sxOyRhfOmkKMBSBnDoWdGsnDBMwj0kYxWTDHLyukVulALrTT54Ss2SsfiNCQoz9dZPP/FDebDMkkiBD1Mf2AIl3nQqhEJ41VOKzosITK3OF4vIWL3DiPQrFD6Zm4dsbE+B2GvlMMI2Fi4NaFEHrRFNc6zsCq0LYAHX1Zijdp5GfZkFVnxmn2ekpSC+ziJgCgaMAEBproN98zqlnh0/SWrAjnFh9TwbvFc1XIWPfTgsZpYDGAx0F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ryyq79ixfOw3yFTHhSol2dqrcpJ0Um3n7NTGc7WpEq/IS7m8kenbXYUxdOTFN+PoF/xUBCCfS1Jiem5Gp98Qpgzq+qp2Swmlq/FVVvr54PvapMYyRzRSCVk+r9Qv451qHbQ0PQGk+o8gXY3XOAig5SKUcbhLX+rCrIsxOlL3XSUZmh+6bVoVm2ltzTbeeDJZEmJEwGAHpczxwwFQDaXl0XyE1+Huz0+0zc/iasSltOIfD8yF3S3m+1Jw8hM6LUMk/RDrk5ahehjIhMeoFw1qXQjfW5eatUFf29nnpEIJPS7Ej0MTc9MTOfRDtu79kn69uFB11A= 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)(93006095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123555025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1716; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716; 4:MqoHGTHRj+FVibNrk7nHlTf8b0W0MUWlMSEiyVIa?= =?us-ascii?Q?cV8JLszhG+cpMZYXe8t2KjQbgfFdFPG+cp+cznK44Gy2MXRcny7LlbEF8qBT?= =?us-ascii?Q?NZiRPioJOQCRRp6waE3TvIJSVRQl7pRMDOgvODhCBfnrjzA+O+YgCUVnyMQI?= =?us-ascii?Q?U+RGNXVXg9tIa/D8hWF+OlYFV6BhPklDfvuEAA352jpYaFEdDXMENFGBsow9?= =?us-ascii?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3uo5udzXvKFF?= =?us-ascii?Q?JvYs/ZPofGUXRHowS1JOsF45DCjSQF8tndkT4uJxxC7GSJdRjvQJcMX289F8?= =?us-ascii?Q?QsZ7XMUACHqH1InML4UG7afJSmez2BvDuNw+?= X-Forefront-PRVS: 035748864E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39840400002)(39400400002)(39410400002)(39450400003)(7736002)(478600001)(575784001)(53416004)(72206003)(38730400002)(110136004)(107886003)(42186005)(8656002)(50986999)(76176999)(36756003)(6512007)(53936002)(4326008)(25786009)(5003940100001)(6916009)(42882006)(2950100002)(66066001)(5009440100003)(6666003)(2351001)(2361001)(6486002)(6116002)(189998001)(305945005)(33646002)(5660300001)(81166006)(8676002)(3846002)(47776003)(1076002)(2906002)(50466002)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1716; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716; 23:PW4gv9dzeB8FdI1S+QkaopVDVnF6rDYZ+jvB1tY?= =?us-ascii?Q?//6P7+xN5bVUUEdZTv649r+y3Tg3k2BInRfFHrwm8K089tIJNQchSAs3N795?= =?us-ascii?Q?0UrQjBzYWcmuStpTvhtgTIKXank3I2L10s2XCVwdh1L52JUsvwszdBNFbCoE?= =?us-ascii?Q?ip++gIKnPfsNyhFV54hmZyWL+kQu2sSbzIKbmlXJjOgjWXB7P8gSngTQi1nk?= =?us-ascii?Q?Xa2439/CjDNHE/R3c/diMmAA4dxEPXv6ZIv0Apgw5bKKmxGSn9blQ1IFG9i6?= =?us-ascii?Q?moTfjhDnqpbSFTsqSkff+7//+tlW/CgBeXc7OhSyJyiDrkilCxIKfZizRktk?= =?us-ascii?Q?ImZLb1okNUKCzoeNkV2CTAVPa0sn1RTC9rfxnMJ39NpaTrc4snVRLOg9ogQ4?= =?us-ascii?Q?fwgNx27eQ9aYA6VCqK9ab+7GIr8AJkTMWa5WGja3KWP2VmrdQVZP+sruRs1A?= =?us-ascii?Q?bYoUNHRfvwGtwaeSbApUctIlg3VaJDytkrWj8WMFcrk4xl0d4VMj3B05yZP6?= =?us-ascii?Q?LeCVLWUobFH/Uv/v58Zk31VED8f1RUn+424ouuuHRBBO5zDpoYrw4MQsjSoT?= =?us-ascii?Q?XCznxpfSoW7QulIvQIqmsFPb9e+o9v0W1nVDqYU12C82KwkE9q6+Nuk9MghU?= =?us-ascii?Q?VMQhbUlbcBq4oJy5k6J+kyA4MgyiguSLN8G8HLw85iF3y0jz7FblezZU8Ohj?= =?us-ascii?Q?l306s1k2PgzlOh3p4IwA8pJ+UarPFzyfZhHfoVC3b34EwJEWvS9BAGwbGfq4?= =?us-ascii?Q?Ap0rDU6aK7QXYgZHo7FxWxuojoMm6I8LngigicGmLKTuPLAwJvQGCeXpD1jz?= =?us-ascii?Q?26cTJg1zz6elzaa+2OG5Bc5ltPgE/cSNuLIKFcBamuvykgvYh6KR0tJ7dQc4?= =?us-ascii?Q?QPt0YX/2HW/nqyxau1PzSZWUR9JiHEqD3fqB1M8aocGdkYZQXaOXql4VQ24I?= =?us-ascii?Q?0QjSiOqT0R3AEh5JKVW+wgD7uEME4lCyDUySvieTzxEL16mNMD5Cet0aq3II?= =?us-ascii?Q?1IRdg2Z+N5apbcW0l1LBEz0WjRjOM2mkq/3nODMiw7vJk8nUJmrH9c6HRVzR?= =?us-ascii?Q?wwrAQcrEAW7N3MzRcS6u0BgQEOU790Odp0+r/CFbJ51uVJK0m/f1M/9T1wBG?= =?us-ascii?Q?xB2siPzMe7PXt0yVT4RjeleE/qSv/lGZr8ND+MTZ+Tu04GiAhrxJhDDQSru1?= =?us-ascii?Q?E0yr2gabH1arfbrM=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716; 6:as39KHegZPTlOiwzy0J21pzzvUV1j3jNBVoObWJ2?= =?us-ascii?Q?FfGWu3hrwb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BuhkiBLEANpwWgNUuK?= =?us-ascii?Q?44r2EOPU2/RIVwjbsgzSxjk/n53OYEvR1IuvA4HCXuIz4Oq6dhpnkRmxrU1f?= =?us-ascii?Q?eAI=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 5:UHKgxkxayhCbkmIZJKQiCs6Kil/yS+p5DJqcbC0uYQXF360z3H7TDkr8ZH5+sfaHsnf4aONFyidVh+mnfeUxhel+QpmVWWnEChBO4VMdBKJiB/KNcsiC6VZX9ZIiFp2Zhsozm6NiBresl+6NWLezQejSPN3/+SQcOadMY0l0Ee2yOdFB96AbBuMAo/tsSn13szy+FXf9M2vp45lfaW1eJLihDiOTr8sRLlORGaQlfXNOAeZ/Sgd+HBXTetj2KOqAs97U1IJmvhLh7jjg3JdenF2sIrQPJS2YN1HkyFHQNcjwktNnlHOSMFPUhBun4nVvxHwX4khpgCgUgT/NeQ+VdkHJ+kFD9ekiFVcB3TrT7wq/zHKet+1lgFbnPrk0zBJR7oRuocR1k9diNHoQXlxGaVScWH9otxkEnLzVSWpydg3ieqhNDYnf+mdnmx+eq47eS3ON0JanywnGwLvLOXXaxMDGRqqRQScCLxdYuzFF3t4XsjpWvonbtYGOP9oqmWHo; 24:dNAKY+4eCJG/5nPKc9fbK2VGcx5fCVc3oh0aA6Dajs8pqFjvIlmtfX+QuI6AH+/QySSys64mBkVb9v/FjObTXp85qk/ipScfLBpFx3Gqan8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 7:H1R19e4cvNyQokkkmg7X6e20dVQscCcn+6uWWXJ8wE04ndi6wpyVvHRRXVWxNYJl2m6hsYDyy02Adx/Nc0ITUew/hzvYTaQcRiZP5JoWv5QyMF1o/YWlRH3DN9y4akuMtnoBXAGwLJsf5952KpXiGH0Fiodg5DE3yYQg70ppiZQ3+6IXL2LsUZPFKyNqU9revRqqiamb6VMTwSYza8IlgqZJKFFTaAHrTLAyRYVpitSuzpuz2a6Tp0NRMq8+rTAqjIamESeeWWxhQcVp1XNeKSSy1nsg0ldH2j+7o9sbGreqQTZj8banO2qesOyYgkoQg0wI//DXLJIPJcV/N3sy3TnBFb4Uopx/6+vLxOcHBXkPPZ8Jf9S0HBhdO7gREZyFfloRfa+gF9CLokBfg/MUfDYC2ecrmh/b4J5ehvBTrvaUwk5kM8YrLHGqEolrZWOGbVXVHm2Ivhm96FrTcmats6fLtaNACsuZCQ8nqbWkby6DlTGrFvvhz6/x2AIfyhbxdnbUfbAiaSt10XLXRd7esl/r7aUYX00UT+J8Y7YrWe9bDPDOdERjC5Kz81k9yw6ltcLsuIUmBJf4B4VqTfL+golj8z/Sn6HkvJDBXY5a0WQyms2YFoEc0zsRyJHil/R5yRXGkgS0IFrRBHS/RRhy9b94Q7qZ8gqfd5C0VVrNAN33cCD88nsJn1dVg4u94pJR8U7sKP1ErpWO6BBe+bJtpr7eGx3aO0TX0SrTgQ3l0E6p2NB1+Z/N0eIUHYKkYHb92UR5W7fbaBrQpbso5RtQqwvzXq05GmJfwELDIWRVGFU= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2017 19:15:19.1840 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1716 Subject: [dpdk-dev] [PATCH v2 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: Mon, 03 Jul 2017 19:15:24 -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