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

Re: Misra rule 10.3 violations report script


  • To: Luca Fancellu <Luca.Fancellu@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ayan Kumar Halder <ayankuma@xxxxxxx>
  • Date: Thu, 28 Sep 2023 19:20:14 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; 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=ugrOY89PIWfa9NXUFzEQkr8whd/Ny5XGFm/32b9VS0s=; b=d030f8sxF6eL4ujR6ZPTZf7rnCOthgab75jFg2a1/5NpA6SXxqS/ZJl381/Yy+UCaVVnMtq6LL50xqTPXkQAASGgodIZAw2xb/GBmxEo378y6KUyh1R1WHb5H/fOHY+toGdL2FQdugVZggYVXCLR/MVW2s1oOxBBHtft8hj8k7sPFVhwOZMSrivMOH07qzfZChZy/Jj2NXi+ji6wxFLc0A3kk+gjuUMkBHUVonhSKz8uXlB7lA8KoapY6Q+m4GQcJO52QLCukNtGYkljlPZAZJkudMYRnR48teE44fkpOkHXNGcMvBpycYXIuTuBgRAaFP2X4g5HKJo6anpIBatHAQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aaMxakZPjZu7MizOPqYFBufsZeOhnQw9MFNoM6Z832nTU9Yec2zw8ZtvKlB+aMuEfX30A9DI5Hx+wWBnN3kkoH3G9LM9YverKsVvE+CGgKRupdUii5I8YX0naxKiYQfRTrgezns2JwVx89px/eTeH1pwV5DBW91PzBn3Q3m1wcx48DJL9R9hGbPYdH0S5/FTinwLhXwguuaceYV7Pnlg0sAbkYoil1p96VY1T1KHzQC8QJ2MkOWoyTSwJnyPB1LQzR+74zD/6KgIIvF1/hVuoaWBr9zbkkJlRznvrVTluR5kw/itV2BzPB01bqIdXUehZoB7ObqUvBq2C5u/+2RCWw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Delivery-date: Thu, 28 Sep 2023 18:20:49 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 28/09/2023 09:34, Luca Fancellu wrote:
CAUTION: This message has originated from an External Source. Please use proper 
judgment and caution when opening attachments, clicking links, or responding to 
this email.


Hi all,
Hi Luca,

In the last MISRA meeting Stefano told me about the Rule 10.3 and that we have 
a lot of violations,
but GCC has a way to list them as written in rules.rst.

So the issue was just that we have a lot of violations, most of them coming 
from headers and the
Developer might feel a bit lost since the number is very high, so I’ve 
developed this script to take
the GCC build log and create a list of unique occurrences of the violations 
sorted in descending
order, so that who has a bit of time can try to fix some of those and maybe can 
start from the top
of the list to fix as many as possible occurrences.

I attach the script as patch file.

This is an excellent script to see the violations in a neat way. For eg, I see this

arch/arm/domain_build.c:3883:28 (1)
arch/arm/domain_build.c:3910:36 (1)
./include/xen/pfn.h:6:23 (1)
./include/xen/macros.h:4:40 (1)
arch/arm/setup.c:221:10 (1)
arch/arm/setup.c:227:59 (1)

I think once in a while, we have been approached by newbies wanting to contribute to Xen project.

For eg "Beginner looking to contribute to project in archived list"

Sometimes people reach out individually as well.

Do you have such similar tasks (like this) within or beyond the scope of MISRA which will require some basic programming skills and is a great first step to learn and contribute to Xen project ?

This can be things which students/folks can contribute on an ad-hoc basis.

I can work with Kelly to see if we can put them in a wiki page.

I could see https://wiki.xenproject.org/wiki/Outreach_Program_Projects , but don't know if it is up to date.

- Ayan


Cheers,
Luca




 


Rackspace

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