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 picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 00743C61DA4 for ; Mon, 13 Mar 2023 14:05:31 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id E9EAA3CAE93 for ; Mon, 13 Mar 2023 15:05:29 +0100 (CET) Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [IPv6:2001:4b78:1:20::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id E515A3C0277 for ; Mon, 13 Mar 2023 15:05:19 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 71B6D200903 for ; Mon, 13 Mar 2023 15:05:18 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 3CD151FE08; Mon, 13 Mar 2023 14:05:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1678716318; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dnNbulv+tv1G96YscZ/TsqqASLJeRfiXKW4lt9q1ri0=; b=l777hweLQ+ibjbju6JqrQ5b+ezEqRs1R2DX11Fl78EYWOZvn6FfsU2yIkRJ+Qn4ATAhEWH pas/T64OWci+gBVLv5SHpZnokEx3/JrACmaCOdsowazyN5x8dN+eDoFNH40N4nDLS/81of vA+xQWvK19TIQ1iV0P0JedH02jBlsZA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1678716318; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dnNbulv+tv1G96YscZ/TsqqASLJeRfiXKW4lt9q1ri0=; b=9PyhbdCYH3YHkyj966+SADWv6JtBZJkCU0fI+vd9JSslsI7NzZ+e/cf+PhXUP7S0Bv3wZU 7ffX0Yld+awXA7Cg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1985213517; Mon, 13 Mar 2023 14:05:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id DPY1BZ4tD2RHPgAAMHmgww (envelope-from ); Mon, 13 Mar 2023 14:05:18 +0000 Date: Mon, 13 Mar 2023 15:06:38 +0100 From: Cyril Hrubis To: Wei Gao Message-ID: References: <20230311023343.25177-1-wegao@suse.com> <20230312004420.16457-1-wegao@suse.com> <20230313122100.GA12608@localhost> <20230313134624.GA9783@localhost> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230313134624.GA9783@localhost> X-Virus-Scanned: clamav-milter 0.102.4 at in-7.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH v3] madvise11.c:Check loadable module before rmmod X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ltp@lists.linux.it Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Hi! > > +int tst_buildin_driver(const char *driver) > > +{ > > + return !tst_search_driver(driver, "modules.buildin"); > > +} > > + > > int tst_check_driver(const char *driver) > > { > > #ifdef __ANDROID__ > > > > Try use above implementation but i found another TWARN : ( > > localhost:/home/ltp/testcases/kernel/syscalls/madvise # ./madvise11 > tst_test.c:1560: TINFO: Timeout per run is 0h 01m 00s > madvise11.c:396: TINFO: Spawning 5 threads, with a total of 800 memory pages > madvise11.c:165: TINFO: Thread [3] returned 0, succeeded. > madvise11.c:165: TINFO: Thread [1] returned 0, succeeded. > madvise11.c:165: TINFO: Thread [2] returned 0, succeeded. > madvise11.c:165: TINFO: Thread [4] returned 0, succeeded. > madvise11.c:165: TINFO: Thread [0] returned 0, succeeded. > madvise11.c:199: TPASS: soft-offline / mmap race still clean > madvise11.c:327: TWARN: open(/sys/kernel/debug/hwpoison/unpoison-pfn,1,0000) failed: ENOENT (2) !!!! That's strange, this should be equivalent to the modinfo patch you send, at least the modinfo parses the same file. -- Cyril Hrubis chrubis@suse.cz -- Mailing list info: https://lists.linux.it/listinfo/ltp