Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-Vendor: %Bundle-Vendor
-Bundle-Version: 2.2.0.qualifier
+Bundle-Version: 3.0.0.qualifier
Bundle-Localization: plugin
Bundle-SymbolicName: org.eclipse.tracecompass.lttng2.ust.core;singleton:=true
Bundle-Activator: org.eclipse.tracecompass.internal.lttng2.ust.core.Activator
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2016 EfficiOS Inc., Alexandre Montplaisir
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *******************************************************************************/
-
-package org.eclipse.tracecompass.lttng2.ust.core.analysis.debuginfo;
-
-import org.eclipse.jdt.annotation.Nullable;
-import org.eclipse.tracecompass.tmf.core.event.lookup.TmfCallsite;
-
-/**
- * Extension of {@link TmfCallsite} specifically for the debug-info analysis,
- * which will not print the function name in the event table. This name will be
- * available by a separate aspect.
- *
- * @author Alexandre Montplaisir
- * @since 2.0
- * @deprecated No need for this anymore, use {@link TmfCallsite} directly.
- */
-@Deprecated
-public class SourceCallsite extends TmfCallsite {
-
- /**
- * Constructor
- *
- * @param fileName
- * File name
- * @param functionName
- * Function name
- * @param lineNumber
- * Line number
- */
- public SourceCallsite(String fileName, @Nullable String functionName, long lineNumber) {
- super(fileName, lineNumber);
- }
-
- @Override
- public String toString() {
- StringBuilder builder = new StringBuilder();
- builder.append(getFileName()).append(':');
- builder.append(getLineNo());
- return builder.toString();
- }
-
-}
}
/**
- * @since 2.2
+ * @since 3.0
*/
@Override
@Nullable
* info analysis and the IP (instruction pointer) context.
*
* @author Alexandre Montplaisir
- * @since 2.0
+ * @since 3.0
*/
public class UstDebugInfoSourceAspect implements ITmfEventAspect<TmfCallsite> {
String fullFileName = (pathPrefix + callsite.getFileName());
return new TmfCallsite(fullFileName, callsite.getLineNo());
}
-
- /**
- * Get the source callsite (the full {@link TmfCallsite} information) from a
- * binary callsite.
- *
- * @param trace
- * The trace, which may contain trace-specific configuration
- * @param bc
- * The binary callsite
- * @return The source callsite, which sould include file name, function name
- * and line number
- * @since 2.0
- * @deprecated Should not be needed anymore, call aspects's resolve() method
- * directly. The SourceAspect does not include the function name
- * anymore.
- */
- @Deprecated
- public static @Nullable SourceCallsite getSourceCallsite(LttngUstTrace trace, BinaryCallsite bc) {
- TmfCallsite callsite = FileOffsetMapper.getCallsiteFromOffset(
- new File(bc.getBinaryFilePath()),
- bc.getBuildId(),
- bc.getOffset());
- if (callsite == null) {
- return null;
- }
-
- Long callsiteLineNo = callsite.getLineNo();
- long lineNo = (callsiteLineNo == null ? -1 : callsiteLineNo.longValue());
-
- /*
- * Apply the path prefix again, this time on the path given from
- * addr2line. If applicable.
- */
- String pathPrefix = trace.getSymbolProviderConfig().getActualRootDirPath();
- if (pathPrefix.isEmpty()) {
- return new SourceCallsite(callsite.getFileName(), null, lineNo);
- }
-
- String fullFileName = (pathPrefix + callsite.getFileName());
- return new SourceCallsite(fullFileName, null, lineNo);
- }
}
}
/**
- * @since 2.2
+ * @since 3.0
*/
@Override
public LttngUstTrace getTrace() {
*
* @param factory
* The event factory for this specific trace
- * @since 2.2
+ * @since 3.0
*/
protected LttngUstTrace(@NonNull CtfTmfEventFactory factory) {
super(factory);
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.tracecompass.lttng2.ust.core.analysis.debuginfo.BinaryCallsite;
import org.eclipse.tracecompass.lttng2.ust.core.analysis.debuginfo.FunctionLocation;
-import org.eclipse.tracecompass.lttng2.ust.core.analysis.debuginfo.UstDebugInfoAnalysisModule;
import org.eclipse.tracecompass.lttng2.ust.core.analysis.debuginfo.UstDebugInfoBinaryAspect;
import org.eclipse.tracecompass.lttng2.ust.core.analysis.debuginfo.UstDebugInfoFunctionAspect;
import org.eclipse.tracecompass.lttng2.ust.core.trace.LttngUstTrace;