Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp292559rdb; Mon, 18 Sep 2023 15:38:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGWcdeg7TLPZDG3rhxzhFLqNf4Ot/xgQsNnBa+j1ZC0XImKIvfQQVwT5s89lB5bMmDWkZv/ X-Received: by 2002:a05:6a00:cd1:b0:68a:4261:ab7f with SMTP id b17-20020a056a000cd100b0068a4261ab7fmr10672022pfv.31.1695076722452; Mon, 18 Sep 2023 15:38:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695076722; cv=none; d=google.com; s=arc-20160816; b=jT4BRpjcT+Bd9u62AIzvr4OUv4Geyd3dJxRgX9mD/A91m7gYmUcMAxfNBfq/tDo6Db lwprpHknUbFH+NOrOpy+8uy8vxSeVxNSY7HPVR/n0UXUnE1PWEtHxfrBhI8uimOj070b DW/27FIY6+pSnwDKMF+PVYkXqo52xoVLjJv34Myip/5Ut1AF0zueSNGQtQWOPonwQCAN q8ZXan5nWF6eyU3AfiWf4YJhlKrvUHBUo5bNtxJpi3jRHcULDOrthw15LKKjvgfg9YFF 0PRqlVmcw33oWK2gVolZcVd8pAbSbZiklLswzo0rSLd79sLInvQQBzSXGV75zURsRLa0 H4zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=mkeTK1jP91lMA9pWW+00mJnmOOfI4Vu+slUrbJRlKzY=; fh=5oP/1UXqGTJCn9EhtPaD4mnUJdzyrxl2TCHfeacTi9c=; b=AHvNJYYbmm18sDog0Uy45ZOdCJ3XBnXdpbKhQ3F04ktAAMGWHA5wKNBXFCoCkM9kTT u5Nt2S3bTVCOZbnX+C/lYo3S6LAiVzJKQ4LmKXqsBQ6zsEWEpX/cVm9e1KZfFVTaTkFz wjHPf1VVpXr10+AIYas5D1/kjZW9cx9TOpt8+ywICfUh6eLBzQHamUrdGvZ7QucAVAEL vzt3D2lEAR9avKJ3nqiAmmIibLlWrtPkFtVmIxgR+/VO8851WCh3mFqboOl53BRrkKrd xN6QClOCBar+ypRQ2TmYQcgprFFLCLd12vlM2vxDrD/4HCRORpHy3+5amLrZ8Q0/sh5J iZnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id 6-20020a630a06000000b005777bea0b6asi8278277pgk.859.2023.09.18.15.38.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 15:38:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7F795802D148; Mon, 18 Sep 2023 15:37:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229508AbjIRWhU convert rfc822-to-8bit (ORCPT + 99 others); Mon, 18 Sep 2023 18:37:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjIRWhT (ORCPT ); Mon, 18 Sep 2023 18:37:19 -0400 Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B891E8F; Mon, 18 Sep 2023 15:37:13 -0700 (PDT) Received: by mail-io1-f50.google.com with SMTP id ca18e2360f4ac-79266c8617eso191659139f.3; Mon, 18 Sep 2023 15:37:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695076633; x=1695681433; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+8DWlOzmfmJtffIuPHv5jAsQySyQJcrqEocN+MbaExo=; b=CT5pe3W4/x+5DDx1IJXHXoMxSisa6hl5MYSKXqRaBE7U8APFcCYjOO7wnSaqhza0sT 7kSZY6s4Gi2kv9ywID0izZhf7YtPYYA8CM96XsUUN8DkLcNgplZ8F3Rj2i2jqs9Zy0oQ oLrVZHQaBjUZfirP4u7O752KTk7oRrM3HGBqaiQjjoLyQWRQsIGjQpJ9ZufpfZQp85lx ctHGnCMdOcKgpvsv0u4zsxmbtXaBNWQ2yYy9nK4sJ0lOOR0xsU4vzcqpCETjjBSGVbwG IxvilKGGUaKbQFnMer+Dnm/CmbVDZg4s4UnQZt04C8xMFfgWwbesmbGxQaOGZtbX6tNS re+g== X-Gm-Message-State: AOJu0YyPjdBcByK87Is6vqaPUGBTuvC8LWs5i5jnUBL4wb93pdfofJ6l 0vgP+ScmLQX+FD2REIVMI8Zemcu0pn3Nves4+xU= X-Received: by 2002:a6b:f30b:0:b0:790:fa58:69d2 with SMTP id m11-20020a6bf30b000000b00790fa5869d2mr11685280ioh.20.1695076632752; Mon, 18 Sep 2023 15:37:12 -0700 (PDT) MIME-Version: 1.0 References: <20230916091641.776031-1-yangjihong1@huawei.com> In-Reply-To: From: Namhyung Kim Date: Mon, 18 Sep 2023 15:37:01 -0700 Message-ID: Subject: Re: [PATCH] perf test: Fix test-record-dummy-C0 failure for supported PERF_FORMAT_LOST feature kernel To: Yang Jihong Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=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 fry.vger.email 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 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 15:37:21 -0700 (PDT) On Sat, Sep 16, 2023 at 10:36 PM Namhyung Kim wrote: > > On Sat, Sep 16, 2023 at 2:18 AM Yang Jihong wrote: > > > > For kernel that supports PERF_FORMAT_LOST, attr->read_format has > > PERF_FORMAT_LOST bit. Update expected value of > > attr->read_format of test-record-dummy-C0 for this scenario. > > > > Before: > > > > # ./perf test 17 -vv > > 17: Setup struct perf_event_attr : > > --- start --- > > test child forked, pid 1609441 > > > > running './tests/attr/test-record-dummy-C0' > > 'PERF_TEST_ATTR=/tmp/tmpm3s60aji ./perf record -o /tmp/tmpm3s60aji/perf.data --no-bpf-event -e dummy -C 0 kill >/dev/null 2>&1' ret '1', expected '1' > > expected read_format=4, got 20 > > FAILED './tests/attr/test-record-dummy-C0' - match failure > > test child finished with -1 > > ---- end ---- > > Setup struct perf_event_attr: FAILED! > > > > After: > > > > # ./perf test 17 -vv > > 17: Setup struct perf_event_attr : > > --- start --- > > test child forked, pid 1609441 > > > > running './tests/attr/test-record-dummy-C0' > > 'PERF_TEST_ATTR=/tmp/tmppa9vxcb7 ./perf record -o /tmp/tmppa9vxcb7/perf.data --no-bpf-event -e dummy -C 0 kill >/dev/null 2>&1' ret '1', expected '1' > > > > test child finished with 0 > > ---- end ---- > > Setup struct perf_event_attr: Ok > > > > Reported-by: Namhyung Kim > > Closes: https://lore.kernel.org/all/CAM9d7cgNH2+zhSAmA3en_6as915UsF25MoLbfjE350tAP43Bog@mail.gmail.com/ > > I'll change it to follow the existing style like > > Fixes: d50ad02cb39a ("perf test: Add perf_event_attr test for record > dummy event") > > > Signed-off-by: Yang Jihong > > Tested-by: Namhyung Kim Applied to perf-tools-next, thanks! Namhyung