From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 CF7C028F949 for ; Sun, 3 May 2026 10:16:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777803367; cv=none; b=HSxTl5Sjnj2IAHA6mvIKng6PbDMMdtZ3kRcNTWOWr5rZ4WfYlAc3axPkEpMyZy3XfEW/toXGC01FUdvi/Ytx97ld3ExQyFJjiF/YQqBgyj1OlxRf+ZM35FrZT5Bk007hI0BkIYD13xmSJCOlPhtcvLEFu4Vpim4NsGF3tMkR97g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777803367; c=relaxed/simple; bh=9EMxK9OalY8fJMjFtb28mqdI0He9EG/3ZVZngEVDCvY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LsuTiq+5KYsJOGH81xv3swhezlUrCj9Hd4h1bpqp1K8LcqE7JdX0hkUI25KDxyNYrf9SKdkPU5OxHzec/pQY20mz+S55pV1IFcIR35b0FqfTAaRRGlF2W03Bnt0zFIIUqO4OotE3Dy/0VlmOY358BxUcr/IfM8TeZg5jMV/1Zuw= 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=BjEq0Vfh; arc=none smtp.client-ip=209.85.214.170 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BjEq0Vfh" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-2ba21d32776so276285ad.2 for ; Sun, 03 May 2026 03:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777803365; x=1778408165; 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=S+apMOgQJGL/Dg0EAkgqPrTSh2luK0OyGBeLibjvZ/s=; b=BjEq0VfhdNYgsE/5dpKcttZF8GUwnim5ZGDrIRLy1iXr6IEcC8MyOCUeWVCFMaZmBw QEIlcY7RFdyxeN7dL39V2GbUraJIh2PcvrBV6zvileNhvocGw4BmoreiqCWWqjal/6VQ cw2xH2ZuE242lv2KSV7kvkWvpXhddJtLhcGbIT234H5ii9ZIVHimYH5ViCP87u6L/9dC 4OJcEHWKM8PNE624skEvhIsycwLOY68ALmoqcT3hD2A/z3N4rHW1ofGmAya9z7uukaz/ kTOeKOVYJfS+7PkgKmn/RP026WjA15kLXsRnxYTiLSW3hsOV6H5wBRuDuCTySIdbv46n DoBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777803365; x=1778408165; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=S+apMOgQJGL/Dg0EAkgqPrTSh2luK0OyGBeLibjvZ/s=; b=YXc1tGtL2PBP+Ogp3Ps47UVMnOPWhm0cn/Jm7jq8P33UmQem0KT2CemOf69srFCCKr WME50i1pdDVYIj95y6/dYzs2E/zUvciQcY5Ms4YmmJNAZ3RQnpNe0mvrWcP8BLI8XKLU XY8AZLfw40kEjB54u3b7G7ecLn7TxF3Z05tl3ozyTgcMO62PF9hsgk6H9VPnHd2LUXb1 5jsHC5P8wyqV8pnoXRU0/rGu5wDhl7xGUeRne+RzfkYakNjtb+1xm2U74HvlPxpFS67k ncNt3+tD5okHVsIe63APm679jP0PLQR85B1JF88r68pUQ+k1A3uzgaZGwAtc6BdJ9XHt oxTA== X-Forwarded-Encrypted: i=1; AFNElJ86IbFJXmcN+9Sbe9ilqygBqiBaL8pYNIW6XhWDRkFGE3w8VblOhCIWPs66ybJo3/R0tyhHZDIiqhV1K8U=@vger.kernel.org X-Gm-Message-State: AOJu0YxNeXjVR11HqsXNh94mF/Wr0/L3kgq1GwjeOvHRmNoEjilTRj3v 9gH8gs1USv6wL3Sz9nseFsrL6g9yW2kLILrRqJidKlZpJ7m8ZXea10qI X-Gm-Gg: AeBDiesEfcQZAf0Yw8Vm0LbngYl5UFlGZ+F3F8Qn+aBhUuzPr4qSbw1XntXGMvvx6zH x/mBLB33tF0spyysJ5NqfDFh43RXrDd/dMNREnRTfzdUrAJ5GYxcynKQ8fQcHwEtnchPRcFXXGv xXaYfednEKXDL3DoPrtXKY+U2+2TuV5fuPdqMJ0ncfSNVwoc5QfI22ooLcLG0EOiFw1JuHolSYb k6w0usVladH6RwAq+KGtLB80eKNAYMm6GZDqZR/3r2BqdDxWvPh9eouCKmlPJUaYY3U7cSbiJpi t/pS8WfzyVv3cC6FNLw0wY/Pmlh2+DFaCUMY4d2FFcVGvs0x3wP9eXiV+Nsk7XHtG2pv2PFxuJD 9rdf8zjosKH3yltLkiYlByqqoP9uz9Fz1BE8z8a+28gMhGHP9tpxiwySMBa0GqzFzBFLqeHHml6 KVyMJj7DiNLfBnMdVo/4iWs5s8Kw== X-Received: by 2002:a17:903:9cc:b0:2b0:61c2:8e83 with SMTP id d9443c01a7336-2b9f25df47dmr52626995ad.20.1777803365135; Sun, 03 May 2026 03:16:05 -0700 (PDT) Received: from apt ([140.123.97.23]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b9caad2bd7sm81073455ad.36.2026.05.03.03.16.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2026 03:16:04 -0700 (PDT) From: Cheng-Han Wu To: Jonathan Corbet , Shuah Khan Cc: Randy Dunlap , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Cheng-Han Wu Subject: [PATCH 2/4] docs: admin-guide: fix stress-ng command examples Date: Sun, 3 May 2026 18:14:27 +0800 Message-ID: <20260503101429.254394-3-hank20010209@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260503101429.254394-1-hank20010209@gmail.com> References: <20260503101429.254394-1-hank20010209@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 The workload tracing guide includes stress-ng command examples with a stray "command." word at the end. This makes the examples invalid if they are copied and run directly. Remove the stray word from the stress-ng example. Also use "--" in the perf record example to clearly separate perf record options from the workload command being recorded. Signed-off-by: Cheng-Han Wu --- Documentation/admin-guide/workload-tracing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/workload-tracing.rst b/Documentation/admin-guide/workload-tracing.rst index 22cb05025ffc..43a3c8098654 100644 --- a/Documentation/admin-guide/workload-tracing.rst +++ b/Documentation/admin-guide/workload-tracing.rst @@ -271,7 +271,7 @@ exercised: The following command runs the stressor:: - stress-ng --netdev 1 -t 60 --metrics command. + stress-ng --netdev 1 -t 60 --metrics We can use the perf record command to record the events and information associated with a process. This command records the profiling data in the @@ -281,7 +281,7 @@ Using the following commands you can record the events associated with the netdev stressor, view the generated report perf.data and annotate the output to view the statistics of each instruction of the program:: - perf record stress-ng --netdev 1 -t 60 --metrics command. + perf record -- stress-ng --netdev 1 -t 60 --metrics perf report perf annotate -- 2.52.0