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 6D7F4C38A2D for ; Mon, 24 Oct 2022 22:22:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231390AbiJXWWX (ORCPT ); Mon, 24 Oct 2022 18:22:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbiJXWWE (ORCPT ); Mon, 24 Oct 2022 18:22:04 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32391310139 for ; Mon, 24 Oct 2022 13:39:35 -0700 (PDT) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1666643404; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zsWI96o4w8c8eUFgtigJ/z1UpFVy3skQcupzwRs6fgU=; b=YM749q7JKK6b0APfcTk4m5hBPm6TqTLrhIQSbM3JutdWTsF7af6XPgfHluk/9Pj6exI6yc EdP8TZwXc5vSPJURl70ke6OL+DH2A8WQ4g7I+CTZdePc9xYxgDuXEDHfyhyJ/WV0c0s8Yd waUs+UlFc/2wEjEBU3vMs6ZCJFEgncA= Date: Mon, 24 Oct 2022 13:30:01 -0700 MIME-Version: 1.0 Subject: Re: [PATCH bpf-next v4 6/7] selftests/bpf: Add selftests for new cgroup local storage Content-Language: en-US To: Yonghong Song Cc: Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , kernel-team@fb.com, KP Singh , Martin KaFai Lau , Tejun Heo , bpf@vger.kernel.org References: <20221023180514.2857498-1-yhs@fb.com> <20221023180546.2863789-1-yhs@fb.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: <20221023180546.2863789-1-yhs@fb.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On 10/23/22 11:05 AM, Yonghong Song wrote: > Add two tests for new cgroup local storage, one to test bpf program helpers > and user space map APIs, and the other to test recursive fentry > triggering won't deadlock. Other than tracing, it will be very useful to add a bpf_cgrp_storage_get() usage in a cgroup-bpf prog. Exercising this helper in the existing SEC(cgroup)/SEC(sockops) tests should be pretty easy. eg. The SEC("cgroup/connect6") in socket_cookie_prog.c.