Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3415903rdb; Wed, 13 Sep 2023 11:16:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqzYHPxCApS471iN8V/xzqO5NSBXRTjlMUKKIdlklgcoEWKadhLg63iPROcczTqXdr5F96 X-Received: by 2002:a05:6a00:18a1:b0:68f:c078:b0b6 with SMTP id x33-20020a056a0018a100b0068fc078b0b6mr3811979pfh.10.1694628972224; Wed, 13 Sep 2023 11:16:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694628972; cv=pass; d=google.com; s=arc-20160816; b=hq/QViSw8B05qkj9AzZS2/hF6fBnOUf+0dVv82lvcCgZyVRaoOIQkIcMjsDFL73VLu nFdB6dYmzZkZUL5/npirQJNJuw7pyFbWPNQM3TKzOFvkCAZges4mqlXwKQwNrhiVBtn6 rxoH4N02aAXjdd9BIJiYVNVFbC8JsifQ76AdLNA3vrNjOUQmvU7AJ/Rm8YkSeZ6dboFf g33k3wPypjcXEkfGGk+JCBKQpuupXqRyzJ3mxJkh++CIG7/Xj4V5BsHgxtPuiSSS/g8U mQtNZJkef2ePSzPt7WY5EmEmXyge7FWCyUDJpKF/Wzhq93WCgH5XwGu2tnzFxlKOVuHk MEUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:subject:user-agent:date :message-id:dkim-signature; bh=dYyvZluYBLrf1eTt7h14miI4PTsxZkiSKZubhsyejiI=; fh=KSfmf998x/OAYj3T/9LRLfC2Hok2OX/i2IOEyC6Z7eQ=; b=JSZqbn7D+EznrOE3BJ80S8LpRdKmqJOioqB16tZpGqvjTEN0wEZRBuHB3p2LzahyRk 3AOkiZzghvC1UE7SgTXeBk3gQxe203Sxs6q+YhfX2FZHLHhW/0PGoVgj7GSu9YYT6NvM J/ncuFDe28bdPQCUmdw2aAoyNyYEOi4Ti2OpMk24RVE2iwI0TqGGBQcVG2rQPbEoAGoY GODCmP3Pft8s6cC8T1CAi/kc8K+3OdGfWLRv10JMVq+X/IX09e32A0+C5lYbCCvEGXxJ d/Fpxh3JRdATcy1e5qwrAuCNynQiUyCTijbq5LIehHNkoB6F9sM3PP93t+MWb3d3Usym 8jaA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Nx3hFhlN; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u19-20020a056a00159300b00687008df88dsi8200725pfk.52.2023.09.13.11.16.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 11:16:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Nx3hFhlN; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 4675F8182EDC; Wed, 13 Sep 2023 00:56:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238663AbjIMHzz (ORCPT + 99 others); Wed, 13 Sep 2023 03:55:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230300AbjIMHzy (ORCPT ); Wed, 13 Sep 2023 03:55:54 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2129.outbound.protection.outlook.com [40.107.215.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 865601729; Wed, 13 Sep 2023 00:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jrs0JFfV+C2/vbvTwnFoX2txBN6AGGD7t1fgbNIq7KJgHhqJa+zN7UNjV/vpdtfv5PIzOZUgGt2jTqFhbSQBzT4rAPtusmiMBlWeA7cw4HNhO7HySi90DxrUqYezpkrmzrk3HdHs5mld9+RjghgUlfpfxjD+0GD0lj+n1OK5hCbfVxYeGUvJsW7/fdbPfAPP+X9/Eoa5IKGgOcUjUpfmlgQlJ9lmz2FjtpHYmpKZ6RLpm4SEFZZW4ZZBuBWuDHROPUhX1EPtxH+GEa2NfF5UbBvN/bJhlN+MDd3YpIGkMtYeJNwt+I2VYF9RtmcZKuyu7N9BTgO03GxU3stAiQxTfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dYyvZluYBLrf1eTt7h14miI4PTsxZkiSKZubhsyejiI=; b=HiyQohybPHTEvYhM0EBOl4kOFxyZEf4+Lhjz2YGaUJqq8iQca4U10OZp3GNuvqGkZZz+tVJH4DMP9My6E39st6NSaFSMO7p7iUun15mID1rk8quBhgAxhxFa6sVesitJUJhKLXzR227KYDtTKBl6M8+HwaJjK8U6CoQWbCrf5PirGaJXaNEnRyNFOJYiEmSWTUi44FjdKU2G7kHTu0lRjNINicT4SO1kExWvGLg8dlURya3EUeAIJbUUYsXlOCmb7qJJkXO+rVlpBgclRFSWU2B2GEtLPJV3yuMYBRswdp92uqWt67ipgmITvEteCQG3Hptns7hbwODiTNBkV4w5yA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dYyvZluYBLrf1eTt7h14miI4PTsxZkiSKZubhsyejiI=; b=Nx3hFhlNu52tGZ+R+fosHGlVP3FR2Pt/V/I9iSbUUAhIAonJJQgLPnIBE6DdgaHTMbh4fSIqT03jJeOn6XOL0/bqp8QGLIL2ue3EowlsDEtWLF8mFmdoTxFlAEjjc+53U/8mJ/d9KLYcGCxpO5zWby8tOimi+Fj3PDI5+2B+cPswoIP0F/Ju9Gp3rEEBFei/GUQlQ79i1VDCmwjbwWoAUCbRWry/ee4jitANCvXfNjw6mWq0ybjs4D3OkLpKvzJmLI+Q9NtzaoJi13E1xPanGatrGRN/zQr/VrhGCV1/dTlIU0yMJTiqDFLQtmxFf9xAsSPf8xt+647dVoyzEu1CdQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from TYZPR06MB4045.apcprd06.prod.outlook.com (2603:1096:400:21::8) by SEZPR06MB5069.apcprd06.prod.outlook.com (2603:1096:101:44::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.30; Wed, 13 Sep 2023 07:55:46 +0000 Received: from TYZPR06MB4045.apcprd06.prod.outlook.com ([fe80::1c25:781c:9638:960d]) by TYZPR06MB4045.apcprd06.prod.outlook.com ([fe80::1c25:781c:9638:960d%7]) with mapi id 15.20.6768.036; Wed, 13 Sep 2023 07:55:45 +0000 Message-ID: <39a426ed-9b78-4d7d-a35c-d99c69115982@vivo.com> Date: Wed, 13 Sep 2023 15:55:31 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH v2 4/5] bpf: Add a OOM policy test To: Chuyi Zhou , hannes@cmpxchg.org, mhocko@kernel.org, roman.gushchin@linux.dev, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, muchun.song@linux.dev Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, wuyun.abel@bytedance.com, robin.lu@bytedance.com References: <20230810081319.65668-1-zhouchuyi@bytedance.com> <20230810081319.65668-5-zhouchuyi@bytedance.com> From: Bixuan Cui In-Reply-To: <20230810081319.65668-5-zhouchuyi@bytedance.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI1PR02CA0058.apcprd02.prod.outlook.com (2603:1096:4:1f5::9) To TYZPR06MB4045.apcprd06.prod.outlook.com (2603:1096:400:21::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR06MB4045:EE_|SEZPR06MB5069:EE_ X-MS-Office365-Filtering-Correlation-Id: ee60e16e-bb52-4bdb-9c9d-08dbb42ed61b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GwwcKsH+KjF8dGH0la7nw+aBvJ7Gv+TCEl/WFGET8/0m8XlrBuakfvwaLtvoUxNqIU3IGEhuHk+x0+n181TBZrFKH6b4Ng4g5d7BITvLBoZK1+ajgs2Q74R33mvM8mVd/5JqIWFrPvm9NaKuOb6GqzHLVGi1lfoKkt1WIugGu7qeixf5K+AC2VPltHeR8u7Z1JRH9WsRxxjFaxMvlH8mvOXS489GudNsFjZZ2wyydQ2k86OYdzj1jvcn5zbv76ubUGDM/Mx8r/E0hm2F+Au4scdUEEboZd8GUI/UxVYEdmCCt/gaD7W97I4KZJBEjtZ0fT28ygIIyObcWz77/jp6sGXUHDoUvPGNkUMlEwlGiNEIT3QamgsrQZuek0LHcz06sGr0Kq38Eguf6tuERyhWjkfg8J0za6iQaXSOsdjLsJhoZZuOGJiGM2UCV+5c8IdJALYei6nNwyp2ohFqN0tyw5C7lGuD2bb4nV91Q6bbOxmWk/F2r7qrp9KTnpiAZWpZq+3rpqO9VW4pKfOJLhFTp2iOTZQ3AxAtAIePzP71GXNMeynmXEORdFpvXhKPIT7YQvAnbX/2EUnmQodNa3RQtkBL9JYKyMRFOuztBo9asUQQ0lSQWnrbL/JgQi3h/STf5wzfo5ZAA3ZphfO7W1IhbxN6MlwknHGjXuU1HoIuCofRFTuS66ZP6rPy0wZb2qHo X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR06MB4045.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(376002)(396003)(366004)(346002)(39860400002)(451199024)(1800799009)(186009)(2906002)(38100700002)(31696002)(38350700002)(36756003)(86362001)(558084003)(41300700001)(26005)(4326008)(2616005)(8676002)(8936002)(66476007)(31686004)(5660300002)(66946007)(66556008)(6506007)(6512007)(316002)(52116002)(6666004)(6486002)(7416002)(478600001)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Wk1UQkN3UG9NUHQ0dG94bFFGY1VJa3pDeDhyNVNYeTkvNmYxZy9pVkpCemF6?= =?utf-8?B?dUk4OXdlVUtxTzQ4bzl2b0h0SUhCT2NrK3NQOE1leTZ3bjZLYms0RFhGUzZI?= =?utf-8?B?TmdTNE1kN21JSVZ5b205bDVFUVFVV0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VRw?= =?utf-8?B?aTNhL1Q5QVk2Nk1ka2RKK2R6am1PVGRLUTk1M1ZwWUpmWUJ3TklBVGtSRmd1?= =?utf-8?B?Z0srV3dQZmpkenV6QXNHVElUMGR6bjZxNWRLOHVhTUpnMEJWQUNqell3MUY1?= =?utf-8?B?NUhabCtxM05Cb0Yzb3ZhRkgrOEpKOFFZRThJb1J6Z2srcWZMOWV5aXkzMVUx?= =?utf-8?Q?YekDy7yGoQHi+vUQda3DX/by6?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: ee60e16e-bb52-4bdb-9c9d-08dbb42ed61b X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB4045.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2023 07:55:45.9375 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VpGAz5PPJev9gMBZfq1tB31tGMQPnoSxZyiKM7XSXFxIP7LVEZZLr+nwCCCUiTNmGQ6IXdVLTK4SDA+UCafBUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5069 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 13 Sep 2023 00:56:08 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 在 2023/8/10 16:13, Chuyi Zhou 写道: > + +void test_oom_policy(void) +{ + struct oom_policy *skel; + struct > bpf_link *link; 'link' doesn't seem to be used. Thanks Bixuan Cui