Added some "hot" attributes to mark a few routines that deserve
extra optimization. Most likely this has no effect.
Этот коммит содержится в:
родитель
63a0b8d5df
Коммит
ba55284d44
@ -156,7 +156,7 @@ long get_tcpinfo_total_retransmits(struct iperf_interval_results *irp);
|
||||
void print_tcpinfo(struct iperf_test *test);
|
||||
void build_tcpinfo_message(struct iperf_interval_results *r, char *message);
|
||||
|
||||
int iperf_send(struct iperf_test *, fd_set *);
|
||||
int iperf_send(struct iperf_test *, fd_set *) __attribute__((hot));
|
||||
int iperf_recv(struct iperf_test *, fd_set *);
|
||||
void sig_handler(int);
|
||||
void usage();
|
||||
|
@ -35,7 +35,7 @@ int iperf_tcp_recv(struct iperf_stream *);
|
||||
* returns: bytes sent
|
||||
*
|
||||
*/
|
||||
int iperf_tcp_send(struct iperf_stream *);
|
||||
int iperf_tcp_send(struct iperf_stream *) __attribute__((hot));
|
||||
|
||||
|
||||
int iperf_tcp_listen(struct iperf_test *);
|
||||
|
@ -25,7 +25,7 @@ int iperf_udp_recv(struct iperf_stream *);
|
||||
* returns: bytes sent
|
||||
*
|
||||
*/
|
||||
int iperf_udp_send(struct iperf_stream *);
|
||||
int iperf_udp_send(struct iperf_stream *) __attribute__((hot));
|
||||
|
||||
|
||||
/**
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
int netdial(int, int, char *, char *, int);
|
||||
int netannounce(int, int, char *, int);
|
||||
int Nwrite(int, void *, int, int);
|
||||
int Nwrite(int, void *, int, int) __attribute__((hot));
|
||||
int Nread(int, void *, int, int);
|
||||
int getsock_tcp_mss(int);
|
||||
int set_tcp_options(int, int, int);
|
||||
|
@ -55,12 +55,12 @@ extern Timer* tmr_create(
|
||||
** can just put the call to this routine right in your select(). Returns
|
||||
** (struct timeval*) 0 if no timers are pending.
|
||||
*/
|
||||
extern struct timeval* tmr_timeout( struct timeval* nowP );
|
||||
extern struct timeval* tmr_timeout( struct timeval* nowP ) __attribute__((hot));
|
||||
|
||||
/* Run the list of timers. Your main program needs to call this every so often,
|
||||
** or as indicated by tmr_timeout().
|
||||
*/
|
||||
extern void tmr_run( struct timeval* nowP );
|
||||
extern void tmr_run( struct timeval* nowP ) __attribute__((hot));
|
||||
|
||||
/* Reset the clock on a timer, to current time plus the original timeout. */
|
||||
extern void tmr_reset( struct timeval* nowP, Timer* timer );
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user