[{"id":1772619,"web_url":"http://patchwork.ozlabs.org/comment/1772619/","msgid":"<20170921093808.GE773@jagdpanzerIV.localdomain>","date":"2017-09-21T09:38:08","subject":"Re: [RFC][PATCH v2 6/7] symbol lookup: use new kernel and module\n\tdereference functions","submitter":{"id":67261,"url":"http://patchwork.ozlabs.org/api/people/67261/","name":"Sergey Senozhatsky","email":"sergey.senozhatsky.work@gmail.com"},"content":"On (09/21/17 01:29), Sergey Senozhatsky wrote:\n[..]\n> +\t%pS\tversatile_init+0x0/0x110\n> +\t%ps\tversatile_init\n>  \t%pF\tversatile_init+0x0/0x110\n>  \t%pf\tversatile_init\n> -\t%pS\tversatile_init+0x0/0x110\n>  \t%pSR\tversatile_init+0x9/0x110\n>  \t\t(with __builtin_extract_return_addr() translation)\n> -\t%ps\tversatile_init\n>  \t%pB\tprev_fn_of_versatile_init+0x88/0x88\n>  \n> -The ``F`` and ``f`` specifiers are for printing function pointers,\n> -for example, f->func, &gettimeofday. They have the same result as\n> -``S`` and ``s`` specifiers. But they do an extra conversion on\n> -ia64, ppc64 and parisc64 architectures where the function pointers\n> -are actually function descriptors.\n> -\n>  The ``S`` and ``s`` specifiers can be used for printing symbols\n>  from direct addresses, for example, __builtin_return_address(0),\n>  (void *)regs->ip. They result in the symbol name with (``S``) or\n>  without (``s``) offsets. If KALLSYMS are disabled then the symbol\n>  address is printed instead.\n>  \n> +Note, that the ``F`` and ``f`` specifiers are identical to ``S`` (``s``)\n> +and thus deprecated.\n\nJFI,\n\nI have updated this part. it's probably too early to completely\nwipe out pF/pf info.\n\nthe updated Doc goes like this:\n\n+Note, that the ``F`` and ``f`` specifiers are identical to ``S`` (``s``)\n+and thus deprecated. We have ``F`` and ``f`` because on ia64, ppc64 and\n+parisc64 function pointers are indirect and, in fact, are function\n+descriptors, which require additional dereferencing before we can lookup\n+the symbol. As of now, ``S`` and ``s`` perform dereferencing on those\n+platforms (when needed), so ``F`` and ``f`` exist for compatibility\n+reasons only.\n\n\t-ss","headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xyWnL0bDRz9t43\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 21 Sep 2017 19:40:38 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xyWnK6FB2zDsMK\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 21 Sep 2017 19:40:37 +1000 (AEST)","from mail-pf0-x233.google.com (mail-pf0-x233.google.com\n\t[IPv6:2607:f8b0:400e:c00::233])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xyWkb50l2zDqjC\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu, 21 Sep 2017 19:38:15 +1000 (AEST)","by mail-pf0-x233.google.com with SMTP id g65so2953326pfe.13\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu, 21 Sep 2017 02:38:15 -0700 (PDT)","from localhost ([175.223.27.85]) by smtp.gmail.com with ESMTPSA id\n\th70sm1847939pfc.115.2017.09.21.02.38.10\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tThu, 21 Sep 2017 02:38:11 -0700 (PDT)"],"Authentication-Results":["ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"sCGGAmmq\"; dkim-atps=neutral","lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"sCGGAmmq\"; dkim-atps=neutral","ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gmail.com\n\t(client-ip=2607:f8b0:400e:c00::233; helo=mail-pf0-x233.google.com;\n\tenvelope-from=sergey.senozhatsky.work@gmail.com; receiver=<UNKNOWN>)","lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"sCGGAmmq\"; dkim-atps=neutral"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=/1oY/oWe/NRL+2LrEI6oOqVuSHzJuGiSnCgOroX+f0s=;\n\tb=sCGGAmmqV7iWEkT+zZFF3LLQNE3nCPG3cC+Co8pK+Uza4OcYSThMzMnf2sxls/htaL\n\t6+zlxmzD4CdQtHfgRi+5jtIyIEob+q9QKSnmhpzIKsAtPYTfEzimr5WiDXCpjfUOmxzc\n\tGCUD+drA87dbsXhkO/eZmHU7RHUtUymnukg5PH4ONoCjH7+Ne+p4iSSlVo4dSuGeUF4R\n\tZZ8Gurss74B0ppAVgCPswQ2AlIzSi3uvkyXCa8A2E8kabcOMx60O/zkpYs0lmP+PY2QM\n\tYGzlJb6VlQin+QnQF+t0qI5BCq2/x59TDr+GhcF4RVtqBbSwojzD7YTL0Ups1B6i+BWC\n\t3f1w==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=/1oY/oWe/NRL+2LrEI6oOqVuSHzJuGiSnCgOroX+f0s=;\n\tb=VdKKOhPNL71lO7RGZnZSc31fi9lbn8QI5oiqcgEAQXiFprdgHLjIv6MHB/bYC9e+aw\n\t/QcA1HOA382qzKWHtv1MVejSwS5TQVdVwQtZcEMbix/DcfcwUoJU/PuFjabyRcb9rktS\n\ttdP2ITTzY77CuaZ4nBhTNmoy1xx0uXrSrpsS7jqQpz7bIHypostT5c2vcElMPCp7IaHZ\n\tiwVbrM2Tcmc1yuBgqJco+xw1pSZcHyAamHLMc5eLTewXVXirHgz8K01tkxOJJt7hrfpe\n\t+uxvuVGOEHIDTwk27kirGbHjf1FZdiqJ3gIkJjp8q74LhGn9WXS+h3fgFPGtMjChpR1W\n\tGsLA==","X-Gm-Message-State":"AHPjjUjNwkg/Fj/DCZJ6opOJtLODoKL89zwEJx+sD4YEd4QheaplgdyK\n\tiZDRV/bilVbyiOvAM3+mZpI=","X-Google-Smtp-Source":"AOwi7QBsTWS8y8UGOiF0O8i/NmBv8US/o5uqzCJMM0OSbaycrA1McOsW0mCFt/KyDEQWB+2V2/ceog==","X-Received":"by 10.98.62.93 with SMTP id l90mr5190386pfa.32.1505986692727;\n\tThu, 21 Sep 2017 02:38:12 -0700 (PDT)","Date":"Thu, 21 Sep 2017 18:38:08 +0900","From":"Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>","To":"Sergey Senozhatsky <sergey.senozhatsky@gmail.com>","Subject":"Re: [RFC][PATCH v2 6/7] symbol lookup: use new kernel and module\n\tdereference functions","Message-ID":"<20170921093808.GE773@jagdpanzerIV.localdomain>","References":"<20170920162910.32053-1-sergey.senozhatsky@gmail.com>\n\t<20170920162910.32053-7-sergey.senozhatsky@gmail.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<20170920162910.32053-7-sergey.senozhatsky@gmail.com>","User-Agent":"Mutt/1.9.0 (2017-09-02)","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.24","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"Fenghua Yu <fenghua.yu@intel.com>, Tony Luck <tony.luck@intel.com>,\n\tlinux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org,\n\tPetr Mladek <pmladek@suse.com>, Helge Deller <deller@gmx.de>,\n\tJessica Yu <jeyu@kernel.org>, James Bottomley <jejb@parisc-linux.org>,\n\tSteven Rostedt <rostedt@goodmis.org>,\n\tAlexei Starovoitov <ast@kernel.org>, Paul Mackerras <paulus@samba.org>,\n\tAndrew Morton <akpm@linux-foundation.org>, \n\tlinuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"}}]