To enable CTF tracing

  1. Set the MFTRACE_CONFIG environment variable to point to the configuration file, before you invoke the application. For example:

    You can set this environment variable in a debug configuration, so that the trace is automatically enabled when you debug with this configuration.

  2. Specify the format of CTF trace files you require by adding the appropriate lines in the configuration file ctf.cfg, such as:
    mftrace.dest = binfile
    mftrace.emitter.binfile#location  = 
    mftrace.level.mf.rts              = info
    mftrace.comp.mf.rts#pgm           = true
    mftrace.comp.mf.rts#pgmload       = true
    mftrace.comp.mf.rts#syspgm        = true
  3. Set the MFTRACE_LOGS environment variable to specify the location in which to create the CTF log files. If MFTRACE_LOGS is not set, the current folder is used.
  4. Run the application from the environment you set up.