Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327096

Summary: [LTTng] Incorrect compare for LTT_CHANNEL_KERNEL results in drawing more events than intended
Product: z_Archived Reporter: Thomas Gatterweh <thomas_gatterweh>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED WONTFIX QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3 CC: patrick.tasse
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 301632    
Attachments:
Description Flags
patch file none

Description Thomas Gatterweh CLA 2010-10-06 08:25:46 EDT
Build Identifier: 0.6.1

In ResourcesBeforeUpdateHandlers.java there are compares in the form

	// According to Ltt, we should not draw anything if the channel
	// is the kernel one
	if (trcEvent.getChannelName().equals(
			Channels.LTT_CHANNEL_KERNEL)) {
		return false;
	} else {

However, because the Channels enumeration is not of type String, these compares are useless and will never behave as the comment implies. Instead, the result of the Channel.getInName() function should be compared.

Reproducible: Always
Comment 1 Thomas Gatterweh CLA 2010-10-06 08:29:07 EDT
Created attachment 180321 [details]
patch file
Comment 2 Patrick Tasse CLA 2013-05-22 14:15:10 EDT
This bug was for Legacy LTTng which is being removed in Linux Tools 2.0.