HACKERS 973 B

123456789101112131415161718192021222324252627282930
  1. $Id: HACKERS,v 1.2 2005/10/16 15:26:47 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(). This way, all information
  7. submitted by one probe is measured at the same time.
  8. Places to touch:
  9. - lib/data.[ch]: define the new dataformat. MT_YOURSTREAM should be the old
  10. MT_EOF to not break old versions.
  11. - lib/lex.[ch]: define the token for the lexer
  12. - sym[on|ux]/readconf.c: parse the new token
  13. - symux/c_smrrds.sh: add new rrdtool storage format
  14. - platform/stub/sm_<name>.c: insert your stub probe here. Makefile will look
  15. for platform/<os>/sm_<name>.c after that.
  16. - platform/<os>/sm_<name>.c: your probe
  17. - symon/main.c: insert hooks into probe caller table
  18. - symon/symon.8, symux/symux.8: add your token and its internal format to the
  19. manual pages.