Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp665732rdd; Tue, 9 Jan 2024 16:26:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2YcC/+mEvHjqfTBuZvfCmMSuHafTiicnCWZLx61227uZPoWbVSNtGDgGa7K0bU9yKUUIr X-Received: by 2002:a17:90a:cf10:b0:28c:134d:fca1 with SMTP id h16-20020a17090acf1000b0028c134dfca1mr116245pju.16.1704846404997; Tue, 09 Jan 2024 16:26:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704846404; cv=none; d=google.com; s=arc-20160816; b=rG4bGeCcUHLkrx6qpaBG3762uu2NlxZry0Zj13Z5AnhjlsuVWaQXhsVeCulbsY3PCI NC6iXbvE/f6SoEg8GQG51RJL6CRSv5xZSrFkn1rwv70abFiPkwpa2gE7lvaddh5i5TWJ JexcWzkeV39lXpLrlIQX9LTX2iZUni1oJ0WWwIRkPkt5/NuRVzVrJ+/Qzwq1GeWy5Ddt AtUpykuyc2mrNsYftwe9ig5muHNahRNvHeCAb95UG5/HfkUhU8FRzaSVLmrj6grEMW2V /gFCGGO5GRy6SBZXkaMxDZUlM/6oJ/e5NilQq6ah9Qs644nvFe2QK8gWzO6WFeJ5ELKl OOtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=7hriQJykUGbCZHrp0p8WR5gw3Nx0Y5gCOyCGd42caIQ=; fh=kKHXs8WuAHG4ZruclJt7CdlwwCcghIRYbF1T84pvsFI=; b=hXQTaXYGuuXz7rnUd2w+0qjYlkzt6Vg2FFtQ+gZs/ZYM8zXSAuSxi0oiraNxDlIYHM mwUDQgKlqj3JicrRpsYSIn0eGbdimp6ukgGl+QA+xRNuSHVUhmboIIc9rABNKSOJN5et TdIAI8BBmL3pwl/RXxPyOoEhggPp4RXloMb5SwyJ+4f4mUuGy8dtVII3JJFWlBlILVga efM1iHgftoSt/ai1mkjC4P0/xtqZbFpFOB2OrNr1l7P+eUJKjB64pTwE4GnlKJd2dTsT Nr4IANowUBDLafXJ33Q5p03jMNWrEj3iXV24RV72DaDtf38bwaLch6UeyFVZjJ4feQNz md7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=GAmpRe8P; spf=pass (google.com: domain of linux-kernel+bounces-21571-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id g8-20020a17090a714800b002865ae767cesi149303pjs.172.2024.01.09.16.26.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 16:26:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21571-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=GAmpRe8P; spf=pass (google.com: domain of linux-kernel+bounces-21571-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 593B0B258EE for ; Wed, 10 Jan 2024 00:26:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 815D3645; Wed, 10 Jan 2024 00:26:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="GAmpRe8P" Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72EEC389 for ; Wed, 10 Jan 2024 00:26:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qt1-f180.google.com with SMTP id d75a77b69052e-42998e38716so10903071cf.0 for ; Tue, 09 Jan 2024 16:26:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1704846390; x=1705451190; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7hriQJykUGbCZHrp0p8WR5gw3Nx0Y5gCOyCGd42caIQ=; b=GAmpRe8PtfzRR6/eKLcRSf+xpey/uzdv13NWI4nh/j6b2JxCDGsYFf/jN8quGamZt5 0CNErSx8OoTH/LH+lqa8avR0HDbJ+aPrW1Qh+oKQus7GV2O8RLCBrFCWK+tozTZF8th4 mmwt2oeabagXzr3RjjrYjqYKO9kQhJ5tgW3YfLiW8JjT4wM88yqjvD3agjSzf0kLYWYF 6fwvNQz8UVjTOUjCovas/uaBRHSzvwhyV4AVe3RlZWrKabCI0W6cEXKYUHDTaEJINd8+ puv64ia/Q0HhOOygkKpwnboLOyFAJFrtVDhvuaLaJ2WBdD/m3ZJw3gQd0V7VMT6eIIV8 ZlSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704846390; x=1705451190; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7hriQJykUGbCZHrp0p8WR5gw3Nx0Y5gCOyCGd42caIQ=; b=EMiGJWWgp3rkszf7Uqqqrab1UTN21dpZqCxnAafeLiZQJsGacNOEtdxF7kbLskU/Bx hWGNLmZw50+K0RS2MTf0BduFJn24JCPIRKooMUcSgi85EqLplpscK1mfzMHXm1fBtIhJ hKJk6eiUcxUvxwMBCPg5nofbBM8iZchtvJX9RbyOnWCVeIsWB7AKUNZ4ilmqyAeh8TIs gLHL1+F24qyJkoALE5xExD3WfnwmzLGvhdu6irIx+xMxfagPVrjeaKhKYDj1VszSkfrI msafhY3UVQmet1LyJozEbngJid64X2+23OjW2aV57HTd14eiMVKaPAqbbdLavyyXpkbk gq1w== X-Gm-Message-State: AOJu0YzZWOB6Aw8EItVUUhff4hYNxGY6hY0tgv+7i00iew2TQ86HFOv3 mv/dkEPVE5vaKKTWOuIUPwxNpqDZiHR+ X-Received: by 2002:ac8:580d:0:b0:429:972d:8781 with SMTP id g13-20020ac8580d000000b00429972d8781mr316318qtg.38.1704846390186; Tue, 09 Jan 2024 16:26:30 -0800 (PST) Received: from [192.168.1.31] (d-65-175-157-166.nh.cpe.atlanticbb.net. [65.175.157.166]) by smtp.gmail.com with ESMTPSA id ex16-20020a05622a519000b00427f47af434sm1325635qtb.61.2024.01.09.16.26.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Jan 2024 16:26:29 -0800 (PST) Message-ID: <1ebf65a2-810b-482c-85f9-7ce02ec4970a@google.com> Date: Tue, 9 Jan 2024 19:26:28 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 bpf-next 2/2] selftests/bpf: add inline assembly helpers to access array elements Content-Language: en-US To: Jiri Olsa Cc: Andrii Nakryiko , Alexei Starovoitov , Daniel Borkmann , Song Liu , Yonghong Song , mattbobrowski@google.com, bpf@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240103185403.610641-1-brho@google.com> <20240103185403.610641-3-brho@google.com> From: Barret Rhoden In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/4/24 08:43, Jiri Olsa wrote: > I wonder we could use the existing RUN_TESTS macro and use tags > in programs like we do for example in progs/test_global_func1.c: > > SEC("tc") > __failure __msg("combined stack size of 4 calls is 544") > int global_func1(struct __sk_buff *skb) This worked, thanks. The style of test I have right now is that each test is a separate program, with all programs in the same skeleton. RUN_TESTS attempted to load the __failure programs, with the side-effect of loading all of the non-failures too. Thanks, Barret