From patchwork Fri Feb 4 16:24:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Bristot de Oliveira X-Patchwork-Id: 12735273 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 5244BC433F5 for ; Fri, 4 Feb 2022 16:24:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376531AbiBDQYS convert rfc822-to-8bit (ORCPT ); Fri, 4 Feb 2022 11:24:18 -0500 Received: from us-smtp-delivery-44.mimecast.com ([205.139.111.44]:22680 "EHLO us-smtp-delivery-44.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376527AbiBDQYS (ORCPT ); Fri, 4 Feb 2022 11:24:18 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-558-ex2SSuqZOQWh513PE2FANw-1; Fri, 04 Feb 2022 11:24:14 -0500 X-MC-Unique: ex2SSuqZOQWh513PE2FANw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4EC02100C66D; Fri, 4 Feb 2022 16:24:13 +0000 (UTC) Received: from x1.com (unknown [10.22.33.243]) by smtp.corp.redhat.com (Postfix) with ESMTP id 546C57E91E; Fri, 4 Feb 2022 16:24:11 +0000 (UTC) From: Daniel Bristot de Oliveira To: Steven Rostedt Cc: Daniel Bristot de Oliveira , linux-kernel@vger.kernel.org, linux-trace-devel@vger.kernel.org Subject: [PATCH 0/4] Some RTLA fixes Date: Fri, 4 Feb 2022 17:24:01 +0100 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=bristot@kernel.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org The first is a change in the Makefile to make rtla use the kernel version. The other fixes are in the error path when rtla fails to enable the tracers. I got some segmentation faults when trying to use rtla with kernel versions that do not support multiple instances (i.e., 5.14 and 5.15) and fixed them. I also found some inconsistency in error messages and also did a cleanup there. Daniel Bristot de Oliveira (4): rtla: Follow kernel version rtla/utils: Fix session duration parsing rtla/trace: Error message fixup rtla/osnoise: Fix segmentation fault when failing to enable -t tools/tracing/rtla/Makefile | 4 +++- tools/tracing/rtla/src/osnoise.c | 3 +++ tools/tracing/rtla/src/trace.c | 8 ++++---- tools/tracing/rtla/src/utils.c | 4 ++-- 4 files changed, 12 insertions(+), 7 deletions(-)