Lines Matching defs:log_fd

144     log (int log_fd)
146 if (m_str && log_fd >= 0)
151 write (log_fd, m_str, len);
154 write (log_fd, "\n", 1);
233 Dump (int log_fd) const;
362 log (int log_fd, const FDEvent *event, const char *format, ...) __attribute__ ((format (printf, 3, 4)));
371 log_to_fd (int log_fd, const char *format, ...) __attribute__ ((format (printf, 2, 3)));
474 log_to_fd (int log_fd, const char *format, va_list args)
476 if (format && format[0] && log_fd >= 0)
481 write (log_fd, buffer, count);
486 log_to_fd (int log_fd, const char *format, ...)
492 log_to_fd (log_fd, format, args);
516 log (int log_fd, const FDEvent *event, const char *format, ...)
522 log_to_fd (log_fd, format, args);
526 event->Dump(log_fd);
530 FDEvent::Dump (int log_fd) const
532 if (log_fd >= 0)
534 log_to_fd (log_fd, "%s\n", m_string_sp->c_str());
536 ::backtrace_symbols_fd (m_frames.data(), m_frames.size(), log_fd);
540 log_to_fd (log_fd, "\nfd=%i was created with this event:\n", m_fd);
541 m_create_event_sp->Dump (log_fd);
542 log_to_fd (log_fd, "\n");
551 const int log_fd = get_logging_fd ();
552 if (log_fd >= 0)
564 ::backtrace_symbols_fd (frames.data(), frames.size(), log_fd);
575 const int log_fd = get_logging_fd ();
576 if (log_fd >= 0)
590 ::backtrace_symbols_fd (frames.data(), frames.size(), log_fd);
617 const int log_fd = get_logging_fd();
620 log (log_fd, fd_event_sp.get(), "\nwarning: unmatched file descriptor create event fd=%i (we missed a file descriptor close event):\n", fd);
636 const int log_fd = get_logging_fd();
639 log (log_fd, fd_event_sp.get(), "\nwarning: unmatched file descriptor close event for fd=%d (we missed the file descriptor create event):\n", fd);
1092 // @param[in] log_fd
1099 get_fd_history (int log_fd, int fd)
1102 if (log_fd >= 0)
1109 log_to_fd (log_fd, "Dumping file descriptor history for fd=%i:\n", fd);
1115 event_array[i]->Dump (log_fd);
1119 log_to_fd (log_fd, "error: no file descriptor events found for fd=%i\n", fd);
1124 log_to_fd (log_fd, "error: fd event mutex is locked...\n");