Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp19121rwe; Tue, 30 Aug 2022 19:48:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR52lz0pVuJnX0vfrmnpkx96izd833BmDyJyXijSx89pXc1XVCF9riX8THnDH/DHjmyf2idN X-Received: by 2002:a17:90b:3908:b0:1fe:1a98:abe1 with SMTP id ob8-20020a17090b390800b001fe1a98abe1mr1082363pjb.27.1661914116859; Tue, 30 Aug 2022 19:48:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661914116; cv=none; d=google.com; s=arc-20160816; b=yUb9/PNx+RIJlt42RYNvsyHu9ln6UPBJ7QOUCH7ploxvLKrNzxU0PP+A947W5AHEyz t3KA9slFL8cKCidpxG3lhu6ebsY80Lszd9x4QHGNy+u4yZ3Xrk75EeicyUYJjV9HGkGg VSOK4choBFDhoW8w+2JxH6qHhiIqCLHaYRxYYdthpwdBmLg+I0g9QTe4tbLAVrTxXHua RXyvgEqtU5e4T/q0NL6s1NqlAryfN0pS8v5ud+N5r3g0KRPnaQjoxla6z5o1stOr4LeS OITGtaqIXV3hZvPGQYCu/9m1H+CmrwpVrQvctSYLIRUFbQDx1c4Nyum996dTNJpFjUgh UrXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=N1/+BVc3LNId9ImwCJmgEfOSZndh1NZYsBbvcSr4OHc=; b=cIUR/qQsbipx/aOdmviapAx6WanYU4HE4iPefQcHpgE/foK3Rb83DeEyGf7f1rZ2t4 1A/h7fcny1ZonR/aGRALr2IrFgKQSi8hyFhdh95POjBa9KPlhjX0X0F8aXqFfXcrsRH5 cn7Wjd0iZTBHFciBcVJ+ZpJqumNV0igYDkfoGUKkWgo1166WxBIJk0BQpQHXvUxwb6Xd dyn6eOYXYxGEp7zbtMC56hOZwGdBNkrByDY79aBiBtvyAkMeIrQdgXWrQK6D3pTk2/jZ 8Ef/fXA8I8UygdJTD2Q/1YBxmQA5LNxYnIjQnU0eQOxgwyO4FHxK3m31U2YFCKte5SSv WgxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZX21Jsw4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 199-20020a6300d0000000b0042da7e85aa1si3184930pga.530.2022.08.30.19.48.23; Tue, 30 Aug 2022 19:48:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZX21Jsw4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230083AbiHaCdS (ORCPT + 99 others); Tue, 30 Aug 2022 22:33:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230518AbiHaCdQ (ORCPT ); Tue, 30 Aug 2022 22:33:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07DE7A74E8; Tue, 30 Aug 2022 19:33:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A1F7461913; Wed, 31 Aug 2022 02:33:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADF99C433D6; Wed, 31 Aug 2022 02:33:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661913194; bh=eTHfuq3On28IsRiVZ2H9boyUGWutmmHIbW6a6kyfzkg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZX21Jsw4uSHFioeoVbvJaexz9X9bPCu7Z87QQUrRc8xZbfbr+0z4fCougfJ5VX/QK 3lUchBZXivL7INKEnupXyBHra/J32dokusP2f1M6M4NNcj6dq0KNTalmS7dnpLTRaW 1gFUVkNlgczKPWkC5kYN/RT0SJhomGQ6X4BnyycVawPQ2OjH0sHn/K/DPGNMMa2WXL 5YgjFD3tXG3KEUjzdegBWs/Gh6JyN0xfQwbwBSff5d+t5MasREwlU5EbzsfijmITKQ wZiE6VT7Rd0lJyqPBtnSYTM/I58WijY7obSQPdlC2jZjP9IPTSEADrT31YKkTjK/vq MlqJ4sfa22Esw== Date: Wed, 31 Aug 2022 05:33:09 +0300 From: Jarkko Sakkinen To: Reinette Chatre Cc: linux-sgx@vger.kernel.org, Haitao Huang , Vijay Dhanraj , Dave Hansen , Shuah Khan , open list , "open list:KERNEL SELFTEST FRAMEWORK" Subject: Re: [PATCH 6/6] selftests/sgx: Add a bpftrace script for tracking allocation errors Message-ID: References: <20220830031206.13449-1-jarkko@kernel.org> <20220830031206.13449-7-jarkko@kernel.org> <64498c9f-a6e1-6379-ca8e-d751fb239bec@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64498c9f-a6e1-6379-ca8e-d751fb239bec@intel.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 30, 2022 at 03:57:24PM -0700, Reinette Chatre wrote: > Hi Jarkko, > > On 8/29/2022 8:12 PM, Jarkko Sakkinen wrote: > > Signed-off-by: Jarkko Sakkinen > > --- > > tools/testing/selftests/sgx/alloc-error.bt | 7 +++++++ > > 1 file changed, 7 insertions(+) > > create mode 100644 tools/testing/selftests/sgx/alloc-error.bt > > > > diff --git a/tools/testing/selftests/sgx/alloc-error.bt b/tools/testing/selftests/sgx/alloc-error.bt > > new file mode 100644 > > index 000000000000..9268d50dea29 > > --- /dev/null > > +++ b/tools/testing/selftests/sgx/alloc-error.bt > > @@ -0,0 +1,7 @@ > > +kr:sgx_alloc_epc_page /(uint64)retval >= (uint64)(-4095)/ { > > + printf("sgx_alloc_epc_page: retval=%d\n", (int64)retval); > > +} > > + > > +kr:sgx_encl_page_alloc /(uint64)retval >= (uint64)(-4095)/ { > > + printf("sgx_encl_page_alloc: retval=%d\n", (int64)retval); > > +} > > > Could there be a snippet of comments in this new file to guide users > on how to use this script? Do not mean to be rude but I'm not sure what there is to guide but I'm open for ideas. BR, Jarkko