FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
stat_weak_inlines.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 /*
17  * NOTE: Only include this file from external components that require
18  * a loose coupling to the stats component.
19  */
20 
21 #ifndef included_stat_weak_inlines_h
22 #define included_stat_weak_inlines_h
23 void *vlib_stats_push_heap (void *) __attribute__ ((weak));
24 void *
25 vlib_stats_push_heap (void *unused)
26 {
27  return 0;
28 };
29 
30 void vlib_stats_pop_heap (void *, void *, u32, int) __attribute__ ((weak));
31 void
32 vlib_stats_pop_heap (void *notused, void *notused2, u32 i, int type)
33 {
34 };
35 void vlib_stats_register_error_index (void *, u8 *, u64 *, u64)
36  __attribute__ ((weak));
37 void
38 vlib_stats_register_error_index (void * notused, u8 * notused2, u64 * notused3, u64 notused4)
39 {
40 };
41 
42 void vlib_stats_pop_heap2 (void *, u32, void *, int) __attribute__ ((weak));
43 void
44 vlib_stats_pop_heap2 (void *notused, u32 notused2, void *notused3,
45  int notused4)
46 {
47 };
48 
49 void vlib_stat_segment_lock (void) __attribute__ ((weak));
50 void
52 {
53 }
54 
55 void vlib_stat_segment_unlock (void) __attribute__ ((weak));
56 void
58 {
59 }
60 void vlib_stats_delete_cm (void *) __attribute__ ((weak));
61 void
62 vlib_stats_delete_cm (void *notused)
63 {
64 }
65 
66 void vlib_stats_register_mem_heap (void *) __attribute__ ((weak));
67 void
69 {
70 }
71 
72 #endif
vlib_stat_segment_unlock
void vlib_stat_segment_unlock(void)
Definition: stat_weak_inlines.h:57
vlib_stats_register_mem_heap
void vlib_stats_register_mem_heap(void *)
Definition: stat_weak_inlines.h:68
i
sll srl srl sll sra u16x4 i
Definition: vector_sse42.h:261
u64
unsigned long u64
Definition: types.h:89
vlib_stats_pop_heap
void vlib_stats_pop_heap(void *, void *, u32, int)
Definition: stat_weak_inlines.h:32
u32
unsigned int u32
Definition: types.h:88
vlib_stat_segment_lock
void vlib_stat_segment_lock(void)
Definition: stat_weak_inlines.h:51
u8
unsigned char u8
Definition: types.h:56
vlib_stats_delete_cm
void vlib_stats_delete_cm(void *)
Definition: stat_weak_inlines.h:62
vlib_stats_push_heap
void * vlib_stats_push_heap(void *)
Definition: stat_weak_inlines.h:25
vlib_stats_pop_heap2
void vlib_stats_pop_heap2(void *, u32, void *, int)
Definition: stat_weak_inlines.h:44
vlib_stats_register_error_index
void vlib_stats_register_error_index(void *, u8 *, u64 *, u64)
Definition: stat_weak_inlines.h:38
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123