HACKERS 897 B

1234567891011121314151617181920212223242526272829303132
  1. $Id: HACKERS,v 1.1 2005/03/20 16:17:22 dijkstra Exp $
  2. Adding a new probe
  3. ------------------
  4. Get your measurement as fast as possible with as little fuss as possible. Ideal
  5. is to get all items that the user might want to query in one gets() and give
  6. symon the readings for a particular item in a get().
  7. Places to touch:
  8. - lib/data.[ch]: define the new dataformat. MT_YOURSTREAM should be the old
  9. MT_EOF to not break old versions.
  10. - lib/lex.[ch]: define the token for the lexer
  11. - sym[on|ux]/readconf.c: parse the new token
  12. - symux/c_smrrds.sh: add new rrdtool storage format
  13. - platform/stub/sm_<name>.c: insert your stub probe here. Makefile will look
  14. for platform/<os>/sm_<name>.c after that.
  15. - platform/<os>/sm_<name>.c: your probe
  16. - symon/main.c: insert hooks into probe caller table
  17. - symon/symon.8, symux/symux.8: add your token and its internal format to the
  18. manual pages.