Intel® Inspector User Guide for Linux* OS

ID 767796
Date 5/15/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Workaround for Disabled Suppressions from the Command Line

Rules for Enabling Suppressions

The rules for enabling suppressions vary depending on whether the analysis is performed in the Intel Inspector GUI or on the command line.

When analysis is performed in the GUI

The ability to apply suppressions to the result is determined by whether the Allow Suppressions setting was enabled in the Project Properties at the time that the result was created. Once the result is created, this setting is cannot be changed. Likewise, imported results retain their original settings.

When analysis is performed on the command line

The ability to apply suppressions is automatically enabled regardless of result or project settings. You can also use suppression files when generating a report.

What to Do When Suppressions Are Disabled in a Result

If you want to apply suppressions but they are disabled in your result, you have two main options: enable suppressions in the current project and perform the next analysis on the command line, or create a new project in which suppressions are allowed and run a new analysis.

Example: Workaround for Disabled Suppressions

By performing analysis on the command line, you can create a new result that has enabled suppressions, with all the problem state assignments and annotations as the old result. You can use the Copy Command tool to capture the basic analysis settings, but should also specify the old result as the baseline and apply suppressions to the new analysis.

Before running this command, you should enable suppressions in this project so that you will have the option of applying suppressions when initiating analysis in the GUI.

In this example, the baseline-result option provides the path to the baseline result directory. If this is not specified, the analysis uses the most recent result of the same analysis type in the current working directory by default.

Thesuppression-file option can pass in either the parent directory where suppression files are stored, or the PATHname of a specific suppression file. In this example, the suppressions parent directory is specified, so inspxe-cl applies whatever suppression files are in this directory during analysis. To make it easy to switch between the GUI and the command line, store suppression files in the standard suppressions directory: ./My Inspector Results-[project name]/suppressions.

$ inspxe-cl -collect ti2 -baseline-result ./old_result_dir -suppression-file ./suppressions/ -- myApp

The result of this analysis has suppressions enabled, contains all the problem settings and annotations as the previous result, and shows which problems are suppressed.