From patchwork Sat Dec 10 20:36:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 13070431 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15AFEC4332F for ; Sat, 10 Dec 2022 20:37:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229568AbiLJUhC (ORCPT ); Sat, 10 Dec 2022 15:37:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiLJUhB (ORCPT ); Sat, 10 Dec 2022 15:37:01 -0500 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA40F1402E for ; Sat, 10 Dec 2022 12:37:00 -0800 (PST) Received: from bigeasy by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1p46ag-0000Tz-Rh for linux-trace-devel@vger.kernel.org; Sat, 10 Dec 2022 21:36:58 +0100 Date: Sat, 10 Dec 2022 21:36:58 +0100 From: Sebastian Andrzej Siewior To: linux-trace-devel@vger.kernel.org Subject: [PATCH] trace-cmd: Let subcommand "convert" automatically if possible. Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org Let the convert subcommand compress automatically if the file format allows it and the user did not specify it. This already the case the record command. Signed-off-by: Sebastian Andrzej Siewior = FILE_VERSION_COMPRESSION && !compression) + compression = "any"; convert_file(input_file, output_file, file_version, compression); }