From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA36830F7ED; Thu, 27 Nov 2025 21:34:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764279284; cv=none; b=ZpLW3XN1U41ZAz+LJ7PYi/wfq0/aBk0RoHXRxxlaIX23Pxe6fV+CMUjqfG8nz42IBy3KMrlEDzPeYso6VnoLq9x1R6O/sFpZkOxX68CBA0lon57Ne/y9gqcvJ7IP+QmiH2M1dxvDg0slo5LM7m4ngRN5F1HNpN3eZyW3JFvFNJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764279284; c=relaxed/simple; bh=fReJ7B0zzohyHeXgCW2gHW6cexupyNkwi03bPHKdIJU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mjusVkOJhSawNg1jwE3vN7CYdqTBOUPNiAA9W+XNO9uhcTERznQ+qjPejufUoR22H+FBWW/aRmSbv4xERhgJZkpJ/VYll7W5cf3eNWqKIPk6vGLCoYqhpm/3aBqwCpF9BsTzy1k/f7ElbBwnfigj0dqEia2D6uSN9MUq1vqgYAM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AuK3l+50; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AuK3l+50" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 540C9C4CEF8; Thu, 27 Nov 2025 21:34:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1764279283; bh=fReJ7B0zzohyHeXgCW2gHW6cexupyNkwi03bPHKdIJU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AuK3l+50f8ZOQoe1H1b7drQUYSY6J4cLqDJySMLMVsdMC8/1TqPRSViLC9H+t78xs xmLeuB0BWHGja9MTwRgJ3x4DRD99VXVKtp3D4KQPg9ktHI3Q/xaLixPOBhN8kGpSwk gK6nma1bjh+DtadS1I/jH5z7shFhWP0kGGUdFxMnawq7yLL6nWiunHBnM/aM4+U9dV O9YUnCFxhVacdK29FDTK++ZlvzKDghzR3GvFhAYQiJx8SN/3YsYHCgnlSIOEw6V/qp Unlecowr3CzPsnjehbnCwEFh7jThHOdcUBjb7sfQ+8pVf2IJVy0hfNyBuKFHKFc4Rl reDoxUYV+ecog== Date: Thu, 27 Nov 2025 13:34:41 -0800 From: Namhyung Kim To: Derek Foreman Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , kernel@collabora.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf data: Allow filtering conversion by start and end time Message-ID: References: <20251124212301.450296-1-derek.foreman@collabora.com> Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20251124212301.450296-1-derek.foreman@collabora.com> Hello, On Mon, Nov 24, 2025 at 03:23:00PM -0600, Derek Foreman wrote: > This adds a feature to allow restricting the range of converted samples > with start and end times specified in nanoseconds. > > Use it like this: > > $ perf data convert --to-json out.json -s 12345 -e 13340 > > Start, end, or both may be omitted. Looks useful, thanks! > > Signed-off-by: Derek Foreman > --- > tools/perf/Documentation/perf-data.txt | 6 ++++++ > tools/perf/builtin-data.c | 4 ++++ > tools/perf/util/data-convert-bt.c | 18 ++++++++++++++++++ > tools/perf/util/data-convert-json.c | 18 ++++++++++++++++++ > tools/perf/util/data-convert.h | 3 +++ > 5 files changed, 49 insertions(+) > > diff --git a/tools/perf/Documentation/perf-data.txt b/tools/perf/Documentation/perf-data.txt > index 417bf17e265c..db0de1f354a3 100644 > --- a/tools/perf/Documentation/perf-data.txt > +++ b/tools/perf/Documentation/perf-data.txt > @@ -40,6 +40,12 @@ OPTIONS for 'convert' > --force:: > Don't complain, do it. > > +-s:: Please add this as well. --start=