Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4645877rwr; Mon, 8 May 2023 10:28:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4jMq0dBaCCoScC0lQjTJntpTqT7KALcrl7+PenosCAKxKzZczqJUriyBZDaSJenCLd+Bhp X-Received: by 2002:a17:90a:608f:b0:24e:3b69:a87f with SMTP id z15-20020a17090a608f00b0024e3b69a87fmr10809890pji.25.1683566899299; Mon, 08 May 2023 10:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683566899; cv=none; d=google.com; s=arc-20160816; b=n/g27k9HIQGc0E/LkAxwa0RlVRaTQAwQoUO0J10GIYkT8GGUUkNGQF5pnipny9Avaw f7/qOdGbSDPlnfusm6zBU/L9zgDEWcrGF5M66Xdp5JbKf5VKzviD3Hb5eC5Nqj2ULTvX da+Mvqjl6KOv8HtiAdbEhNpqYTcUjWFQRAClBONWo9XRQgPMDoXcwOGSgpL/Lh5yEC+/ fAsw2U/F43tJd9QR3ye1X6ZD5N5kmxhZeDgF8otzojmywii3vXOLAyzgMoPcHszuEsUz iTZWQH1l/pKEpQqY5c7Nu8njYWX0QRuhQoNLyksKyHGP103GwqXkVp+zNubBIfAGD91i YCEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=w8qlp5XghttjEan5YOKeJGzJQmCiegmZ3khpFvV4ZPs=; b=Fnc5nzQojYgSm/0143AcsgWs8bL2NcPXPt9p8VqKPygobZKg+DoPR+Y7mbndg9OXuw B2/RD6ei7QqpAPlUhPuAmE+sK/cgbKG2FeUEFicCl3Pxhi0j6qsRsaA37Q4t9VXG33MN XaI46J36mnaJ2O/XE9E9f4Clis5iPDfWbOk3RZGYJm+C95bPsFZsWu6tW2hkq2KDdy3K k0PTKByIdxQOwGe+t66tKsg6bja/2MxPeXyEvoWdrO08Q+LkoSZtDG6uFfs0Se71D9cs g0Xxa61JhiIlz3brsntyp4j6VDICq/vRFImKwI/xKTnuuL9n9XAwoz5SeGqugnn+Bjds NUew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=AO1hRYtg; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp14-20020a17090b190e00b0024696599329si13494665pjb.77.2023.05.08.10.28.05; Mon, 08 May 2023 10:28:19 -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=@linuxfoundation.org header.s=google header.b=AO1hRYtg; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232982AbjEHRSG (ORCPT + 99 others); Mon, 8 May 2023 13:18:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233053AbjEHRSF (ORCPT ); Mon, 8 May 2023 13:18:05 -0400 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C275E44A6 for ; Mon, 8 May 2023 10:18:03 -0700 (PDT) Received: by mail-io1-xd32.google.com with SMTP id ca18e2360f4ac-763970c9a9eso15931139f.1 for ; Mon, 08 May 2023 10:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1683566283; x=1686158283; 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=w8qlp5XghttjEan5YOKeJGzJQmCiegmZ3khpFvV4ZPs=; b=AO1hRYtglviVhhGSoTuSJwmjPi3RErsHCMTxnnQap1CnXC6UFQWMjmYvvxAatKg9VR bkFSRlXrZOcFkVtIKyfLw+2PA6OKDphDtHeWdBqfxY1g+tGLMOkpkejSjKwV/sUJxi4X cT0YryWbViHXgSNQO+9ytmYt7C8F8yvEhDTD8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683566283; x=1686158283; 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=w8qlp5XghttjEan5YOKeJGzJQmCiegmZ3khpFvV4ZPs=; b=MYGTE2H4HljhuSiJaKL/qGb6KBeW5DRjPutHlUqZQk9m9Sl7uqjMXPePvDjedT8oRs 0qRfzObR6QjvdppWFrpKaN1xDbZEYSTGTm3+e5loSx2MUnhaeTxCK+xjWgZo5kQB9jBc 9B9WsGUOEFhyGFZSnwxbBYkfPRvLRwarL0WX5eTDgpGnfJGQKJcpqIwjB7HhuulTFtcA RdxGEeAvt2xlWH++NzPFS/X4AxEKHU3OsxShIKzfnw1h7vjJECwqfAQdbM0v9TqjVeLR sagTQrgUc/K6k61ezjuBo3ansapipxUK4My+cW3028k73ES51iPP81kuHcghlXb6cw80 WlOQ== X-Gm-Message-State: AC+VfDx4gs5MQ2J5RjQ9CzmtmlCO07P+2ysAs6huMo7Vm37nIiVrI69N EJc/aIjpbUIc4Gdebt2bTBZLCg== X-Received: by 2002:a05:6e02:1d05:b0:331:1129:b8a9 with SMTP id i5-20020a056e021d0500b003311129b8a9mr5643487ila.1.1683566283068; Mon, 08 May 2023 10:18:03 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id a14-20020a92d34e000000b0032732e7c25esm2541449ilh.36.2023.05.08.10.18.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 May 2023 10:18:02 -0700 (PDT) Message-ID: Date: Mon, 8 May 2023 11:18:01 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2] selftests/ftrace: Improve integration with kselftest runner Content-Language: en-US To: Mark Brown , Steven Rostedt , Masami Hiramatsu , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Shuah Khan References: <20230302-ftrace-kselftest-ktap-v2-1-ecc482212729@kernel.org> From: Shuah Khan In-Reply-To: <20230302-ftrace-kselftest-ktap-v2-1-ecc482212729@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 5/8/23 07:15, Mark Brown wrote: > The ftrace selftests do not currently produce KTAP output, they produce a > custom format much nicer for human consumption. This means that when run in > automated test systems we just get a single result for the suite as a whole > rather than recording results for individual test cases, making it harder > to look at the test data and masking things like inappropriate skips. > > Address this by adding support for KTAP output to the ftracetest script and > providing a trivial wrapper which will be invoked by the kselftest runner > to generate output in this format by default, users using ftracetest > directly will continue to get the existing output. > > This is not the most elegant solution but it is simple and effective. I > did consider implementing this by post processing the existing output > format but that felt more complex and likely to result in all output being > lost if something goes seriously wrong during the run which would not be > helpful. I did also consider just writing a separate runner script but > there's enough going on with things like the signal handling for that to > seem like it would be duplicating too much. > > Acked-by: Steven Rostedt (Google) > Acked-by: Masami Hiramatsu (Google) > Tested-by: Masami Hiramatsu (Google) > Signed-off-by: Mark Brown > --- Applied now to linux-kselftest fixes for Linux 6.4-rc2 thanks, -- Shuah