Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1582948lqa; Mon, 29 Apr 2024 12:35:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQSu8xpxJwN9M7siIV7gDohUaQgKz6+5LIsQbMqvPSZfjAxxeD6ZNPWZIeYOqOuHXXCtcFOBfZVb6fhKMXV3Wm79U7gEy+yLsDnkUZ4w== X-Google-Smtp-Source: AGHT+IGiMtqOL4CferJtV5L8kuiuaurNXcF0cObiZiZ9pB/8rcr04z4C6B9J1JlFzSH0T7aA+bHu X-Received: by 2002:a05:622a:3c9:b0:43a:f64e:a71f with SMTP id k9-20020a05622a03c900b0043af64ea71fmr3550060qtx.24.1714419331703; Mon, 29 Apr 2024 12:35:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714419331; cv=pass; d=google.com; s=arc-20160816; b=JfWNiciUz8g3M0pyxi48bnnFt5CnwiNKyjvE75roJO73uA5AOWWe7xO5Rc+O7ODW2N PCrrMyaM5jmiAhpNtkRfMi0GqGPawMIXgTuDqj0WQTeNQOWwzLxfe0WGK8s2HVu3EHoN jrZzaADOKforvaF2Covt9SIivH1hd/lC7Cq/3ZpJYT3Y+DJeOndO36bnYosH+7uW22Bf dD8QmbU/xfKtJDx5cnHiC/V/Ess3gZq43aQhc0p33+purwbxrkFVr7BU+Z60r2t0YSh+ 1Pu8KPTvXQ3HKd1qAirApFUn71b+lRODmIUTmCP1e/mXMs9cGd8lzccS74KPC8LCzw9w jPEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=zQVyPBV5Ch/zzQnquQeBlF3N9BA6vTpLwN146FcLEmI=; fh=l297FLCwk3uhJ9jzC1edfe4w3Q6cwyxemavqzqGdZwI=; b=WZ/MdWVbXvOw81KH9GINjquTpK/BLWL4S47bTxMNLZBOyeXdiXewi5gUxmq8YAXjDd Uq08KWoNK8h5MSD8QKbzV3oGaBXe8YBGyBA4PduRQGogEyUP96FFME33YiQwByvilATE mRQIaHvWj461Z4fVzr5Ff0BPI972b+QpN+ywVAJnCwzg+fWGt/xF1c/YUxmgpECCvsjG MTjSIdPWLJieSGtZHBhWYQCXOQuIR0K4zvxDWg2x94bHbhz3UVg3ot7TPF2/8EYkeuvl MqlqXZv10vdOj45cOGm6dz1myasney9DugG19tHy0ghJ4OKoqZiUoi75ni0sqkz53Y+K R5Kg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PFhsRt6O; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-162931-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162931-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ff20-20020a05622a4d9400b00437b3df9c70si26417607qtb.9.2024.04.29.12.35.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 12:35:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162931-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PFhsRt6O; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-162931-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162931-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4070A1C215E2 for ; Mon, 29 Apr 2024 19:35:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63A0E145326; Mon, 29 Apr 2024 19:32:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PFhsRt6O" Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47C0D13BC0B; Mon, 29 Apr 2024 19:32:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714419157; cv=none; b=BQaoRyvoPvPxKADtn44NVWAfyRJgdW5rm7RHNFB/lqlmTw/c0xqsVXbS84xnbqzzJkQ7eCqZcs40ExjIyJVDYiXe4xpuHbINPQLqK5U7Pu2fvkHEXCasMvLEw0m/6OssOkw/kyTM+6fRIqdD6iiWCDrB407VXVz7QZUeKBscsgA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714419157; c=relaxed/simple; bh=x7B9BhpJuCT/yiJlP8c8jHaBWHjbviFGNIalzLJuqtk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V0TZE5t2Arw2EM/eQyLK/xGph8Vf2Xs2pncUg/uxSh0Hx40VaZ3aRV+wfvhEtfTxBQbHY8cjglg9kBs7uNLmyq16svih2OjtZHI15ADTK2Yl414stH2SZmZz/VbrqUCVdr70DZOzNRqgpcEEQsvlMi/mFpGyQ8ya68WRVjMqNP4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PFhsRt6O; arc=none smtp.client-ip=209.85.166.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-io1-f43.google.com with SMTP id ca18e2360f4ac-7ded01aa1d2so54843339f.3; Mon, 29 Apr 2024 12:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714419155; x=1715023955; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zQVyPBV5Ch/zzQnquQeBlF3N9BA6vTpLwN146FcLEmI=; b=PFhsRt6OBsmPZf4iUWvFR17BeIy5qcRsvsdP8zcpL7ARICPwTTdRkhSjF31Ke8n0mP T1fEMlCkheVlQSRN7vtes0HYqU9tFJMWiR0y1ZdO6xABbTPsP+WBGgMMUmApEc34gmda X9oDW2969+aqNYyi0IXoKqw+KjMHWXt5obDFuoSmq/6eJGyoJvk5ihH7YSRcJk7pLjt8 7zZz3M+YnN79uRDGRTWVZ1+k8O1i0jwTLpd2F+bjnRkhSSg3tp+uG8IrWCtQ3oNcooAC csgk/TW6kCF7fg+ohSLPCYOiGKc7F9iilVQHW7rb6lR8j80nAOGErkn7+0hHxwfbBuxR xRwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714419155; x=1715023955; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zQVyPBV5Ch/zzQnquQeBlF3N9BA6vTpLwN146FcLEmI=; b=tdFayXonAg4ncJ1aH2YWvED0EBPefvSd40MHaNpckxBSnJkVsuArHf9tARAKOrUEPC SeTGOB91WONmY6Sei4YI70u8VTtMZjBN3XAmtApDZZMGXY0wWeUO11E+rOrjBq4F9I/E Ch/x+94CH7RfkIW7CKfUf25Or94yoRpjGz7g+FUQK1omq+k7yzgzwP6RQydJ6AIGrQl8 sWM8V6BBFqDThQGBSOisLClVZrn9NAQX/n2YnzbQ+X3xGhT3qLPlctF6hQjqorJBKUZx ODN1D3TQ34SkzEl0FnRz6gU9iUMESu4PgCFvrByK+cPjbujJBnHu44fuuXClRjlYD7CH uJyg== X-Forwarded-Encrypted: i=1; AJvYcCW4EBeMJ+ENpIt6Pc/GpQ3f5+4/yvq5mpwI3jo1jR779w+4cJUnZ2CX0GwR+KJFZ7HRGR2oLiBfVcAF6EGCedGgmt6Ywa3U+Dv+xnwibMlrx3U2yAM1W5JolZM7CzFI6FvOKzSMdhx7 X-Gm-Message-State: AOJu0YxFhn87yDcQTIoicFVJ2ApXz4dVEBAogyI+WcwCSIHmSKI8cPGX TpzTUrgw77D6fja9XLVZVNnSG0K34vogy+PoNPK3XG87iYmQktWx X-Received: by 2002:a5d:8498:0:b0:7d5:f78f:ab21 with SMTP id t24-20020a5d8498000000b007d5f78fab21mr13368935iom.11.1714419155409; Mon, 29 Apr 2024 12:32:35 -0700 (PDT) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id dq18-20020a0566021b9200b007d5ec9b77aesm5988402iob.51.2024.04.29.12.32.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 12:32:34 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: ukaszb@chromium.org, linux-doc@vger.kernel.org, daniel.vetter@ffwll.ch, tvrtko.ursulin@linux.intel.com, jani.nikula@intel.com, ville.syrjala@linux.intel.com, seanpaul@chromium.org, robdclark@gmail.com, groeck@google.com, yanivt@google.com, bleung@google.com, Jim Cromie Subject: [PATCH v8 18/35] selftests-dyndbg: exit 127 if no facility Date: Mon, 29 Apr 2024 13:31:28 -0600 Message-ID: <20240429193145.66543-19-jim.cromie@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240429193145.66543-1-jim.cromie@gmail.com> References: <20240429193145.66543-1-jim.cromie@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Test if /proc/dynamic_debug/control exists, exit 127 otherwise. This distinguishes an untestable config from both pass & fail. The 127 choice is pretty arbitrary, but imitating bisect. That control file's presense guarantees that dynamic-debugging is configured (unless /proc is off, unusually), without dealing with the mount. Signed-off-by: Jim Cromie --- tools/testing/selftests/dynamic_debug/dyndbg_selftest.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/testing/selftests/dynamic_debug/dyndbg_selftest.sh b/tools/testing/selftests/dynamic_debug/dyndbg_selftest.sh index 1be70af26a38..cb77ae142520 100755 --- a/tools/testing/selftests/dynamic_debug/dyndbg_selftest.sh +++ b/tools/testing/selftests/dynamic_debug/dyndbg_selftest.sh @@ -11,6 +11,11 @@ CYAN="\033[0;36m" NC="\033[0;0m" error_msg="" +[ -e /proc/dynamic_debug/control ] || { + echo -e "${RED}: kernel not configured for this test ${NC}" + exit 127 +} + function vx () { echo $1 > /sys/module/dynamic_debug/parameters/verbose } -- 2.44.0