From mboxrd@z Thu Jan 1 00:00:00 1970 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 6387ACDB483 for ; Thu, 19 Oct 2023 17:27:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235476AbjJSR1v (ORCPT ); Thu, 19 Oct 2023 13:27:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233272AbjJSR1u (ORCPT ); Thu, 19 Oct 2023 13:27:50 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4325126 for ; Thu, 19 Oct 2023 10:27:48 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5142C433C8; Thu, 19 Oct 2023 17:27:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697736468; bh=2k9qLbSMVDP8lL8VSNbuCrhK8bPQDEuvouvPNMB5CLs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=beTwvJ6EGi4WXK5aiFboSi/9/GJGXwaIgAlVQPaTBRvR/aWylwXiz5neXP55wGRt8 C9prYxRs86CHkaOFzIAhqVJbTXJyT8nEtEQCw4pQZT5dbZ32KAWBBNS+PKgwODS089 63jtaInK34v9lue0z3HY9evmo1CpLvaqzXhrWTRs= Date: Thu, 19 Oct 2023 19:27:44 +0200 From: Greg KH To: aftermath digital Cc: stable@vger.kernel.org, jan.kiszka@siemens.com, kbingham@kernel.org Subject: Re: vmlinux-gdb unable to parse_and_eval("hrtimer_resolution") on mainline Message-ID: <2023101904-eats-expletive-3142@gregkh> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Oct 18, 2023 at 08:57:47PM +0100, aftermath digital wrote: > Hi, > > I've tested the below on both linux-6.5.7 and mainline linux-6.6-rc6, > both of which seem to have the same issue. > > GDB 13.2 isn't able to load vmlinux-gdb.py as it throws the following: > > Traceback (most recent call last): > File "/home/user/debug_kernel/linux-6.6-rc6/vmlinux-gdb.py", line > 25, in > import linux.constants > File "/home/user/debug_kernel/linux-6.6-rc6/scripts/gdb/linux/constants.py", > line 11, in > LX_hrtimer_resolution = gdb.parse_and_eval("hrtimer_resolution") > gdb.error: 'hrtimer_resolution' has unknown type; cast it to its declared type > > I've built-linux like so: > > make defconfig > scripts/config --disable SYSTEM_TRUSTED_KEYS > scripts/config --disable SYSTEM_REVOCATION_KEYS > scripts/config --set-str SYSTEM_TRUSTED_KEYS "" > scripts/config -e CONFIG_DEBUG_INFO -e CONFIG_GDB_SCRIPTS -e > CONFIG_FRAME_POINTER > make -j$(nproc) > make scripts_gdb > > $ gcc --version > gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 > $ gdb --version > GNU gdb (GDB) 13.2 > > This is my first time submitting a bug to the LK mailing list, please > let me know if this format is not correct or if you need more > information. Has this ever worked with any kernel version you have tried? If so, what was the last good version? Can you run 'git bisect' to find the offending commit? thanks, greg k-h