probe.c 786 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (C) 2013 Michael Buesch <m@bues.ch>
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version 2
  7. * of the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #include "probe.h"
  15. #include "log.h"
  16. void print_probe_message(const struct probe *probe)
  17. {
  18. if (probe) {
  19. logdebug("Probing '%s' (%s @ %p)\n",
  20. probe->name,
  21. probe->func_name,
  22. probe->func);
  23. }
  24. }