From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f70.google.com (mail-dl1-f70.google.com [74.125.82.70]) (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 0D918385509 for ; Mon, 28 Sep 2026 18:26:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790619980; cv=none; b=tlh/NVVaFUNND5JefYqKcFrKw3tKN6Oh3Rz3uz3hst3VMvOJbKmdy4XV4mDkPY2pOx9bSsDmPuHzPWbbUDDwUe3KcdI+qLxRI3lTTsm8Ca9TNSAXvMptsSnCtbtXU9yJywaIgFS7MkPImn8YHJoa9scMcBxC6VfAb0JsfkLy/zg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790619980; c=relaxed/simple; bh=U+ay24blVG9yYe12Lp8/RlWiXT/kxx+qAdGQnWtqZ90=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=BReE+UOrAby1A7GmiUpHME763M0Je9lzUtXwS1Pc/lKASmcCrgBu/BYTYJ8RG6xby+Tit4OZtGVq/eWGI9gwAtFdOETSsgjhjRXyxjPiXgarRKxUCVdJdK18hWlwo+XKAKMHrjK91N8f9BIn23v9AUHF0FhRi/LxUe3enmaVdI4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=lAui2gXM; arc=none smtp.client-ip=74.125.82.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="lAui2gXM" Received: by mail-dl1-f70.google.com with SMTP id a92af1059eb24-1466ab2bc8dso3353863c88.0 for ; Mon, 28 Sep 2026 11:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1790619978; x=1791224778; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=yxwI32SEUHME+PizWajiM1My8y4jC30CJwqCNyqs/2o=; b=lAui2gXMhpDWAkN9nFDYqGPC89qeqnk6RqeSVgTJY1x1XI0KirmzpdifwSef6C9jKj 3dKjqpXr05MLg5EQN1OxL9GYtI14ycEkaAi0vW8kXVahj5uItL2Q34HlrZ7HSWYVYkFn tQQIZxolhD5v3gSPMWezy1Y9CqqXDaN3b3zEzk9xQ+c8UR5i+tPyicldRDWwwKJyEZyx zG4g5ZA3+ud9VrqLXmLmqbvT/kdSPjqjmJGl90qi+yYNvUu3zPW0VJGZ6Ctm4NwwBDBJ 9+aiNLjH0FHh8AZ9IRnuoOuGBAfltRUxRdkvDi+KPeKwWC1nsNH2pu7M+zqblp7r4lc4 EOmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790619978; x=1791224778; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=yxwI32SEUHME+PizWajiM1My8y4jC30CJwqCNyqs/2o=; b=d9a7k62HXXznm+uj/jgSy2amjS1g9DiiONwBSD3mUzgiLcWojAQEQ1rCsvYZE/KwvT CI+AZjOv0TPadrYw7wGL2is/P5EMhFIOpQziFmoYGFOrvArcC06luQUiwL699qeRY96O /sFH5arlk0fikEOnYmBX0/EAsbj9xRUrxL/oiVi0hkTVOqkOQ0tCuKq/bWblqLHXmC/k UQ0sz3krhGoUx/vS//5EGKUFwTVaJXcHtczhjD1yy547kALjn04tXMvs6VehQoMtLBXt Apd+oWwGp5FIvF0+Yy1bVHttmN5OTg8mye1iQfHgDT5G2gKyLCd3gMv3yNP8eRVUo+OI atmw== X-Forwarded-Encrypted: i=1; AKwUvBzZNuuX0xZRd1qfBU4PslbSzAYAmRH30PsNb5/T25CxPAXpnDyKzRnrTCI7Xn4i76U6iVmxsorPXQUYe3k=@vger.kernel.org X-Gm-Message-State: AFuF++mLcAbpY621itttuKCKrwItXLbx1NxxB7OmfRPGHXrKy9Kr6LyO vtVqZFbGCWxwi3TkI7RxRciKGvfdbdc4RqIEmjS7neqU+025jxUOk0SI+V0m6vgDhqZqHKQ57dt fGOU3B33e2A== X-Received: from dlev28.prod.google.com ([2002:a05:701b:465c:b0:143:9704:de05]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:701b:420f:20b0:13b:3c84:ef77 with SMTP id a92af1059eb24-146ced41605mr11965715c88.20.1790619977567; Mon, 28 Sep 2026 11:26:17 -0700 (PDT) Date: Mon, 28 Sep 2026 11:25:41 -0700 In-Reply-To: <20260928182605.3649015-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260928182605.3649015-1-irogers@google.com> X-Mailer: git-send-email 2.56.0.rc1.315.gc6ed9934b7-goog Message-ID: <20260928182605.3649015-3-irogers@google.com> Subject: [PATCH v6 02/26] perf trace: Include the augmented arg header in nanosleep's payload length From: Ian Rogers To: Arnaldo Carvalho de Melo , Namhyung Kim , Aaron Tomlin Cc: Howard Chu , Jakub Brnak , Peter Zijlstra , Ingo Molnar , Jiri Olsa , Adrian Hunter , James Clark , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Ian Rogers Content-Type: text/plain; charset="UTF-8" Unlike the other augmenters, sys_enter_nanosleep() leaves the struct augmented_arg size and err fields out of the record length, so the output stops 8 bytes short of the end of the timespec payload. Count the header. Assisted-by: Antigravity:gemini-3.1-pro Signed-off-by: Ian Rogers --- tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c b/tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c index f7c9eb49648f..cc70861a23d6 100644 --- a/tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c +++ b/tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c @@ -419,7 +419,8 @@ int sys_enter_nanosleep(struct syscall_enter_args *args) { struct augmented_args_payload *augmented_args = augmented_args_payload(); const void *req_arg = (const void *)args->args[0]; - unsigned int len = sizeof(augmented_args->args); + /* the size + err in all 'augmented_arg' structs */ + unsigned int len = sizeof(u64) + sizeof(augmented_args->args); __u32 size = sizeof(struct timespec64); int err; -- 2.56.0.rc1.315.gc6ed9934b7-goog