Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp68696imm; Wed, 5 Sep 2018 15:08:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZnV9BKKLwcn23IJ8FnHuz53YqXYMC7cwHY3VGhZLaqCrzUUaB/2FK0O8V+LXbcOD/m/WsI X-Received: by 2002:a17:902:900a:: with SMTP id a10-v6mr40877143plp.143.1536185308069; Wed, 05 Sep 2018 15:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536185308; cv=none; d=google.com; s=arc-20160816; b=SmqG7KwDXciQSkYckPldHw/jhK8wU70f8TizFWVfxmGgk1eCTUKSXZO5VncSQSsWR1 VsAIWSIqTLHGjo6gjmS+UJQPofVAfosuHXExQEkgpx//MXQp4hUh3/Bb9it2AXvXFEUm UVdQvOvMOLsxY+nmgd/HD8XKkOzm/oZN/8/aSXVcJr1W4izG2GxCiCVvea5RSh6Idc5n IupAtLDer8XxkSizxOXUQwT1lC27pxhGeouGYcgIoM6NFomvh5oBDVQog9XOZ6QjSV2Y GIuox1i4HteWww4WivV3xAU5KivWK4m6luQ/FvPMy17G2hHxrceKVjWAmToGnlJTetnT TiHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=8Wx3q3XXASVV0nEu4Lg+lsobDMUCJ0WgaL2MTqIAhW4=; b=m6hHnEqV7h0dPRogsbwYcqWR+9HLniDT9xUQldXP0x4kwRyjnjWFJCFNqc+6lE04Hp oyuecIXl9gZjMBTciYgsFG1ZLR7nSOiKgcbq8qEXrprdPWKRr4DfrSAt5ZHJXCyDO3pO EEBTAXMClbg5FU5FLXaFX2/DoA8ggDnq0o8YNPJeRKWKpSBtDh00oFVu1fwRf3d0UdIJ KHX2qUXf6wyH+FTgMhcJZ8dVnedTm2dIJZma1nG1Ul9spxIHJ9m+BgmryHzT5ZqCtTm/ ev8CSdkUbXFdZ0uSzE/ukUo863yBGSbyJjBHgs2U7696vTYhgi+79iBUR9q4HCXVzlfs amFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sYNelwM8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5-v6si3096327plz.485.2018.09.05.15.08.12; Wed, 05 Sep 2018 15:08:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sYNelwM8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728382AbeIFCiD (ORCPT + 99 others); Wed, 5 Sep 2018 22:38:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:52430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727518AbeIFCiC (ORCPT ); Wed, 5 Sep 2018 22:38:02 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6752C2083D; Wed, 5 Sep 2018 22:05:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536185151; bh=HVkKYsAfHCEqg1f+8iWerqb7tKfM3M5QBHrMvjChbl0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sYNelwM8mAcWUjbuoV7xHNOLd+JR9WIKZetLD3axhgbwVstrhUeKhPP4OY5vUTjYj GvVH+JOisxEeSnJxDxGfXx4JsHMp9FL1RWgErC9pAmCQqsPzqo69mi4Cu9qxReMf3Z nzn5nfTvYrwUpas5PT3b+glsOnqGekIXYPXmgFE0= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo , Adrian Hunter , David Ahern , Jiri Olsa , Namhyung Kim , Wang Nan Subject: [PATCH 22/77] perf augmented_syscalls: Update the header comments Date: Wed, 5 Sep 2018 19:03:45 -0300 Message-Id: <20180905220440.20256-23-acme@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180905220440.20256-1-acme@kernel.org> References: <20180905220440.20256-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnaldo Carvalho de Melo Reflecting the fact that it now augments more than syscalls:sys_enter_SYSCALL tracepoints that have filename strings as args. Also mention how the extra data is handled by the by now modified 'perf trace' beautifiers, that will use special "augmented" beautifiers when extra data is found after the expected syscall enter/exit tracepoints. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-ybskanehmdilj5fs7080nz1g@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/examples/bpf/augmented_syscalls.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tools/perf/examples/bpf/augmented_syscalls.c b/tools/perf/examples/bpf/augmented_syscalls.c index be06d2c9e8c9..bfa28eaf27b3 100644 --- a/tools/perf/examples/bpf/augmented_syscalls.c +++ b/tools/perf/examples/bpf/augmented_syscalls.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * Augment the openat syscall with the contents of the filename pointer argument. + * Augment syscalls with the contents of the pointer arguments. * * Test it with: * @@ -10,12 +10,10 @@ * the last one should be the one for '/etc/passwd'. * * This matches what is marshalled into the raw_syscall:sys_enter payload - * expected by the 'perf trace' beautifiers, and can be used by them unmodified, - * which will be done as that feature is implemented in the next csets, for now - * it will appear in a dump done by the default tracepoint handler in 'perf trace', - * that uses bpf_output__fprintf() to just dump those contents, as done with - * the bpf-output event associated with the __bpf_output__ map declared in - * tools/perf/include/bpf/stdio.h. + * expected by the 'perf trace' beautifiers, and can be used by them, that will + * check if perf_sample->raw_data is more than what is expected for each + * syscalls:sys_{enter,exit}_SYSCALL tracepoint, uing the extra data as the + * contents of pointer arguments. */ #include -- 2.14.4