From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id D43E93858D38 for ; Fri, 8 Sep 2023 20:09:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D43E93858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694203793; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=ePcyXrPrALHRJkzNcjCMFWBLiQ1t6ikRu52kLa9n2NM=; b=JjCEz4hFydpU+AgHF9tunvb19adOJ1P81PDxhaqmen+g1PODhkhsvz3lZ5Wwca32qN5Jaf Pwhl+i5k4/k92z6KcL3FqxFbZkCSmft0KlOHOaeGhOX2AlKQN6EpMjGMpVWWfvW0G2MjcH ADxbZz83nqEenL/nkmC/Oagdr1Xt3H0= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-315-Eo3FSad8M7uCb9Ak1is1Bg-1; Fri, 08 Sep 2023 16:09:52 -0400 X-MC-Unique: Eo3FSad8M7uCb9Ak1is1Bg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C0ADB181D121 for ; Fri, 8 Sep 2023 20:09:51 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.33]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 66DA5140E962 for ; Fri, 8 Sep 2023 20:09:51 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH 1/2] elf: Wire up _dl_diagnostics_cpu_kernel Message-ID: <4a77d6294e0023338a8115fad9a3d549c47cae87.1694203757.git.fweimer@redhat.com> X-From-Line: 4a77d6294e0023338a8115fad9a3d549c47cae87 Mon Sep 17 00:00:00 2001 Date: Fri, 08 Sep 2023 22:09:50 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_SHORT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Some diagnostics information can only be retrieved in an OS-specific manner. This function does nothing at present. --- elf/Makefile | 1 + elf/dl-diagnostics-cpu-kernel.c | 24 ++++++++++++++++++++++++ elf/dl-diagnostics.c | 1 + elf/dl-diagnostics.h | 4 ++++ 4 files changed, 30 insertions(+) create mode 100644 elf/dl-diagnostics-cpu-kernel.c diff --git a/elf/Makefile b/elf/Makefile index 9176cbf1e3..bcf85950d0 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -127,6 +127,7 @@ rtld-routines = \ dl-compat \ dl-diagnostics \ dl-diagnostics-cpu \ + dl-diagnostics-cpu-kernel \ dl-diagnostics-kernel \ dl-environ \ dl-hwcaps \ diff --git a/elf/dl-diagnostics-cpu-kernel.c b/elf/dl-diagnostics-cpu-kernel.c new file mode 100644 index 0000000000..f3251c5b79 --- /dev/null +++ b/elf/dl-diagnostics-cpu-kernel.c @@ -0,0 +1,24 @@ +/* Print CPU/kernel diagnostics data in ld.so. Stub version. + Copyright (C) 2023 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include + +void +_dl_diagnostics_cpu_kernel (void) +{ +} diff --git a/elf/dl-diagnostics.c b/elf/dl-diagnostics.c index d742cf0a99..48db1ac07b 100644 --- a/elf/dl-diagnostics.c +++ b/elf/dl-diagnostics.c @@ -255,6 +255,7 @@ _dl_print_diagnostics (char **environ) _dl_diagnostics_kernel (); _dl_diagnostics_cpu (); + _dl_diagnostics_cpu_kernel (); _exit (EXIT_SUCCESS); } diff --git a/elf/dl-diagnostics.h b/elf/dl-diagnostics.h index 8099b90951..5eda01b5e1 100644 --- a/elf/dl-diagnostics.h +++ b/elf/dl-diagnostics.h @@ -43,4 +43,8 @@ void _dl_diagnostics_kernel (void) attribute_hidden; _dl_print_diagnostics. */ void _dl_diagnostics_cpu (void) attribute_hidden; +/* Print diagnostics data for the CPU(s), in a kernel-secific fashion. + Called from _dl_print_diagnostics. */ +void _dl_diagnostics_cpu_kernel (void) attribute_hidden; + #endif /* _DL_DIAGNOSTICS_H */ base-commit: 53df2ce6885da3d0e89e87dca7b095622296014f -- 2.41.0