From nobody Fri Apr 3 09:52:01 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D92A4ECAAD8 for ; Wed, 14 Sep 2022 04:08:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229770AbiINEIz (ORCPT ); Wed, 14 Sep 2022 00:08:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229641AbiINEIu (ORCPT ); Wed, 14 Sep 2022 00:08:50 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2F7C52FE3; Tue, 13 Sep 2022 21:08:48 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id e5so13689650pfl.2; Tue, 13 Sep 2022 21:08:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date; bh=vkTUPelBaMMS0AcNTHv6inlXSwf/g/n3Muib02HR8rw=; b=WUX/WTfxD1Cj8P2Uh0cheahPn65msmTsmjW/hWShrPlhFXIhw9qevIm3HCvtRNwR2W nR8HP1qtD5sgGZmKXR2HMIqdZl3WH1WzTuLegDPTqhcSmJtARFc6UxH+J6GayJQhO3UA 5P5MTkUcgv8MrwgQK7nI8UKFc+8NBmVqsvomWpSkfTRumuBjri0Nto/hhrGI+I9y6TEy P7sa6tBkQWp51MH336kfEPNEZmz4YJ/6TJT9mWPbEdGXdfHCoEisdrLDU97Ze3G6cpzD tm5g0t/FHDvySmhQYZVv7USw90X4X+tDpvOSuh7gbL87a4uEyunn9D2E/P2HPmlmYqw4 9hGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date; bh=vkTUPelBaMMS0AcNTHv6inlXSwf/g/n3Muib02HR8rw=; b=rmrBKpDiWcMuErYd2Zm8QVN5K4KXtQeodReA97VtgLlsckEuvcWTr7PQFDIdcvwncP 5kXiAUdett1zpS/sUJYmaNHJsXQZ54CtJy/yDuhqpEp94rBpmmuOv8i2EG0ZzMun/1kA c6UikCigtMGcPqoB2hA/K89Rxo1JH2ouSImzbdTjKwB8CaeykOHNVarPPYfqHesF6hMg TedVeJ5cmXo4hTZKSCCCINTszx0B8eRcIn2g3n1c4E4ow+kckuNkAehLPjD1NVnywE/b qx6FRlEw9V98iivVLBByPIIdpXDJWBFDX/u2YQpE05NqGS++4xZ22uoaESeHhq3D/yLl 0itQ== X-Gm-Message-State: ACgBeo1BC58pdzQyr0eNv3AYRwa1eWmbxivMX6ewHOhIELSw783g0NCv +3XPzxS8PEj3UOtnqahj7XY= X-Google-Smtp-Source: AA6agR5rkYRReg8evD/ll0BCDiTQLVJ6PU6iZSe83H2295gLmDZQd6QJBR57pE7x2mmRkPlSbyd/Cg== X-Received: by 2002:a63:8843:0:b0:439:3c8e:c2c0 with SMTP id l64-20020a638843000000b004393c8ec2c0mr6010674pgd.404.1663128528050; Tue, 13 Sep 2022 21:08:48 -0700 (PDT) Received: from youngsil.svl.corp.google.com ([2620:15c:2d4:203:d82e:84ee:b2c9:9acd]) by smtp.gmail.com with ESMTPSA id o13-20020a170902d4cd00b0016d773aae60sm9423662plg.19.2022.09.13.21.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 21:08:47 -0700 (PDT) Sender: Namhyung Kim From: Namhyung Kim To: Arnaldo Carvalho de Melo , Jiri Olsa Cc: Ingo Molnar , Peter Zijlstra , LKML , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org Subject: [PATCH] perf inject: Clarify build-id options a little bit Date: Tue, 13 Sep 2022 21:08:44 -0700 Message-Id: <20220914040844.352514-1-namhyung@kernel.org> X-Mailer: git-send-email 2.37.2.789.g6183377224-goog MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Update the documentation of --build-id and --buildid-all options to clarify the difference between them. The former requires full sample processing to find which DSOs are actually used. While the latter simply injects every DSO's build-id from MMAP{,2} records, skipping SAMPLEs. Signed-off-by: Namhyung Kim Reviewed-by: Adrian Hunter --- tools/perf/Documentation/perf-inject.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/perf/Documentation/perf-inject.txt b/tools/perf/Document= ation/perf-inject.txt index 70e2ac3cc91a..c972032f4ca0 100644 --- a/tools/perf/Documentation/perf-inject.txt +++ b/tools/perf/Documentation/perf-inject.txt @@ -25,10 +25,12 @@ OPTIONS ------- -b:: --build-ids:: - Inject build-ids into the output stream + Inject build-ids of DSOs hit by samples into the output stream. + This means it needs to process all SAMPLE records to find the DSOs. =20 --buildid-all:: - Inject build-ids of all DSOs into the output stream + Inject build-ids of all DSOs into the output stream regardless of hits + and skip SAMPLE processing. =20 --known-build-ids=3D:: Override build-ids to inject using these comma-separated pairs of --=20 2.37.2.789.g6183377224-goog