From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,NO_DNS_FOR_FROM, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 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 List-Id: 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