We are using intel inspector in command line, and producing csv files. We have reports like
"X1882","P9","Kernel resource leak"
Is it possible to know the complete list of rules the inspector checks. Im using intel inspector 2013.
Thanks in advance
As I know that Inspector can detect "resource leak" within "memory error analysis". Resource leak means that some kernel objects are created but never closed (destroyed) in your code. Actually Inspector traces all Win Object APIs called by your code to find errors.
If you wont the tool to report such errors, just use option "-knob resources=false" in command line.
It seems i was not clear enough, sorry. What i try to do is import intel report into sonar (http://www.sonarsource.com/). For that i need a profile with the intel rules. But i can find them anywhere. So basically, for each rule a id, description and criticality is needed to display something in sonar.
Is there such a thing?
Thanks in advance
Sonar supports anything we want, as it does not run Intel Inspector. Its me that will run intel inspector, and produce a report with violations. This is a simple csv file that is converted into xml that sonar understands. Nothing fancy here.
On Sonar for the rules to be imported, they simple need to be defined in a quality profile. I also define this by providing to sonar a xml file like this:
<?xml version="1.0" encoding="ASCII"?>
<name><![CDATA[ Unknown NOLINT error category: %s % category]]></name>
<category name="readability" />
<description><![CDATA[ Unknown NOLINT error category: %s % category ]]></description>
Now i need the same xml file populated with intel rules like this for example:
<name><![CDATA[ This is a memory leak]]></name>
<category name="memory" />
<description><![CDATA[ This is a memory leak ]]></description>
However i want the description and rule key to be matching those of intel for example in the csv file produces:
"Error","X1848","P4","Kernel resource leak"
So i could get a description of what X1848 and P4 mean would be great.
Thats cover already (python script), and im able to get violations in sonar no problem. However i have 2 rules relevant intel inspector. One is intel.warning and another intel.error . What i want now is more granularity, so i need to translate those Ids Xxxxx into something more reasonable for users to see.
Im mean is there any document in your side that describes those "X1882","P9" ids?
The id's starting with X's identify code locations (also called observations) - you can look this up in the help. I think you can ignore these.
The id's starting with P's identify problems. Entries with the same problem id are related (except for the 'memory not deallocated' problem) - they are different code locations related to the same problem (the allocation site, the site of the uninitialized read, etc).
The 'Problem Type Reference' section in the documentation should give the list of rules Inspector checks. (It won't give the exact wording, though, that you need to process the CSV file.)