From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [RFC PATCH 3/4] gcov: compile specific gcov implementation based on gcc version Date: Sun, 25 Aug 2013 20:29:45 +0200 Message-ID: <201308252029.45375.arnd@arndb.de> References: <1377247176-13537-1-git-send-email-fhrbata@redhat.com> <52177DE8.6090704@linux.vnet.ibm.com> <20130824194413.GB2365@localhost.localdomain> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from moutng.kundenserver.de ([212.227.17.10]:65119 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755570Ab3HYSaB (ORCPT ); Sun, 25 Aug 2013 14:30:01 -0400 In-Reply-To: <20130824194413.GB2365@localhost.localdomain> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Frantisek Hrbata Cc: Peter Oberparleiter , linux-kernel@vger.kernel.org, jstancek@redhat.com, keescook@chromium.org, rusty@rustcorp.com.au, linux-arch@vger.kernel.org, mgahagan@redhat.com, agospoda@redhat.com On Saturday 24 August 2013, Frantisek Hrbata wrote: > If I understand it correctly, this would mean that you will be able to use only > one implementation of gcov format at the time. Meaning you will be able to get > coverage data for module, but not for kernel if it was compiled with different > gcc(gcda format). This is probably ok if you work only on your module, but I'm > not sure this is generally the right approach. In this case I would probably > rather see some support for more gcov formats at the same time(e.g. set of > callback operations per gcov version). Again I'm probably missing something, but > I still cannot see reason why to add such feature. If you want gcov support just > compile your kernel and modules with the same gcc version(gcda format). But if > this is really needed maybe it would be better to consider some parallel support > for more gcov formats based on the gcov_info version. The kernel is always built with exactly one version, including all the modules. I don't see any reason whatsoever to support externally built modules with gcov, in particular when they are not built with the system compiler. Arnd