Команды SFK


    1        2        3        4        5        6        7        8        9        10    

Раздел 8. Development - Разработка
bin-to-src | fuzz | inst | make-random-file | patch | sample |

Help:   Рус   |   Eng        

Команда: inst
sfk inst mtkinc mtkmac -dir ... -file ...
sfk inst -revoke[|-redo] [-keep-dates] -dir ... -file ...

  instrument c++ sourcecode with calls to sfk micro tracing kernel.
  simulates by default. add -yes to apply changes.

  parameters
    mtkinc         path and name of mtktrace.hpp file
    mtkmac         mtk block entry macro name, _mtkb_

  options
    -revoke        undo all changes (copy backups back).
                   do not specify mtkinc, mtkmac on -revoke.
    -keep-dates    on revoke, also reactivate original file dates
    -redo          redo all changes
    -witheol       also instrument { at end of line, like in:
                   void Foo::bar(int nmode) {

       sfk inst mtk/mtktrace.hpp _mtkb_ -dir testfiles !\save_ -file .cpp
          instrument the code (saving all in save_inst dirs)

       sfk inst -revoke -keep-dates -dir testfiles !\save_ -file .cpp
          restore original code (copying back from save-inst dirs),
          also restoring the original time stamps.

       sfk sel -dir base ext lib -file .cpp +inst mtk/mtktrace.hpp _mtkb_
          select the files of interest, and when done, run +inst on them.

    NOTE: is is recommended that you do NOT say "-dir ." in your batch files
          to ensure that instrumenting is always done on the correct path.

    read more about the sfk micro tracing kernel in the mtk/ dir.