frysk.ftrace
Class FtraceController

java.lang.Object
  extended by frysk.ftrace.FtraceController
All Implemented Interfaces:
Ftrace.Controller, Ftrace.StackTracedSymbolsProvider, Ftrace.TracedSignalProvider, Ftrace.TracedSyscallProvider

public class FtraceController
extends Object
implements Ftrace.Controller, Ftrace.StackTracedSymbolsProvider, Ftrace.TracedSyscallProvider, Ftrace.TracedSignalProvider


Constructor Summary
FtraceController()
           
 
Method Summary
 Map computeSignalWorkingSet(Task task)
          Answers Map<String, Boolean>, where the boolean value is whether to stack trace on given signal.
 Map computeSyscallWorkingSet(Task task)
          Answers Map<Syscall, Boolean>, where the boolean value is whether to stack trace on given syscall.
 void fileMapped(Task task, ObjectFile objf, DwflModule module, Ftrace.Driver driver)
          New library FILE was mapped in task TASK.
 void fileUnmapped(Task task, ObjectFile objf, DwflModule module, Ftrace.Driver driver)
          New library FILE was unmapped from task TASK.
 void gotAddrRules(List rules)
           
 void gotSigRules(List rules)
           
 void gotSymRules(List rules)
           
 void gotSysRules(List rules)
           
 boolean shouldStackTraceOnTracePoint(Object tracePoint)
           
 void stackTraceEverything()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FtraceController

public FtraceController()
Method Detail

stackTraceEverything

public void stackTraceEverything()

shouldStackTraceOnTracePoint

public boolean shouldStackTraceOnTracePoint(Object tracePoint)
Specified by:
shouldStackTraceOnTracePoint in interface Ftrace.StackTracedSymbolsProvider
Parameters:
tracePoint - is either DwflSymbol or PLTEntry.

gotSymRules

public void gotSymRules(List rules)

gotAddrRules

public void gotAddrRules(List rules)

gotSysRules

public void gotSysRules(List rules)

gotSigRules

public void gotSigRules(List rules)

computeSyscallWorkingSet

public Map computeSyscallWorkingSet(Task task)
Description copied from interface: Ftrace.TracedSyscallProvider
Answers Map<Syscall, Boolean>, where the boolean value is whether to stack trace on given syscall.

Specified by:
computeSyscallWorkingSet in interface Ftrace.TracedSyscallProvider

computeSignalWorkingSet

public Map computeSignalWorkingSet(Task task)
Description copied from interface: Ftrace.TracedSignalProvider
Answers Map<String, Boolean>, where the boolean value is whether to stack trace on given signal.

Specified by:
computeSignalWorkingSet in interface Ftrace.TracedSignalProvider

fileMapped

public void fileMapped(Task task,
                       ObjectFile objf,
                       DwflModule module,
                       Ftrace.Driver driver)
Description copied from interface: Ftrace.Controller
New library FILE was mapped in task TASK. Use DRIVER to tell ltrace what to do.

Specified by:
fileMapped in interface Ftrace.Controller

fileUnmapped

public void fileUnmapped(Task task,
                         ObjectFile objf,
                         DwflModule module,
                         Ftrace.Driver driver)
Description copied from interface: Ftrace.Controller
New library FILE was unmapped from task TASK. Use DRIVER to tell ltrace what to do.

Specified by:
fileUnmapped in interface Ftrace.Controller