[OPTIMIZE]reduce adapter_hs_scan cpu usage
This commit is contained in:
@@ -55,9 +55,6 @@ struct ex_data_runtime *bool_plugin_runtime_get_ex_data_rt(void *bool_plugin_run
|
||||
int bool_plugin_runtime_get_ex_data(void *bool_plugin_runtime, unsigned long long *item_ids,
|
||||
size_t n_item, void **ex_data_array, size_t n_ex_data);
|
||||
|
||||
void bool_plugin_runtime_perf_stat(void *bool_plugin_runtime, struct timespec *start,
|
||||
struct timespec *end, int thread_id);
|
||||
|
||||
long long bool_plugin_runtime_scan_count(void *bool_plugin_runtime);
|
||||
|
||||
long long bool_plugin_runtime_scan_cpu_time(void *bool_plugin_runtime);
|
||||
|
||||
@@ -97,8 +97,6 @@ long long maat_cmd_read_redis_integer(const redisReply *reply);
|
||||
|
||||
int maat_cmd_get_valid_flag_offset(const char *line, int column_seq);
|
||||
|
||||
const char *maat_cmd_find_Nth_column(const char *line, int Nth, int *column_len);
|
||||
|
||||
int maat_cmd_write_rule(redisContext *c, struct serial_rule *s_rule,
|
||||
size_t serial_rule_num, long long server_time,
|
||||
struct log_handle *logger);
|
||||
|
||||
@@ -22,8 +22,8 @@ extern "C"
|
||||
void config_monitor_traverse(long long version, const char *idx_dir,
|
||||
void (*start_fn)(long long, int, void *),
|
||||
int (*update_fn)(const char *, const char *, void *),
|
||||
void (*finish_fn)(void *), void *u_param, const char *dec_key,
|
||||
struct log_handle *logger);
|
||||
void (*finish_fn)(void *), void *u_param,
|
||||
const char *dec_key, struct log_handle *logger);
|
||||
|
||||
int load_maat_json_file(struct maat *maat_instance, const char *json_filename,
|
||||
char *err_str, size_t err_str_sz);
|
||||
|
||||
@@ -90,9 +90,6 @@ void *ex_data_runtime_get_ex_data_by_key(struct ex_data_runtime *ex_data_rt,
|
||||
void *ex_data_runtime_get_ex_data_by_container(struct ex_data_runtime *ex_data_rt,
|
||||
struct ex_container *ex_container);
|
||||
|
||||
void *ex_data_runtime_get_custom_data(struct ex_data_runtime *ex_data_rt,
|
||||
const char *key, size_t key_len);
|
||||
|
||||
void ex_data_runtime_garbage_collect_routine(struct ex_data_runtime *ex_data_rt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -59,9 +59,6 @@ int fqdn_plugin_runtime_get_ex_data(void *fqdn_plugin_runtime, const char *fqdn,
|
||||
|
||||
void fqdn_rule_free(struct FQDN_rule *fqdn_rule);
|
||||
|
||||
void fqdn_plugin_runtime_perf_stat(void *fqdn_plugin_runtime, struct timespec *start,
|
||||
struct timespec *end, int thread_id);
|
||||
|
||||
long long fqdn_plugin_runtime_scan_count(void *fqdn_plugin_runtime);
|
||||
|
||||
long long fqdn_plugin_runtime_scan_cpu_time(void *fqdn_plugin_runtime);
|
||||
|
||||
@@ -55,9 +55,6 @@ struct ex_data_runtime *ip_plugin_runtime_get_ex_data_rt(void *ip_plugin_runtime
|
||||
int ip_plugin_runtime_get_ex_data(void *ip_plugin_runtime, const struct ip_addr *ip_addr,
|
||||
void **ex_data_array, size_t n_ex_data_array);
|
||||
|
||||
void ip_plugin_runtime_perf_stat(void *ip_plugin_runtime, struct timespec *start,
|
||||
struct timespec *end, int thread_id);
|
||||
|
||||
long long ip_plugin_runtime_scan_count(void *ip_plugin_runtime);
|
||||
|
||||
long long ip_plugin_runtime_scan_cpu_time(void *ip_plugin_runtime);
|
||||
|
||||
Reference in New Issue
Block a user