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 X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DCF3C4BA24 for ; Thu, 27 Feb 2020 10:32:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DD5BE24691 for ; Thu, 27 Feb 2020 10:32:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ICXJq5nD" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728761AbgB0Kcz (ORCPT ); Thu, 27 Feb 2020 05:32:55 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:23748 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728680AbgB0Kcz (ORCPT ); Thu, 27 Feb 2020 05:32:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582799574; 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:references:references; bh=2pWyPH2/Ft3GL3DYnjQSn7n1AXiKP/1omIif/rcF0CY=; b=ICXJq5nDiQjwNi9AsFwfxKUkaWhQWMzTW5bnn8iofruHg6ouRFuIc8P6FLaPtwuSDyUWQ2 Mof96Z780WLgW8LXt/WPSSIG6N1Cz7e2QJH4L6Hjqu7E+OGowpfYzWzjgmT8xKX0mSdszD d/yp/6/iYdeta2M8slNXzdje0sfakxQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-316-0QdnR5wAOZGslNKgMzxKwg-1; Thu, 27 Feb 2020 05:32:52 -0500 X-MC-Unique: 0QdnR5wAOZGslNKgMzxKwg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C1D03DBA8; Thu, 27 Feb 2020 10:32:50 +0000 (UTC) Received: from oldenburg2.str.redhat.com (unknown [10.36.118.156]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8D5CE60BE2; Thu, 27 Feb 2020 10:32:47 +0000 (UTC) From: Florian Weimer To: Szabolcs Nagy Cc: Mathieu Desnoyers , Chris Kennelly , nd@arm.com, "Joel Fernandes\, Google" , Paul Turner , Carlos O'Donell , libc-alpha , linux-kernel , Peter Zijlstra , paulmck , Boqun Feng , Brian Geffon Subject: Re: Rseq registration: Google tcmalloc vs glibc References: <1503467992.2999.1582234410317.JavaMail.zimbra@efficios.com> <20200221154923.GC194360@google.com> <1683022606.3452.1582301632640.JavaMail.zimbra@efficios.com> <1089333712.8657.1582736509318.JavaMail.zimbra@efficios.com> <982202794.8791.1582743392060.JavaMail.zimbra@efficios.com> Date: Thu, 27 Feb 2020 11:32:45 +0100 In-Reply-To: (Szabolcs Nagy's message of "Thu, 27 Feb 2020 10:18:32 +0000") Message-ID: <87v9nsz5f6.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Szabolcs Nagy: > On 26/02/2020 18:56, Mathieu Desnoyers wrote: >> ----- On Feb 26, 2020, at 12:27 PM, Chris Kennelly ckennelly@google.com wrote: >>> I agree that this could potentially violate inviarants, but >>> InitFastPerCpu is not intended to be called by the application. >> >> OK, explicitly documenting this would be a good thing. In my own projects, >> I prefix those symbols with double-underscores (__) to indicate that those >> are not meant to be called by other means than the static inlines in the API. > > use a different convention for that, __ prefix is always > reserved for the implementation for arbitrary use. tcmalloc is *not* the implementation in that sense. It must not use the __ prefix for its identifiers. Thanks, Florian