Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp104928rdb; Sun, 14 Jan 2024 08:20:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7smiXQ2Sp6BuK8tLx/r6FVLOajqxce9WjiL6eENRPD3SwvZosyV1LVEaT6KjWIwE0cB++ X-Received: by 2002:a05:6a00:1da3:b0:6da:dbd9:1742 with SMTP id z35-20020a056a001da300b006dadbd91742mr5605747pfw.57.1705249236744; Sun, 14 Jan 2024 08:20:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705249236; cv=none; d=google.com; s=arc-20160816; b=u+3trTV3nWSa0ym/H/0e605QBlg/SsmpNAJdlknJgO/hfpHQvHjjAQdMVn3jXndCdt Cx2CqogXvVh+d3VETUR2IiX2SFR/v2rOhKLhXaOrsERdurGroEoPLCQeRtLc6D0BGHTI zXdcX/K4Bb+TgjYX8RCkchsrYwhd3CmS4YkwXpUBF5e8l9OBNdtDkUepmW0C9qKAdnT9 ZR5KfBusUMaBc81OMg5C5R7fJSSvYlUKQQvTRkISvw3lQNySDrAPBI3XWBOOSgNbjskF o/jCtYYn5FHJzEmdxvh/nVE/D/RaJYj1KFq4CFuYm+7uVrN3xJCyuCzE/0VUBCd7w1aU Wahg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=Ob+ewjm1po7vxDsnsMZK4wfnKXAjgx93n3f5HnhLilw=; fh=wJnKoHyT4uraRVqYp003lMKk9s6AbH+I8Rt8pLsEEA0=; b=SXsph7ZbMdEcFerECbi6bTQUywcLmhvGa9sWcTAzWPUlbeJpBTPv7VGpOVPdw5yu0f sDiN2vpfyUVhz0Rob7aGFqTSkzhRDixqsCqJe8WwVU7O7OVcB7j6CeKab8Ag6kQkHuNp eAK/lWGO35YcNFkxWeTX8YOKPrVicFwy84Nbj+v71u9+N4eRkqkvnCdNHDJcdEcQ+9/7 OunmJhtN5SJ+qwLymDwVfNorZWqIWveflhBueMVIvmxbCmB0Y/9mCyX9kGp8Epq/V8Kp +OK78hUsemYrph1J+EeCAfyiIIkrder7pVIsUIxJA4//vADvDH/d+YzgTw/Aq7Wgjspk wT3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-25510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25510-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id cl1-20020a056a02098100b005ce018f427csi7835249pgb.235.2024.01.14.08.20.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jan 2024 08:20:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-25510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25510-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9DBF3B21450 for ; Sun, 14 Jan 2024 16:20:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5C945234; Sun, 14 Jan 2024 16:20:27 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 523003C36; Sun, 14 Jan 2024 16:20:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FE04C433C7; Sun, 14 Jan 2024 16:20:25 +0000 (UTC) Date: Sun, 14 Jan 2024 11:20:14 -0500 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Vincent Donnefort , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, mathieu.desnoyers@efficios.com, kernel-team@android.com, Shuah Khan , Shuah Khan , linux-kselftest@vger.kernel.org Subject: Re: [PATCH v11 5/5] ring-buffer/selftest: Add ring-buffer mapping test Message-ID: <20240114112014.7503163f@rorschach.local.home> In-Reply-To: <20240114231711.0959180366d8823dd8543241@kernel.org> References: <20240111161712.1480333-1-vdonnefort@google.com> <20240111161712.1480333-6-vdonnefort@google.com> <20240113223946.9c463c5a4787dc0261789e65@kernel.org> <20240114231711.0959180366d8823dd8543241@kernel.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 14 Jan 2024 23:17:11 +0900 Masami Hiramatsu (Google) wrote: > > > > Looks good to me and tested. > > > > Reviewed-by: Masami Hiramatsu (Google) > > Tested-by: Masami Hiramatsu (Google) > > Sorry, I should cancel these. I found this test did not pass if I set > the function tracer on. > > / # cd /sys/kernel/tracing/ > /sys/kernel/tracing # echo function > current_tracer > /sys/kernel/tracing # /mnt/map_test > TAP version 13 > 1..2 > # Starting 2 tests from 2 test cases. > # RUN map.subbuf_size_4k.meta_page_check ... > # map_test.c:174:meta_page_check:Expected self->meta->entries (15293) == 16 (16) > # meta_page_check: Test terminated by assertion > # FAIL map.subbuf_size_4k.meta_page_check > not ok 1 map.subbuf_size_4k.meta_page_check > # RUN map.subbuf_size_8k.meta_page_check ... > # map_test.c:174:meta_page_check:Expected self->meta->entries (15270) == 16 (16) > # meta_page_check: Test terminated by assertion > # FAIL map.subbuf_size_8k.meta_page_check > not ok 2 map.subbuf_size_8k.meta_page_check > # FAILED: 0 / 2 tests passed. > # Totals: pass:0 fail:2 xfail:0 xpass:0 skip:0 error:0 > > Does this depend on "nop" tracer? Yes. > > > + > > > +static int tracefs_reset(void) > > > +{ > > > + if (__tracefs_write_int(TRACEFS_ROOT"/tracing_on", 0)) > > > + return -1; > > > + if (__tracefs_write_int(TRACEFS_ROOT"/trace", 0)) > > > + return -1; > > > + if (__tracefs_write(TRACEFS_ROOT"/set_event", "")) > > > + return -1; Looks like the below is needed: if (__traces_write(TRACEFS_ROOT"/current_tracer", "nop")) return -1; > > > + > > > + return 0; > > > +} > > > + -- Steve