142 + Long.toHexString(sample.getThreadValue()); |
142 + Long.toHexString(sample.getThreadValue()); |
143 } |
143 } |
144 |
144 |
145 // Get that contains name for thread |
145 // Get that contains name for thread |
146 ArrayList al = ptd.staticData.getColumnMatch(Messages.IrqTrace_1, |
146 ArrayList al = ptd.staticData.getColumnMatch(Messages.IrqTrace_1, |
147 Messages.IrqTrace_2, new Long(sample.getThreadValue())); |
147 Messages.IrqTrace_2, Long.valueOf(sample.getThreadValue())); |
148 if (al.size() > 0) { |
148 if (al.size() > 0) { |
149 return (String) al.get(0); |
149 return (String) al.get(0); |
150 } else { |
150 } else { |
151 return Messages.IrqTrace_3 |
151 return Messages.IrqTrace_3 |
152 + Long.toHexString(sample.getThreadValue()); |
152 + Long.toHexString(sample.getThreadValue()); |
262 sample.sampleSynchTime); |
262 sample.sampleSynchTime); |
263 } |
263 } |
264 } |
264 } |
265 } |
265 } |
266 // if thread is not yet found from threadToOffset |
266 // if thread is not yet found from threadToOffset |
267 if (!this.threadToOffset.containsKey(new Long(sample |
267 if (!this.threadToOffset.containsKey(Long.valueOf(sample |
268 .getThreadValue()))) { |
268 .getThreadValue()))) { |
269 this.threadToOffset.put(new Long(sample.getThreadValue()), |
269 this.threadToOffset.put(Long.valueOf(sample.getThreadValue()), |
270 Integer.valueOf(swiOffset++)); |
270 Integer.valueOf(swiOffset++)); |
271 |
271 |
272 // read thread names from trace if needed |
272 // read thread names from trace if needed |
273 if (readThreadNamesFromTrace) { |
273 if (readThreadNamesFromTrace) { |
274 try { |
274 try { |
275 this.threadToName.put(new Long(sample |
275 this.threadToName.put(Long.valueOf(sample |
276 .getThreadValue()), this |
276 .getThreadValue()), this |
277 .getThreadName(sample)); |
277 .getThreadName(sample)); |
278 } catch (NullPointerException e1) { |
278 } catch (NullPointerException e1) { |
279 this.threadToName |
279 this.threadToName |
280 .put(new Long(sample.getThreadValue()), |
280 .put(Long.valueOf(sample.getThreadValue()), |
281 Messages.IrqTrace_6 |
281 Messages.IrqTrace_6 |
282 + Long.toHexString(sample |
282 + Long.toHexString(sample |
283 .getThreadValue())); |
283 .getThreadValue())); |
284 } |
284 } |
285 } |
285 } |
286 |
286 |
287 // create thread wrapper for the thread and add it to allThreadWrappers |
287 // create thread wrapper for the thread and add it to allThreadWrappers |
288 SwiThreadWrapper wrapper = new SwiThreadWrapper(); |
288 SwiThreadWrapper wrapper = new SwiThreadWrapper(); |
289 wrapper.threadAddress = new Long(sample.getThreadValue()); |
289 wrapper.threadAddress = Long.valueOf(sample.getThreadValue()); |
290 wrapper.threadName = threadToName.get(sample |
290 wrapper.threadName = threadToName.get(sample |
291 .getThreadValue()); |
291 .getThreadValue()); |
292 this.allThreadWrappers.add(wrapper); |
292 this.allThreadWrappers.add(wrapper); |
293 } |
293 } |
294 |
294 |
295 // if this is hardware interrupt |
295 // if this is hardware interrupt |
296 } else if (sample.getType() == IrqSample.TYPE_IRQ) { |
296 } else if (sample.getType() == IrqSample.TYPE_IRQ) { |
297 val = sample.getIrqL1Value() + (sample.getIrqL2Value() << 8); |
297 val = sample.getIrqL1Value() + (sample.getIrqL2Value() << 8); |
298 table = irqTable; |
298 table = irqTable; |
299 |
299 |
300 if (!this.irqToOffset.containsKey(new Long(val))) { |
300 if (!this.irqToOffset.containsKey(Long.valueOf(val))) { |
301 this.irqToOffset.put(new Long(val), |
301 this.irqToOffset.put(Long.valueOf(val), |
302 Integer.valueOf(irqOffset++)); |
302 Integer.valueOf(irqOffset++)); |
303 } |
303 } |
304 |
304 |
305 // if line is already found from irq line hashtable |
305 // if line is already found from irq line hashtable |
306 if (!irqLines.containsKey(val)) { |
306 if (!irqLines.containsKey(val)) { |
328 } else { |
328 } else { |
329 throw new ArrayIndexOutOfBoundsException(); |
329 throw new ArrayIndexOutOfBoundsException(); |
330 } |
330 } |
331 |
331 |
332 // Add interrupts into its sampleTypeWrapper or create one if needed |
332 // Add interrupts into its sampleTypeWrapper or create one if needed |
333 valL = new Long(val); |
333 valL = Long.valueOf(val); |
334 if (!table.containsKey(valL)) { |
334 if (!table.containsKey(valL)) { |
335 IrqSampleTypeWrapper w = new IrqSampleTypeWrapper(sample, |
335 IrqSampleTypeWrapper w = new IrqSampleTypeWrapper(sample, |
336 colorSet, colorsOfThreadsAndLines); |
336 colorSet, colorsOfThreadsAndLines); |
337 table.put(valL, w); |
337 table.put(valL, w); |
338 } else { |
338 } else { |