mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 13:51:26 +02:00
REORG: include: move freq_ctr to haproxy/
types/freq_ctr.h was moved to haproxy/freq_ctr-t.h and proto/freq_ctr.h was moved to haproxy/freq_ctr.h. Files were updated accordingly, no other change was applied.
This commit is contained in:
parent
889faf467b
commit
6634794992
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* include/types/freq_ctr.h
|
||||
* include/haproxy/freq_ctr.h
|
||||
* This file contains structure declarations for frequency counters.
|
||||
*
|
||||
* Copyright (C) 2000-2010 Willy Tarreau - w@1wt.eu
|
||||
* Copyright (C) 2000-2020 Willy Tarreau - w@1wt.eu
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@ -19,8 +19,8 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef _TYPES_FREQ_CTR_H
|
||||
#define _TYPES_FREQ_CTR_H
|
||||
#ifndef _HAPROXY_FREQ_CTR_T_H
|
||||
#define _HAPROXY_FREQ_CTR_T_H
|
||||
|
||||
#include <haproxy/api-t.h>
|
||||
|
||||
@ -45,7 +45,7 @@ struct freq_ctr_period {
|
||||
unsigned int prev_ctr; /* value for last period */
|
||||
};
|
||||
|
||||
#endif /* _TYPES_FREQ_CTR_H */
|
||||
#endif /* _HAPROXY_FREQ_CTR_T_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* include/proto/freq_ctr.h
|
||||
* include/haproxy/freq_ctr.h
|
||||
* This file contains macros and inline functions for frequency counters.
|
||||
*
|
||||
* Copyright (C) 2000-2014 Willy Tarreau - w@1wt.eu
|
||||
* Copyright (C) 2000-2020 Willy Tarreau - w@1wt.eu
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@ -19,14 +19,14 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef _PROTO_FREQ_CTR_H
|
||||
#define _PROTO_FREQ_CTR_H
|
||||
#ifndef _HAPROXY_FREQ_CTR_H
|
||||
#define _HAPROXY_FREQ_CTR_H
|
||||
|
||||
#include <haproxy/atomic.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <haproxy/freq_ctr-t.h>
|
||||
#include <haproxy/intops.h>
|
||||
#include <haproxy/time.h>
|
||||
#include <types/freq_ctr.h>
|
||||
|
||||
|
||||
/* Update a frequency counter by <inc> incremental units. It is automatically
|
||||
@ -324,7 +324,7 @@ static inline unsigned int swrate_avg(unsigned int sum, unsigned int n)
|
||||
return (sum + n - 1) / n;
|
||||
}
|
||||
|
||||
#endif /* _PROTO_FREQ_CTR_H */
|
||||
#endif /* _HAPROXY_FREQ_CTR_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
@ -26,7 +26,7 @@
|
||||
#include <haproxy/api.h>
|
||||
#include <haproxy/time.h>
|
||||
#include <types/activity.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
|
||||
/* bit fields for "profiling" */
|
||||
#define HA_PROF_TASKS_OFF 0x00000000 /* per-task CPU profiling forced disabled */
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include <types/global.h>
|
||||
#include <types/proxy.h>
|
||||
#include <types/listener.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
|
||||
extern struct proxy *proxies_list;
|
||||
extern struct eb_root used_proxy_id; /* list of proxy IDs in use */
|
||||
|
@ -34,7 +34,7 @@
|
||||
|
||||
#include <proto/queue.h>
|
||||
#include <proto/log.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
|
||||
|
||||
__decl_thread(extern HA_SPINLOCK_T idle_conn_srv_lock);
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include <types/action.h>
|
||||
#include <types/stream.h>
|
||||
#include <proto/fd.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
#include <proto/obj_type.h>
|
||||
#include <proto/queue.h>
|
||||
#include <proto/stick_table.h>
|
||||
|
@ -23,7 +23,7 @@
|
||||
#define _TYPES_ACTIVITY_H
|
||||
|
||||
#include <haproxy/api-t.h>
|
||||
#include <types/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr-t.h>
|
||||
|
||||
/* per-thread activity reports. It's important that it's aligned on cache lines
|
||||
* because some elements will be updated very often. Most counters are OK on
|
||||
|
@ -23,7 +23,7 @@
|
||||
#define _TYPES_APPLET_H
|
||||
|
||||
#include <haproxy/api-t.h>
|
||||
#include <types/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr-t.h>
|
||||
#include <types/hlua.h>
|
||||
#include <types/obj_type.h>
|
||||
#include <types/proxy.h>
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include <haproxy/api-t.h>
|
||||
#include <haproxy/thread.h>
|
||||
|
||||
#include <types/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr-t.h>
|
||||
#include <types/listener.h>
|
||||
#include <types/proxy.h>
|
||||
#include <types/task.h>
|
||||
|
@ -42,7 +42,7 @@
|
||||
#include <types/checks.h>
|
||||
#include <types/counters.h>
|
||||
#include <types/filters.h>
|
||||
#include <types/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr-t.h>
|
||||
#include <types/listener.h>
|
||||
#include <types/log.h>
|
||||
#include <types/obj_type.h>
|
||||
|
@ -35,7 +35,7 @@
|
||||
#include <types/connection.h>
|
||||
#include <types/counters.h>
|
||||
#include <types/dns.h>
|
||||
#include <types/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr-t.h>
|
||||
#include <types/obj_type.h>
|
||||
#include <types/proxy.h>
|
||||
#include <types/queue.h>
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include <haproxy/thread.h>
|
||||
|
||||
#include <types/filters.h>
|
||||
#include <types/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr-t.h>
|
||||
#include <types/log.h>
|
||||
#include <types/proxy.h>
|
||||
#include <types/sample.h>
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <import/eb32tree.h>
|
||||
#include <common/memory.h>
|
||||
#include <types/dict.h>
|
||||
#include <types/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr-t.h>
|
||||
#include <types/peers.h>
|
||||
#include <types/sample.h>
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include <types/activity.h>
|
||||
#include <proto/channel.h>
|
||||
#include <proto/cli.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
#include <proto/stream_interface.h>
|
||||
|
||||
|
||||
|
@ -50,7 +50,7 @@
|
||||
#include <proto/compression.h>
|
||||
#include <proto/stats.h>
|
||||
#include <proto/fd.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
#include <proto/frontend.h>
|
||||
#include <proto/log.h>
|
||||
#include <proto/pattern.h>
|
||||
|
@ -36,7 +36,7 @@
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <proto/compression.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
#include <proto/stream.h>
|
||||
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include <proto/arg.h>
|
||||
#include <proto/backend.h>
|
||||
#include <proto/filters.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
#include <proto/frontend.h>
|
||||
#include <proto/http_rules.h>
|
||||
#include <proto/log.h>
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <haproxy/api.h>
|
||||
#include <common/standard.h>
|
||||
#include <haproxy/time.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
|
||||
/* Read a frequency counter taking history into account for missing time in
|
||||
* current period. Current second is sub-divided in 1000 chunks of one ms,
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <proto/acl.h>
|
||||
#include <proto/connection.h>
|
||||
#include <proto/fd.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
#include <proto/log.h>
|
||||
#include <proto/listener.h>
|
||||
#include <proto/protocol.h>
|
||||
|
@ -37,7 +37,7 @@
|
||||
|
||||
#include <proto/connection.h>
|
||||
#include <proto/fd.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
#include <proto/listener.h>
|
||||
#include <proto/log.h>
|
||||
#include <proto/protocol.h>
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
#include <proto/connection.h>
|
||||
#include <proto/fd.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
#include <proto/log.h>
|
||||
#include <proto/pipe.h>
|
||||
#include <proto/raw_sock.h>
|
||||
|
@ -68,7 +68,7 @@
|
||||
#include <proto/connection.h>
|
||||
#include <proto/cli.h>
|
||||
#include <proto/fd.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
#include <proto/frontend.h>
|
||||
#include <proto/http_rules.h>
|
||||
#include <proto/listener.h>
|
||||
|
@ -52,7 +52,7 @@
|
||||
#include <proto/dns.h>
|
||||
#include <proto/stats.h>
|
||||
#include <proto/fd.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
#include <proto/frontend.h>
|
||||
#include <proto/http_htx.h>
|
||||
#include <proto/log.h>
|
||||
|
@ -42,7 +42,7 @@
|
||||
#include <proto/stats.h>
|
||||
#include <proto/fd.h>
|
||||
#include <proto/filters.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
#include <proto/frontend.h>
|
||||
#include <proto/hlua.h>
|
||||
#include <proto/http_rules.h>
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include <import/eb32tree.h>
|
||||
|
||||
#include <proto/fd.h>
|
||||
#include <proto/freq_ctr.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
#include <proto/proxy.h>
|
||||
#include <proto/stream.h>
|
||||
#include <proto/task.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user