Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2960407rdb; Tue, 6 Feb 2024 03:06:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IFyDwA55zImXf3DPrVs5e/pbQfGeBjbjUlHCrXOnSRw5J8NbI8AOUKfg6y2aUgpKrkmHaU3 X-Received: by 2002:a17:907:392:b0:a31:616c:7a7 with SMTP id ss18-20020a170907039200b00a31616c07a7mr1334762ejb.16.1707217561466; Tue, 06 Feb 2024 03:06:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707217561; cv=pass; d=google.com; s=arc-20160816; b=KeSCAJIY0KFunpob16ACmYkCdUxtJphaGNgcrSqJ9ByPdDAgChvBMTH0Cqhfm36rti Nv/XrxOwRmk0edwCViLFR4e7QkRll0jX2fihWdh/p18YsJ2wOMBcQN+V1W+UulN+2AK/ /FlkUQvsRwKQUYgpV9o2CZB1DaPjJImFBhA+fatKgyiejD5fQB+pcbfkKVcSxwsMgO2W b310hFc8Vl+wAGTY9LEsjGA/V709ORS2zWfSireNQGpztI2ilGEWjEoNv8W28UGcEM27 SBFnjMEKDSCrcwZKeG8ORLypwAQKh42QPunQpT/jNkcOF60NL6Gm9qzV7sqKDNwisrJf hsqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=E+GgpCF5YnkDGc/72qLStSzm1jxvKGshxOlgl/Zu63U=; fh=cDAjxXUotx55U89PIRKRfHjTNrzpaEbtVF8nephgGnA=; b=D3acAomNRERAjFIkyizYc218KYwx6SN+jlB+W1eeFpSMXXt6OkLz0FXBIY9wcb5kDS PHnzMd99cN/Fkz6ss0mSSf4s0SLy+c0yxeJvawVLSG/deBpc/K6uXQRP1nhFlkGo0iwr H1pg2X1tPvo6zTfoHfCqWD96VfkpngWa57I7Nzpwc4TvWJM/x2Vb+wO10vkSCHsQKH7C kMR6GvQu/dAXJ8ImHqcgHqBz9xuNkdmvr40IYNwZhQlgKhczEoQeCbO9OiRzErFCnQYy Su4mUaJuomlqL1DKrD96uHCWQzO0B97CQfmDUVevNQk2FlGjyaSwT0GTPdJlAm/iFx6n O7jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HMKCcY2O; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-54736-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCVuamT95gN/qt1UodK2LKwFWJqiY0pudlTxiiIVNJ8uvIzsJNosFjIjexKvl+giwTY+vUdJEpla7sd/VHqDgWxRVVr8zBr4Tl3GdDPJyg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a21-20020a1709065f9500b00a3820ecf133si633219eju.448.2024.02.06.03.06.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 03:06:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54736-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HMKCcY2O; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-54736-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2A78D1F24D9B for ; Tue, 6 Feb 2024 11:06:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF67B12E1EC; Tue, 6 Feb 2024 11:05:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HMKCcY2O" 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 1BFFF58131; Tue, 6 Feb 2024 11:05:42 +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=1707217543; cv=none; b=MX3MVpNOwHOzYUQZb/HJBUN1U3p5tu92yHQj5GX6LZF0Ogy0XJRDdt6i0CBm/BtoBp2G9HrlWgFBf3so7kEr2VNas+xj+1fFEZ5PxCLBAM5tp9jrbpbLMvYEIYg1burYVakVJI38pslEvJL6SObgv10KKu+17hwYTnE3mhiql54= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707217543; c=relaxed/simple; bh=+sKgZu/0veJ04OfVo0LEnmbeU//UnOnHzs1l4gtuKKI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EbJKf0kDSjUqLXoiwwn3lKYpsOFHFUTZypVg1j2Sb+Vp1kszj8PJUPnCZZt70PtNJkqK0e7jJC3zAM/7Bkd/f3ltGP1c3t6O/SMbGDLVOC6HL7goKoF9xHf6p8fBnohK+rxlND1y4tyHsPshkxmsH/B/nlFTCy7E9Hq+m5qbHaI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HMKCcY2O; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01436C433F1; Tue, 6 Feb 2024 11:05:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707217542; bh=+sKgZu/0veJ04OfVo0LEnmbeU//UnOnHzs1l4gtuKKI=; h=From:To:Cc:Subject:Date:From; b=HMKCcY2Oh9+Ppy92uBJR6AEmhAkY7UPt3DD4Mgh6W9nSc9s7uX9Q6Ra3Mq/918mzU 6xjPoUNnP3iILjMRrokQIIoNlbZ4Hm4wwghuexuUKzFAYnQyJdSvvZljQKzIzcuET/ gn0ngDsj+gCML2STgi2TDVmljv8bVZkCmhrBEV05oSn/Y8VuKc04ufvkPLZG+UEite PgjavT8OKptn/obWJ/EW8pR7kng9xVpi1DvrrGyg5m1lT3KX2pZ4knhO8mt7zbq8iD hhb53HtUwDzjjCUQbGz7G3Eitxo3hNvkzinlbJaF+oM2r6OPcBliJSFXC3DEuymIay 0mxMNj3wOdY0w== From: Daniel Bristot de Oliveira To: Steven Rostedt Cc: Daniel Bristot de Oliveira , Masami Hiramatsu , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Donald Zickus , stable@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH 0/6] tools: Fix rtla and rv problems (found) with clang Date: Tue, 6 Feb 2024 12:05:28 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit RHEL people reported some errors when compiling rtla and rv with clang. The command line used to compile the tools is: $ make HOSTCC=clang CC=clang LLVM_IAS=1 The first problem is two unsupported flags passed to the compiler: -ffat-lto-objects and -Wno-maybe-uninitialized. They will be removed if the compile is clang. Also, the clang linker does not automatically recognize the -flto=auto option used at compilation time, so it is explicitly set. With the compiler working, it starts pointing to some warnings and errors about uninitialized variables, variable size, and an unused function. These problems are also fixed. Daniel Bristot de Oliveira (6): tools/rtla: Fix Makefile compiler options for clang tools/rtla: Fix uninitialized bucket/data->bucket_size warning tools/rtla: Fix clang warning about mount_point var size tools/rtla: Remove unused sched_getattr() function tools/rv: Fix Makefile compiler options for clang tools/rv: Fix curr_reactor uninitialized variable tools/tracing/rtla/Makefile | 7 ++++++- tools/tracing/rtla/src/osnoise_hist.c | 3 +-- tools/tracing/rtla/src/timerlat_hist.c | 3 +-- tools/tracing/rtla/src/utils.c | 8 +------- tools/verification/rv/Makefile | 7 ++++++- tools/verification/rv/src/in_kernel.c | 2 +- 6 files changed, 16 insertions(+), 14 deletions(-) -- 2.43.0