Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2636459pxb; Fri, 8 Oct 2021 11:46:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxchAE10xDZjmB233OdhSAiLiDVnVV82+PFtuwAar+3pIBRUYgCqBhie7VXT+LfNBXHUpPh X-Received: by 2002:a17:907:1044:: with SMTP id oy4mr6236858ejb.308.1633718777985; Fri, 08 Oct 2021 11:46:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633718777; cv=none; d=google.com; s=arc-20160816; b=uuNve6Y93qkDONTJdAy7fe+NvX0QWWBPYikMpE9ePle87osuRFWAgq8CFXJm6WSh0g 0rTFdSCvZUILzqY9x6p8uS/DEpPVhf8Uqunvf35a3tw6BtjFDJ9BRrfIeKExCIhDCFIF TCM6XKFGfTd4QeiMdW0dAUdG3TcsbqFlj/Nz6+mhpIHKkNQ9ye7PP8guSAQ/96JwsfHP +eHzhWA0GNMMc42Nt1eppwW0chWas2xMDcZ82Rq3nZdMrn+jpvZcSwW36FrzcAAzzkSd nMzhxqAH7Vi/t/iWKTJ8+9Wq++xkXAmuBTqhx+lg7Re92ylH7cPpHKhCTAnPyb+PNNbK /szg== 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=nKGyud0XCSYhVjpL9yf0QHacFupPrDZiacIDWm11j60=; b=f6b4QA+/6PrntGFJ6Olsq76nTeysK5KKaswJVlV9TvozgXXVp+Ey4R0IvvsDViv18t dHUTta7j/kzKIXUCbAodO+5ZfJkyoOVPMRm2Cjzp2ik5p0DPr6AK5cMkhCehwdIT2FhE mI4wJKa8YTQKgrxIGyuDC0XFXLt7Kr+fhtvht+jqeVqRQp+lyv7E/t0jJS0ZjkCdUjqD LlVv+pyWwfvi3TBLRpRe6xMa2MfHXgdamMCtzBxccbFkf0cu/Sdn8FMS5Y6TiqpD8Xtg Ll2u96ytYg9+z4MmrBPmWSvA8iKyulLfmLjyt0A707dKexq+9wvCANdvNqghlU5edSXJ j/eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r78uVLqz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id hq3si262237ejc.142.2021.10.08.11.45.53; Fri, 08 Oct 2021 11:46:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r78uVLqz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231331AbhJHSq0 (ORCPT + 99 others); Fri, 8 Oct 2021 14:46:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:39794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231246AbhJHSq0 (ORCPT ); Fri, 8 Oct 2021 14:46:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 294CC60EC0; Fri, 8 Oct 2021 18:44:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633718670; bh=T9vYy8/rMW8C3rqZXvvVB66NGiOQRGjwwFqoZmuTpIo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=r78uVLqzk6HXG5uAitlw2jZ87gdnh+35aDSTQnkxIRrvVgDcpR3SM/l2zbLu6N93g WYYDK+/eFB0cmaI6OAlrkwlWZ0XZBaRN+iNWHEsDfPdJRX2PeuvFXs2oHTSLjekT/i S51QHsqPGfEpxv+m/mpoKkjYGE91XnnXK00evGJVHDVp5jTouNm25tM1wZdRP6t6PC MqBdAFM57W7Kpg+moGSZjp888eJdUZ+k4crQpR9z4m0WCqvU/az0QFJ5Ric/i8ur39 njyQuTxHLzCBGJ1YaBvvwRlanEwZP29tPUOdb3a9dNhEXw8VjEvYmr+NzT0iBYQdlY 3kQ7zXCa6IMyg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 88D24410A1; Fri, 8 Oct 2021 15:44:27 -0300 (-03) Date: Fri, 8 Oct 2021 15:44:27 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: "Bayduraev, Alexey V" , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , linux-kernel , Andi Kleen , Adrian Hunter , Alexander Antonov , Alexei Budankov , Riccardo Mancini Subject: Re: [PATCH] perf report: Output non-zero offset for decompressed records Message-ID: References: <20210929091445.18274-1-alexey.v.bayduraev@linux.intel.com> <6ab9dd72-ccac-4ce1-6456-ef7786911639@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Oct 04, 2021 at 09:06:36AM +0200, Jiri Olsa escreveu: > On Mon, Oct 04, 2021 at 10:00:52AM +0300, Bayduraev, Alexey V wrote: > > On 04.10.2021 9:42, Jiri Olsa wrote: > > > On Wed, Sep 29, 2021 at 12:14:45PM +0300, Alexey Bayduraev wrote: > > >> Print offset of PERF_RECORD_COMPRESSED record instead of zero for > > >> decompressed records in raw trace dump (-D option of perf-report): > > >> 0x17cf08 [0x28]: event: 9 > > >> instead of: > > >> 0 [0x28]: event: 9 > > >> The fix is not critical, because currently file_pos for compressed > > >> events is used in perf_session__process_event only to show offsets > > >> in the raw dump. > > > I don't mind the change just curious, because I see also: > > > > > > perf_session__process_event > > > perf_session__process_user_event > > > lseek(fd, file_offset, ... > > > which is not raw dump as the comment suggests > > Yes, but this "lseek" only works for user events, whereas the > > PERF_RECORD_COMPRESSED record shouln't contain such events. > > Currently, the PERF_RECORD_COMPRESSED container can only pack > > kernel events. > Acked-by: Jiri Olsa Thanks, applied. - Arnaldo