From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by sourceware.org (Postfix) with ESMTPS id B9F87385DC00 for ; Mon, 1 Jun 2020 20:20:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B9F87385DC00 Received: by mail-io1-xd41.google.com with SMTP id j8so8321141iog.13 for ; Mon, 01 Jun 2020 13:20:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+FeBycztufVwtKcU2NjoqAm5Ciq5DxZaCtBa9wUkVHo=; b=qxOjL4uOBnW11tU37zJMpdBK4zojV77LmUQmJhhXxGC0KODOhuTwGctA1h3L9GpTnG 33A5e2PAAy2M+SFalF+qwKmNih3FLW1QA6WgYH6xnMaou5+pTMjaLFHURVD1dznXzOY+ CVglZ05SSA+feY/gkNwZlrZ8sofF3JL3qiqFfbacoFsnBOO0bIU72GFxe0mU8R8gdCaB AnrSBRDOE0ktFohqJQHGyghBDtn+K2uJ1I0fW02BXhmyYqFXLGCxxkydwdRVPGOFEqvT LGQA/JvkUkRM1eC5QnfEOjuZysh2ImSpizhzp599fwQQXVE4lprAB8zaXjcNkFFqce5e FgOg== X-Gm-Message-State: AOAM5322VOZZNvKtluLSySgQzbONWT3U16NnqvoWjAhzWHxPHeQ1hO5J aLWJFsJXvbBFCdi6Sg5Sb9N5T7446gqsYEdWWK8= X-Google-Smtp-Source: ABdhPJwMaaOHRloPFilYc9zS7Qe7mg7RcjABpPexvL45xRijyIO5Kmci1k8rA6ZCRUlvlZWIXzy5/nuzZAvCZm1xM1A= X-Received: by 2002:a6b:39c3:: with SMTP id g186mr19745552ioa.91.1591042828272; Mon, 01 Jun 2020 13:20:28 -0700 (PDT) MIME-Version: 1.0 References: <15ec783d-46f5-0166-aee9-f1d16a58ca83@huawei.com> In-Reply-To: From: "H.J. Lu" Date: Mon, 1 Jun 2020 13:19:52 -0700 Message-ID: Subject: Re: [PATCH] x86: Add thresholds for "rep movsb/stosb" to tunables To: "Carlos O'Donell" Cc: liqingqing , Hushiyuan , "libc-alpha@sourceware.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2020 20:20:29 -0000 On Mon, Jun 1, 2020 at 1:15 PM H.J. Lu wrote: > > On Mon, Jun 1, 2020 at 12:38 PM Carlos O'Donell wrote: > > > > On Mon, Jun 1, 2020 at 3:33 PM H.J. Lu wrote: > > > Did you mean adding --list-tunables to ld.so? libc.so.6 doesn't take > > > any arguments. > > > > Yes, I mean adding argument processing to libc.so.6, and handling > > --list-tunables. > > > > We have enough infrastructure in place that wiring that up shouldn't be too bad? > > > > Then, even in trimmed down containers, you can just run > > /lib64/libc.so.6 --list-tunables and get back the list of tunables and > > their min, max, and security values. > > Adding an argument to libc.so.6 is difficult since argument passing is > processor specific. Adding --list-tunables to ld.so is more doable. But tunables are in libc.so. -- H.J.