Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp22362rwi; Tue, 18 Oct 2022 13:33:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Wi62U8b7VEn9kn6uXE5FeuxpH/K0v+PceuUDY3nCyyekcbDZkFhKT4QzPiSU7y/ZoSzOM X-Received: by 2002:a05:6402:5489:b0:43b:b935:db37 with SMTP id fg9-20020a056402548900b0043bb935db37mr4367525edb.347.1666125192377; Tue, 18 Oct 2022 13:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666125192; cv=none; d=google.com; s=arc-20160816; b=ADioVnOZmOIcfW3UQfWOs30zVCK4tLSSXwqcF6PGYY3dt9NTFDPE7IldQ0I3hT4sdP BtWGJiNTocaKoh2aOoPC32GTpsArFtNqN9Q9YeiRyudSxXN7zHaZnAEa+J1ONU2z1BLV 05ki3pbkc2Qh4886LIGDDBmXMvIF2ADiIrNCLNCZssnWw2jPwweedux0TQ80t3ysF/BU sjYm+vEtbwLCCoXtNqY2RJGe+7TCjqramnxpvERovjHlpJJvOU8jekwTxtilKg3G92Pp naxUw9DkgzaTrfB0+GzlCawC0tAfUVZVBri40wcqOgXf5O0O6ZVhS87PmXwnDrtj600f ejRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=x8Y0BR8tWiYY0RJ/fs8N8ONHE31H3d8AIGA8SWlxL8s=; b=ioDl6ZPprcGSTioAg90rDEHS4hS2aaUByK42bHRiQCxStZHXXW14MO/dvx/NVDItT4 Qp+qqWDyC4h0RVCUnouFRk1HpPgkew7Gf8aUMu31HVwgmeve15TPoP6z7+ikPUg/ZPeF IeU//9lGDjLra15FXYGuoAKKCSVVoll+KHKdvnPDpw7EYewb+Hp0n/8lHn/i0C1tK2Zf sGBxjYJd5V/KBcHCf6JdPIfbhz2OYdofh87LxnGk77fgADs6e5yfZyXv5AwbW/mUVpoy 0qEvjU7/vKqtPPF/Ba3BUW6BZ4jAw+lOqp5UgcWkgG9vbcHXcCPGqz3lZJ/NPeNnvgEe /sLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b="LUvG/Dpr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l13-20020a170906794d00b00781d6cda765si13673462ejo.913.2022.10.18.13.32.46; Tue, 18 Oct 2022 13:33:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b="LUvG/Dpr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229731AbiJRUXR (ORCPT + 99 others); Tue, 18 Oct 2022 16:23:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbiJRUXQ (ORCPT ); Tue, 18 Oct 2022 16:23:16 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AA467968F; Tue, 18 Oct 2022 13:23:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=x8Y0BR8tWiYY0RJ/fs8N8ONHE31H3d8AIGA8SWlxL8s=; b=LUvG/DpriM0EC3QZ1k3Wz8XoFq 61hE/k4viDMxNnKbYx08KO59dYduJh3sILBsq7C30g8yodGWRPBEnh4jWPsXi3Qc2zC8N8LRnS8kw e8EvfvGB5Rx3SDeciuAQATaj2h5OuOCJaDdFh+4qhmDMEodI455c0sGAdfMZMx+wphHOI8cVVF5CV OG632L/y3NDWjJ7nds6r7rKf8kd2/4jyEPRhJbzI8eD0GINocormiGAAfFcT635CJW5UHTBYhrE+F VqKXzx3KfLTp2x34/H8KNBzcGdwle8QY3oVnthgUZw7SbUHD3Pm5nj/kdlN7kQGNXwVrORdwjwre+ 8rG3ptFg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1okt77-004ZNb-Am; Tue, 18 Oct 2022 20:23:04 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id CA58D300110; Tue, 18 Oct 2022 22:23:00 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 88F2C2C0E0B83; Tue, 18 Oct 2022 22:23:00 +0200 (CEST) Date: Tue, 18 Oct 2022 22:23:00 +0200 From: Peter Zijlstra To: James Clark Cc: linux-perf-users@vger.kernel.org, namhyung@kernel.org, linux-kernel@vger.kernel.org, Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa Subject: Re: [PATCH] perf: Fix missing raw data on tracepoint events Message-ID: References: <20221012143857.48198-1-james.clark@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221012143857.48198-1-james.clark@arm.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 12, 2022 at 03:38:57PM +0100, James Clark wrote: > Since commit 838d9bb62d13 ("perf: Use sample_flags for raw_data") > raw data is not being output on tracepoints due to the PERF_SAMPLE_RAW > field not being set. Fix this by setting it for tracepoint events. > > This fixes the following test failure: > > perf test "sched_switch" -vvv > > 35: Track with sched_switch > --- start --- > test child forked, pid 1828 > ... > Using CPUID 0x00000000410fd400 > sched_switch: cpu: 2 prev_tid -14687 next_tid 0 > sched_switch: cpu: 2 prev_tid -14687 next_tid 0 > Missing sched_switch events > 4613 events recorded > test child finished with -1 > ---- end ---- > Track with sched_switch: FAILED! > > Fixes: 838d9bb62d13 ("perf: Use sample_flags for raw_data") > Cc: Namhyung Kim > Cc: Peter Zijlstra (Intel) > Signed-off-by: James Clark Thanks!