[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/3] xen/misra: xen-analysis.py: use the relative path from the ...


  • To: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Fri, 19 May 2023 09:25:49 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=arm.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kb0a18HqGbaJZ9tZ/7ciRPB+FTXd7WBltR8R5VrxBZA=; b=eqpANoGtqVTT3lZHfLJHbpODAaFkkzfP2G2leuSf60kpl6JsswsbAtgDOu14cb7udgWGXXi5y9KzOtka3ddIM5jzrNbfxxUUK1JCTdaGC8mU+FPRGETGZCFBq4YgCkKSIsE0JtEynDehYVD3nSYXFjHzU7URK1ZEFtbPsoeHiyFnY+Sq1CeXZw67OWD4Yphm+XbBGhMOJxJ+CibQKMWyA3iGssKLfOqZHsqIS9McJnVKve/7KvBygZ1puCTnnH5BqV3ClYLAV+e+RE45+FFmrJ3ol93VPP2mxUeXKwNswhBmtnLq6GYwp8El9ntTmN8YPMKbHYpYdr7aJpWmQozbeg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hwOtdoPugVnA9wPpxb0XUWgOP1GWj89wlOHLQJMmq0kZEedGPczU90Af0sYkkaZIjSA0tGB+rWHNWX8UWBWRe9aVpFAx5eaOcW5touZKYWFgX1jVXGyAV2FSpxM8rT8O5PjOkv+KiZC70Hy62HGnYkkt/OHUS0UX3f0KOqkaIZc9wDrcBp3Y0dZg+ZXTJSylIIGVb19GZpVn6PgRGPa7yOyfdtqy3NGEbigZ5jsrTGWElaPP/I4NRz07mZUxQ/WMrJCX5PpHRbmVBtRbgutDEL0urzhhLSE/2eRl7gvCq29pfPWF00lJ7vJKN80l8ayKpJmI5bWUcO6Kl6oioowwNg==
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Wei Chen <Wei.Chen@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, "Jan Beulich" <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Fri, 19 May 2023 07:26:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 19/05/2023 09:12, Luca Fancellu wrote:
> 
> 
>> On 19 May 2023, at 08:08, Michal Orzel <michal.orzel@xxxxxxx> wrote:
>>
>> Hi Luca,
>>
>> On 17/05/2023 02:44, Stefano Stabellini wrote:
>>>
>>>
>>> On Thu, 4 May 2023, Luca Fancellu wrote:
>>>> repository in the reports
>>>>
>>>> Currently the cppcheck report entries shows the relative file path
>>>> from the /xen folder of the repository instead of the base folder.
>>>> In order to ease the checks, for example, when looking a git diff
>>>> output and the report, use the repository folder as base.
>>>>
>>>> Signed-off-by: Luca Fancellu <luca.fancellu@xxxxxxx>
>>>
>>> Acked-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
>>> Tested-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
>>
>> I know this patch is now committed but there is something confusing here.
>> At the moment, in the cppcheck report we have paths relative to xen/ e.g.:
>> arch/arm/arm64/lib/bitops.c(117,1):...
>>
>> So after this patch, I would expect to see the path relative to root of 
>> repository e.g.:
>> *xen/*arch/arm/arm64/lib/bitops.c(117,1):...
>>
>> However, with or without this patch the behavior is the same.
>> Did I misunderstand your patch?
> 
> Hi Michal,
> 
> Thank you for having spotted this, during my tests I was using 
> Xen-analysis.py so that it
> calls the makefile with out-of-tree build, I’ve found after your mail that 
> when it calls the makefile
> with in-tree-build, cppcheck is run from /xen/xen and it causes it to produce 
> relative path from
> there in the TXT fragments, showing the issue you observed.
Ok, the way I test it is the same as in our gitlab CI so this needs to be fixed.

> 
> I have ready a fix for that and I’ll push that soon.
Thanks.

~Michal



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.