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 85DB63858C54 for ; Tue, 17 Oct 2023 17:14:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 85DB63858C54 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 85DB63858C54 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697562869; cv=none; b=EPmMvLTk3DxCgZVJtnHTs51o5uMdUEYpxx3LskxpXkax2xtlaSKym6H+VEum0YHXUbgh5hja2n0xKTjgXyoOgrDaoC6rhD6UKOPUefICpf2mylcYj7VWcyZkC4CgasPD74RN5MzfM8sf+s4SADcYB716kwTi5KDLz05JxK1gho4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697562869; c=relaxed/simple; bh=fdram2daxpkjxB4HOnIP7n3bXSDIj5N6yUvvmncVQDs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=svX++B8tn6+5F5sdv/xL4SgFOALEfN+QrnhaMFiSDNJ3E7ilYmvFFgQoLLWIqiyJ4EHXdUUE4bMXc8Iwo/IiiT8AqaOnLJyVeYkaBrIye3awiAcDzKCckhkHUUKzgkshrYzRBbUQkXa/eExj9H2VjeEKOwGLZ98CNPbPCP1/d/Y= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697562868; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=NKc79ObCMpWwOMQCMBG/tqvATV3mHpbnHkTb8FKnaxY=; b=Ca8Chfj9wdB7jVSmondrYtFyNwa6a6uwAkuVGG1xQAzWiu2qIntJW33su4Xg68qT7E/KvH 4xreiDNe7XfRissegX2nKMEnVhGx3AEAVQXg69VgpJ6KAaYzsm+wV6wgjvSRj5GNkHiaaD DxyTAoaFdtivCSZPAEROwd7o04kRZ/c= 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-523-E3GirQsUOamGYxfY0gzttg-1; Tue, 17 Oct 2023 13:14:26 -0400 X-MC-Unique: E3GirQsUOamGYxfY0gzttg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (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 BA1D4185A78E; Tue, 17 Oct 2023 17:14:24 +0000 (UTC) Received: from greed.delorie.com (unknown [10.22.9.85]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A3B0F492BEE; Tue, 17 Oct 2023 17:14:24 +0000 (UTC) Received: from greed.delorie.com.redhat.com (localhost [127.0.0.1]) by greed.delorie.com (8.15.2/8.15.2) with ESMTP id 39HHENTU2730710; Tue, 17 Oct 2023 13:14:23 -0400 From: DJ Delorie To: Siddhesh Poyarekar Cc: adhemerval.zanella@linaro.org, libc-alpha@sourceware.org Subject: Re: RFC: system-wide default tunables In-Reply-To: <11fa1777-d31f-6968-982e-0e05900e326c@gotplt.org> Date: Tue, 17 Oct 2023 13:14:23 -0400 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: Siddhesh Poyarekar writes: > Actually I wasn't thinking of any conf file related constraint markup, I > was thinking of TUNABLE_CALLBACKs encoding constraints in whichever way > they deem fit. e.g. for ibt it could be: > > void > TUNABLE_CALLBACK (set_x86_ibt) (tunable_val_t *valp) > { > if (!strcmp (valp->system_default, "always_on")) > return; > > /* Otherwise read the value. */ > } So the tunable definition *itself* decides whether the sysadmin wants to override a user? Or are you saying the tunable *value* describes the constraint?