1 /*******************************************************************************
2 * Copyright (c) 2013 Ericsson
4 * All rights reserved. This program and the accompanying materials are made
5 * available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.core
.ctfadaptor
;
15 import org
.eclipse
.linuxtools
.ctf
.core
.event
.CTFCallsite
;
18 * Callsite information
21 public class CtfTmfCallsite
{
23 private String eventName
;
24 private String fileName
;
25 private String functionName
;
26 private long lineNumber
;
29 CtfTmfCallsite(CTFCallsite callsite
) {
30 eventName
= callsite
.getEventName();
31 fileName
= callsite
.getFileName();
32 functionName
= callsite
.getFunctionName();
33 lineNumber
= callsite
.getLineNumber();
34 ip
= callsite
.getIp();
38 * @return the event name
40 public String
getEventName() {
45 * @return the file name
47 public String
getFileName() {
52 * @return the function name
54 public String
getFunctionName() {
59 * @return the line number
61 public long getLineNumber() {
73 public String
toString() {
74 return eventName
+ "@0x" + Long
.toHexString(ip
) + ": " + //$NON-NLS-1$ //$NON-NLS-2$
75 fileName
+ ':' + Long
.toString(lineNumber
) + ' ' + functionName
+ "()"; //$NON-NLS-1$
This page took 0.032857 seconds and 5 git commands to generate.