From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D17E3C43334 for ; Tue, 14 Jun 2022 14:57:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344058AbiFNO5n (ORCPT ); Tue, 14 Jun 2022 10:57:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343980AbiFNO5m (ORCPT ); Tue, 14 Jun 2022 10:57:42 -0400 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCCC21BEA8 for ; Tue, 14 Jun 2022 07:57:31 -0700 (PDT) Received: from [192.168.88.254] (unknown [125.160.106.255]) by gnuweeb.org (Postfix) with ESMTPSA id 42F6A7E6DF; Tue, 14 Jun 2022 14:57:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1655218650; bh=MEJJW+HkyNBFC87Q4lUwrv9DsSOg+Mvy7O+1cDGO7hY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=oUwIcPhuB3Fu9yjoS8uqpWrgMNwEfX6W2pQn0Hl5dIalmM8PpxOLoQiQQbuZbGTjZ IWcaDx1s8tq8phoXjoFTV7Zttx3Y8o6mZ4CAxkH7rwynQILz19Lx60O/6EnvaYmh8P /ZdB7WI6B3rIydIPddZocdhKIOm94D8KYFFoRde9kD7g7jgc+3aRwVW5qc+N4nBxyd Btd91PvvVKMkxqPskqakI0jPv1/rZZU9vfnTSVptzzxCVvwfM73k3horRs+F0PAeYI Ia0uTnhhofie05fzOT4xP9AIL98GpmTRZ52l2QRjqDuQR2/6oRbZzxyeVCCKGuzTiD Rjq3DaZgJrfGA== Message-ID: <1e971a15-3476-1259-ab3b-7c6953d68760@gnuweeb.org> Date: Tue, 14 Jun 2022 21:57:26 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH liburing 2/3] examples: add a simple single-shot poll benchmark Content-Language: en-US To: Pavel Begunkov Cc: Jens Axboe , io-uring Mailing List References: From: Ammar Faizi In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On 6/14/22 9:36 PM, Pavel Begunkov wrote: > +int main(void) > +{ > + unsigned long tstop; > + unsigned long nr_reqs = 0; > + struct io_uring_cqe *cqe; > + struct io_uring_sqe *sqe; > + struct io_uring ring; > + int pipe1[2]; > + int ret, i, qd = 128; > + > + if (argc > 1) > + return 0; > + Hi Pavel, I am testing this and it doesn't compile, the main(void) needs fixing. ``` poll-bench.c: In function ‘main’: poll-bench.c:39:13: error: ‘argc’ undeclared (first use in this function) 39 | if (argc > 1) | ^~~~ poll-bench.c:39:13: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [Makefile:34: poll-bench] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/home/ammarfaizi2/app/liburing/examples' make: *** [Makefile:12: all] Error 2 ``` -- Ammar Faizi