/* * Copyright (C) 2015 Tobias Klauser * * This file is part of llmnrd. * * llmnrd is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 2 of the License. * * llmnrd is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with llmnrd. If not, see . */ #ifndef LOG_H #define LOG_H #include #define log_err(fmt, args...) fprintf(stderr, "Error: " fmt, ##args) #define log_warn(fmt, args...) fprintf(stderr, "Warning: " fmt, ##args) #define log_info(fmt, args...) fprintf(stdout, fmt, ##args) #ifdef DEBUG # define log_dbg(fmt, args...) fprintf(stdout, fmt, ##args) #else # define log_dbg(fmt, args...) #endif #endif /* LOG_H */ p'>emaclite-cleanup net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-09-22 00:41:53 +0100
committerDavid Howells <dhowells@redhat.com>2016-09-22 01:26:25 +0100
commitcf1a6474f80735ff4a5d99f3dd68a94dbec8455f (patch)
tree8ca17608fce76f66375297f2395b0943d8f1e988
parentf07373ead455a396e15a431bc08d8ce1dac6f1cf (diff)
rxrpc: Add per-peer RTT tracker
Add a function to track the average RTT for a peer. Sources of RTT data will be added in subsequent patches. The RTT data will be useful in the future for determining resend timeouts and for handling the slow-start part of the Rx protocol. Also add a pair of tracepoints, one to log transmissions to elicit a response for RTT purposes and one to log responses that contribute RTT data. Signed-off-by: David Howells <dhowells@redhat.com>