TSG-21854 TFE使用fieldstat4序列化Manipulation Policy的metric并输出到kafka
This commit is contained in:
@@ -212,7 +212,7 @@ struct session_node *session_table_search_by_addr(struct session_table *table, c
|
||||
return temp;
|
||||
}
|
||||
|
||||
void session_foreach(struct session_table *table, void (*func)(struct session_node *, void *), void *ctx)
|
||||
void session_foreach(struct session_table *table, struct fieldstat_easy_intercept *metrics, int (*func)(struct fieldstat_easy_intercept *, void *, int), int thread_index)
|
||||
{
|
||||
struct session_node *temp = NULL;
|
||||
struct session_node *node = NULL;
|
||||
@@ -222,7 +222,7 @@ void session_foreach(struct session_table *table, void (*func)(struct session_no
|
||||
|
||||
HASH_ITER(hh1, table->root_by_id, node, temp)
|
||||
{
|
||||
func(node, ctx);
|
||||
func(metrics, node->val_data, thread_index);
|
||||
}
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user