/src/fluent-bit/include/fluent-bit/flb_log.h
Line | Count | Source |
1 | | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | |
3 | | /* Fluent Bit |
4 | | * ========== |
5 | | * Copyright (C) 2015-2024 The Fluent Bit Authors |
6 | | * |
7 | | * Licensed under the Apache License, Version 2.0 (the "License"); |
8 | | * you may not use this file except in compliance with the License. |
9 | | * You may obtain a copy of the License at |
10 | | * |
11 | | * http://www.apache.org/licenses/LICENSE-2.0 |
12 | | * |
13 | | * Unless required by applicable law or agreed to in writing, software |
14 | | * distributed under the License is distributed on an "AS IS" BASIS, |
15 | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16 | | * See the License for the specific language governing permissions and |
17 | | * limitations under the License. |
18 | | */ |
19 | | |
20 | | #ifndef FLB_LOG_H |
21 | | #define FLB_LOG_H |
22 | | |
23 | | #include <monkey/mk_core.h> |
24 | | #include <fluent-bit/flb_info.h> |
25 | | #include <fluent-bit/flb_pipe.h> |
26 | | #include <fluent-bit/flb_macros.h> |
27 | | #include <fluent-bit/flb_thread_storage.h> |
28 | | #include <fluent-bit/flb_worker.h> |
29 | | #include <fluent-bit/flb_config.h> |
30 | | #include <fluent-bit/flb_sds.h> |
31 | | #include <cmetrics/cmetrics.h> |
32 | | #include <cmetrics/cmt_counter.h> |
33 | | #include <inttypes.h> |
34 | | #include <errno.h> |
35 | | #include <stdarg.h> |
36 | | |
37 | | /* FIXME: this extern should be auto-populated from flb_thread_storage.h */ |
38 | | extern FLB_TLS_DEFINE(struct flb_log, flb_log_ctx) |
39 | | |
40 | | /* Message types */ |
41 | 7 | #define FLB_LOG_OFF 0 |
42 | 1.00M | #define FLB_LOG_ERROR 1 |
43 | 506k | #define FLB_LOG_WARN 2 |
44 | 880k | #define FLB_LOG_INFO 3 /* default */ |
45 | 209M | #define FLB_LOG_DEBUG 4 |
46 | 10.1k | #define FLB_LOG_TRACE 5 |
47 | 0 | #define FLB_LOG_HELP 6 /* unused by log level */ |
48 | | |
49 | 0 | #define FLB_LOG_IDEBUG 10 |
50 | | |
51 | | /* Logging outputs */ |
52 | 2.11k | #define FLB_LOG_STDERR 0 /* send logs to STDERR */ |
53 | 0 | #define FLB_LOG_FILE 1 /* write logs to a file */ |
54 | | #define FLB_LOG_SOCKET 2 /* write logs to a unix socket */ |
55 | | |
56 | 11.1k | #define FLB_LOG_EVENT MK_EVENT_NOTIFICATION |
57 | 6.79k | #define FLB_LOG_MNG 1024 |
58 | | |
59 | | |
60 | 6.79k | #define FLB_LOG_MNG_TERMINATION_SIGNAL 1 |
61 | 9.06k | #define FLB_LOG_MNG_REFRESH_SIGNAL 2 |
62 | | |
63 | | |
64 | 4.53k | #define FLB_LOG_CACHE_ENTRIES 10 |
65 | 45.3k | #define FLB_LOG_CACHE_TEXT_BUF_SIZE 1024 |
66 | | |
67 | | /* Logging main context */ |
68 | | struct flb_log { |
69 | | struct mk_event event; /* worker event for manager */ |
70 | | flb_pipefd_t ch_mng[2]; /* worker channel manager */ |
71 | | uint16_t type; /* log type */ |
72 | | uint16_t level; /* level */ |
73 | | char *out; /* FLB_LOG_FILE or FLB_LOG_SOCKET */ |
74 | | pthread_t tid; /* thread ID */ |
75 | | struct flb_worker *worker; /* non-real worker reference */ |
76 | | struct mk_event_loop *evl; |
77 | | struct flb_log_metrics *metrics; |
78 | | |
79 | | /* Initialization variables */ |
80 | | int pth_init; |
81 | | pthread_cond_t pth_cond; |
82 | | pthread_mutex_t pth_mutex; |
83 | | }; |
84 | | |
85 | | struct flb_log_cache_entry { |
86 | | flb_sds_t buf; |
87 | | uint64_t timestamp; |
88 | | struct mk_list _head; |
89 | | }; |
90 | | |
91 | | /* Structure to keep a reference of the last N number of entries */ |
92 | | struct flb_log_cache { |
93 | | int size; /* cache size */ |
94 | | int timeout; /* cache timeout */ |
95 | | struct mk_list entries; /* list for entries */ |
96 | | }; |
97 | | |
98 | | /* Global metrics for logging calls. */ |
99 | | struct flb_log_metrics { |
100 | | struct cmt *cmt; |
101 | | |
102 | | /* cmetrics */ |
103 | | struct cmt_counter *logs_total_counter; /* total number of logs (by message type) */ |
104 | | }; |
105 | | |
106 | | /* |
107 | | * This function is used by plugins interface to check if an incoming log message |
108 | | * should be logged or not based in the log levels defined. |
109 | | */ |
110 | | static inline int flb_log_check_level(int level_set, int msg_level) |
111 | 16.8k | { |
112 | 16.8k | if (msg_level <= level_set) { |
113 | 776 | return FLB_TRUE; |
114 | 776 | } |
115 | | |
116 | 16.0k | return FLB_FALSE; |
117 | 16.8k | } Unexecuted instantiation: strp_fuzzer.c:flb_log_check_level Unexecuted instantiation: flb_strptime.c:flb_log_check_level Unexecuted instantiation: msgpack_parse_fuzzer.c:flb_log_check_level Unexecuted instantiation: flb_pack.c:flb_log_check_level Unexecuted instantiation: flb_sds.c:flb_log_check_level Unexecuted instantiation: flb_utils.c:flb_log_check_level Unexecuted instantiation: flb_unescape.c:flb_log_check_level Unexecuted instantiation: flb_worker.c:flb_log_check_level Unexecuted instantiation: flb_time.c:flb_log_check_level Unexecuted instantiation: flb_log_event_decoder.c:flb_log_check_level Unexecuted instantiation: flb_mp.c:flb_log_check_level Unexecuted instantiation: flb_log.c:flb_log_check_level Unexecuted instantiation: flb_pipe.c:flb_log_check_level Unexecuted instantiation: flb_log_event_encoder.c:flb_log_check_level Unexecuted instantiation: flb_log_event_encoder_primitives.c:flb_log_check_level Unexecuted instantiation: flb_log_event_encoder_dynamic_field.c:flb_log_check_level Unexecuted instantiation: flb_conditionals.c:flb_log_check_level Unexecuted instantiation: flb_regex.c:flb_log_check_level Unexecuted instantiation: flb_record_accessor.c:flb_log_check_level Unexecuted instantiation: flb_ra_key.c:flb_log_check_level Unexecuted instantiation: flb_env.c:flb_log_check_level Unexecuted instantiation: flb_file.c:flb_log_check_level Unexecuted instantiation: flb_hash_table.c:flb_log_check_level Unexecuted instantiation: flb_sds_list.c:flb_log_check_level Unexecuted instantiation: flb_cfl_record_accessor.c:flb_log_check_level Unexecuted instantiation: flb_cfl_ra_key.c:flb_log_check_level Unexecuted instantiation: flb_ra_parser.c:flb_log_check_level Unexecuted instantiation: ra_lex.c:flb_log_check_level Unexecuted instantiation: ra_parser.c:flb_log_check_level Unexecuted instantiation: msgpack_to_gelf_fuzzer.c:flb_log_check_level Unexecuted instantiation: flb_pack_gelf.c:flb_log_check_level Unexecuted instantiation: config_map_fuzzer.c:flb_log_check_level Unexecuted instantiation: flb_kv.c:flb_log_check_level Unexecuted instantiation: flb_config.c:flb_log_check_level Unexecuted instantiation: flb_config_map.c:flb_log_check_level Unexecuted instantiation: flb_slist.c:flb_log_check_level Unexecuted instantiation: flb_scheduler.c:flb_log_check_level Unexecuted instantiation: flb_router.c:flb_log_check_level Unexecuted instantiation: flb_router_config.c:flb_log_check_level Unexecuted instantiation: flb_coro.c:flb_log_check_level Unexecuted instantiation: flb_plugin.c:flb_log_check_level Unexecuted instantiation: flb_routes_mask.c:flb_log_check_level Unexecuted instantiation: flb_processor.c:flb_log_check_level Unexecuted instantiation: flb_config_format.c:flb_log_check_level Unexecuted instantiation: flb_cf_fluentbit.c:flb_log_check_level Unexecuted instantiation: flb_cf_yaml.c:flb_log_check_level Unexecuted instantiation: flb_ml.c:flb_log_check_level Unexecuted instantiation: flb_parser.c:flb_log_check_level Unexecuted instantiation: flb_parser_regex.c:flb_log_check_level Unexecuted instantiation: flb_parser_json.c:flb_log_check_level Unexecuted instantiation: flb_parser_decoder.c:flb_log_check_level Unexecuted instantiation: flb_parser_ltsv.c:flb_log_check_level Unexecuted instantiation: flb_parser_logfmt.c:flb_log_check_level Unexecuted instantiation: flb_plugin_proxy.c:flb_log_check_level Unexecuted instantiation: flb_metrics.c:flb_log_check_level Unexecuted instantiation: flb_chunk_trace.c:flb_log_check_level Unexecuted instantiation: flb_api.c:flb_log_check_level Unexecuted instantiation: flb_lib.c:flb_log_check_level Unexecuted instantiation: flb_pack_json.c:flb_log_check_level Unexecuted instantiation: flb_meta.c:flb_log_check_level Unexecuted instantiation: flb_kernel.c:flb_log_check_level Unexecuted instantiation: flb_custom.c:flb_log_check_level flb_input.c:flb_log_check_level Line | Count | Source | 111 | 4.53k | { | 112 | 4.53k | if (msg_level <= level_set) { | 113 | 4 | return FLB_TRUE; | 114 | 4 | } | 115 | | | 116 | 4.52k | return FLB_FALSE; | 117 | 4.53k | } |
Unexecuted instantiation: flb_input_chunk.c:flb_log_check_level Unexecuted instantiation: flb_input_log.c:flb_log_check_level Unexecuted instantiation: flb_input_thread.c:flb_log_check_level Unexecuted instantiation: flb_filter.c:flb_log_check_level Unexecuted instantiation: flb_output.c:flb_log_check_level flb_output_thread.c:flb_log_check_level Line | Count | Source | 111 | 7.00k | { | 112 | 7.00k | if (msg_level <= level_set) { | 113 | 0 | return FLB_TRUE; | 114 | 0 | } | 115 | | | 116 | 7.00k | return FLB_FALSE; | 117 | 7.00k | } |
Unexecuted instantiation: flb_network.c:flb_log_check_level Unexecuted instantiation: flb_engine.c:flb_log_check_level Unexecuted instantiation: flb_engine_dispatch.c:flb_log_check_level Unexecuted instantiation: flb_task.c:flb_log_check_level Unexecuted instantiation: flb_storage.c:flb_log_check_level Unexecuted instantiation: flb_connection.c:flb_log_check_level Unexecuted instantiation: flb_downstream.c:flb_log_check_level Unexecuted instantiation: flb_upstream.c:flb_log_check_level Unexecuted instantiation: flb_router_condition.c:flb_log_check_level Unexecuted instantiation: flb_sosreport.c:flb_log_check_level Unexecuted instantiation: flb_callback.c:flb_log_check_level Unexecuted instantiation: flb_thread_pool.c:flb_log_check_level Unexecuted instantiation: flb_event.c:flb_log_check_level Unexecuted instantiation: flb_ring_buffer.c:flb_log_check_level Unexecuted instantiation: flb_notification.c:flb_log_check_level Unexecuted instantiation: flb_ml_stream.c:flb_log_check_level Unexecuted instantiation: flb_ml_parser.c:flb_log_check_level Unexecuted instantiation: flb_ml_group.c:flb_log_check_level Unexecuted instantiation: flb_ml_rule.c:flb_log_check_level Unexecuted instantiation: flb_tls.c:flb_log_check_level Unexecuted instantiation: flb_metrics_exporter.c:flb_log_check_level Unexecuted instantiation: flb_uri.c:flb_log_check_level Unexecuted instantiation: flb_socket.c:flb_log_check_level Unexecuted instantiation: flb_io.c:flb_log_check_level Unexecuted instantiation: flb_http_client.c:flb_log_check_level Unexecuted instantiation: flb_ml_parser_cri.c:flb_log_check_level Unexecuted instantiation: flb_ml_parser_docker.c:flb_log_check_level Unexecuted instantiation: flb_ml_parser_python.c:flb_log_check_level Unexecuted instantiation: flb_ml_parser_java.c:flb_log_check_level Unexecuted instantiation: flb_ml_parser_go.c:flb_log_check_level Unexecuted instantiation: flb_ml_parser_ruby.c:flb_log_check_level Unexecuted instantiation: flb_upstream_ha.c:flb_log_check_level Unexecuted instantiation: flb_upstream_node.c:flb_log_check_level Unexecuted instantiation: flb_http_common.c:flb_log_check_level Unexecuted instantiation: flb_http_client_http1.c:flb_log_check_level Unexecuted instantiation: flb_http_client_http2.c:flb_log_check_level Unexecuted instantiation: flb_signv4_ng.c:flb_log_check_level Unexecuted instantiation: flb_gzip.c:flb_log_check_level Unexecuted instantiation: flb_snappy.c:flb_log_check_level Unexecuted instantiation: flb_zstd.c:flb_log_check_level Unexecuted instantiation: flb_signv4.c:flb_log_check_level Unexecuted instantiation: flb_hs.c:flb_log_check_level Unexecuted instantiation: flb_hs_endpoints.c:flb_log_check_level Unexecuted instantiation: flb_hs_utils.c:flb_log_check_level Unexecuted instantiation: flb_http_server_http1.c:flb_log_check_level Unexecuted instantiation: flb_http_server_http2.c:flb_log_check_level Unexecuted instantiation: calyptia.c:flb_log_check_level Unexecuted instantiation: blob.c:flb_log_check_level Unexecuted instantiation: blob_db.c:flb_log_check_level Unexecuted instantiation: blob_file.c:flb_log_check_level Unexecuted instantiation: docker_events.c:flb_log_check_level Unexecuted instantiation: docker_events_config.c:flb_log_check_level Unexecuted instantiation: podman_metrics.c:flb_log_check_level Unexecuted instantiation: podman_metrics_data.c:flb_log_check_level Unexecuted instantiation: pe.c:flb_log_check_level Unexecuted instantiation: pe_config.c:flb_log_check_level Unexecuted instantiation: pe_process.c:flb_log_check_level Unexecuted instantiation: pe_utils.c:flb_log_check_level Unexecuted instantiation: gpu_metrics.c:flb_log_check_level Unexecuted instantiation: amd_gpu.c:flb_log_check_level Unexecuted instantiation: ne.c:flb_log_check_level Unexecuted instantiation: ne_cpu.c:flb_log_check_level Unexecuted instantiation: ne_meminfo.c:flb_log_check_level Unexecuted instantiation: ne_diskstats.c:flb_log_check_level Unexecuted instantiation: ne_filesystem.c:flb_log_check_level Unexecuted instantiation: ne_uname.c:flb_log_check_level Unexecuted instantiation: ne_stat.c:flb_log_check_level Unexecuted instantiation: ne_vmstat.c:flb_log_check_level Unexecuted instantiation: ne_netdev.c:flb_log_check_level Unexecuted instantiation: ne_netstat.c:flb_log_check_level Unexecuted instantiation: ne_sockstat.c:flb_log_check_level Unexecuted instantiation: ne_time.c:flb_log_check_level Unexecuted instantiation: ne_loadavg.c:flb_log_check_level Unexecuted instantiation: ne_filefd.c:flb_log_check_level Unexecuted instantiation: ne_textfile.c:flb_log_check_level Unexecuted instantiation: ne_processes.c:flb_log_check_level Unexecuted instantiation: ne_nvme.c:flb_log_check_level Unexecuted instantiation: ne_hwmon.c:flb_log_check_level Unexecuted instantiation: ne_utils.c:flb_log_check_level Unexecuted instantiation: ne_config.c:flb_log_check_level Unexecuted instantiation: ne_systemd.c:flb_log_check_level Unexecuted instantiation: ne_thermalzone.c:flb_log_check_level Unexecuted instantiation: kubernetes_events.c:flb_log_check_level Unexecuted instantiation: kubernetes_events_conf.c:flb_log_check_level Unexecuted instantiation: in_kafka.c:flb_log_check_level Unexecuted instantiation: metrics.c:flb_log_check_level Unexecuted instantiation: prom_scrape.c:flb_log_check_level Unexecuted instantiation: prometheus_textfile.c:flb_log_check_level Unexecuted instantiation: emitter.c:flb_log_check_level Unexecuted instantiation: in_dummy.c:flb_log_check_level http.c:flb_log_check_level Line | Count | Source | 111 | 210 | { | 112 | 210 | if (msg_level <= level_set) { | 113 | 210 | return FLB_TRUE; | 114 | 210 | } | 115 | | | 116 | 0 | return FLB_FALSE; | 117 | 210 | } |
Unexecuted instantiation: http_conn.c:flb_log_check_level Unexecuted instantiation: http_prot.c:flb_log_check_level Unexecuted instantiation: http_config.c:flb_log_check_level Unexecuted instantiation: statsd.c:flb_log_check_level Unexecuted instantiation: opentelemetry.c:flb_log_check_level Unexecuted instantiation: opentelemetry_prot.c:flb_log_check_level Unexecuted instantiation: opentelemetry_logs.c:flb_log_check_level Unexecuted instantiation: opentelemetry_traces.c:flb_log_check_level Unexecuted instantiation: opentelemetry_config.c:flb_log_check_level Unexecuted instantiation: in_elasticsearch.c:flb_log_check_level Unexecuted instantiation: in_elasticsearch_config.c:flb_log_check_level Unexecuted instantiation: in_elasticsearch_bulk_conn.c:flb_log_check_level Unexecuted instantiation: in_elasticsearch_bulk_prot.c:flb_log_check_level Unexecuted instantiation: in_calyptia_fleet.c:flb_log_check_level Unexecuted instantiation: splunk.c:flb_log_check_level Unexecuted instantiation: splunk_conn.c:flb_log_check_level Unexecuted instantiation: splunk_prot.c:flb_log_check_level Unexecuted instantiation: splunk_config.c:flb_log_check_level Unexecuted instantiation: prom_rw.c:flb_log_check_level Unexecuted instantiation: prom_rw_prot.c:flb_log_check_level Unexecuted instantiation: prom_rw_conn.c:flb_log_check_level Unexecuted instantiation: prom_rw_config.c:flb_log_check_level Unexecuted instantiation: event_type.c:flb_log_check_level Line | Count | Source | 111 | 1.13k | { | 112 | 1.13k | if (msg_level <= level_set) { | 113 | 0 | return FLB_TRUE; | 114 | 0 | } | 115 | | | 116 | 1.13k | return FLB_FALSE; | 117 | 1.13k | } |
Unexecuted instantiation: nginx.c:flb_log_check_level Unexecuted instantiation: udp.c:flb_log_check_level Unexecuted instantiation: udp_conn.c:flb_log_check_level Unexecuted instantiation: udp_config.c:flb_log_check_level Unexecuted instantiation: in_exec_wasi.c:flb_log_check_level in_lib.c:flb_log_check_level Line | Count | Source | 111 | 3.97k | { | 112 | 3.97k | if (msg_level <= level_set) { | 113 | 562 | return FLB_TRUE; | 114 | 562 | } | 115 | | | 116 | 3.41k | return FLB_FALSE; | 117 | 3.97k | } |
Unexecuted instantiation: cm.c:flb_log_check_level Unexecuted instantiation: cm_config.c:flb_log_check_level Unexecuted instantiation: cm_logs.c:flb_log_check_level Unexecuted instantiation: cm_metrics.c:flb_log_check_level Unexecuted instantiation: cm_traces.c:flb_log_check_level Unexecuted instantiation: cm_opentelemetry.c:flb_log_check_level Unexecuted instantiation: cm_utils.c:flb_log_check_level Unexecuted instantiation: labels.c:flb_log_check_level Unexecuted instantiation: selector.c:flb_log_check_level Unexecuted instantiation: otel_envelope.c:flb_log_check_level Unexecuted instantiation: sampling.c:flb_log_check_level Unexecuted instantiation: sampling_conf.c:flb_log_check_level Unexecuted instantiation: sampling_span_registry.c:flb_log_check_level Unexecuted instantiation: sampling_conditions.c:flb_log_check_level Unexecuted instantiation: sampling_cond_status_codes.c:flb_log_check_level Unexecuted instantiation: sampling_cond_latency.c:flb_log_check_level Unexecuted instantiation: sampling_cond_attribute.c:flb_log_check_level Unexecuted instantiation: sampling_cond_string_attribute.c:flb_log_check_level Unexecuted instantiation: sampling_cond_numeric_attribute.c:flb_log_check_level Unexecuted instantiation: sampling_cond_boolean_attribute.c:flb_log_check_level Unexecuted instantiation: sampling_cond_span_count.c:flb_log_check_level Unexecuted instantiation: sampling_cond_trace_state.c:flb_log_check_level Unexecuted instantiation: sampling_tail.c:flb_log_check_level Unexecuted instantiation: sampling_probabilistic.c:flb_log_check_level Unexecuted instantiation: sql.c:flb_log_check_level Unexecuted instantiation: sql_config.c:flb_log_check_level Unexecuted instantiation: azure_blob.c:flb_log_check_level Unexecuted instantiation: azure_blob_uri.c:flb_log_check_level Unexecuted instantiation: azure_blob_conf.c:flb_log_check_level Unexecuted instantiation: azure_blob_http.c:flb_log_check_level Unexecuted instantiation: azure_blob_db.c:flb_log_check_level Unexecuted instantiation: azure_blob_appendblob.c:flb_log_check_level Unexecuted instantiation: azure_blob_blockblob.c:flb_log_check_level Unexecuted instantiation: azure_blob_store.c:flb_log_check_level Unexecuted instantiation: azure_logs_ingestion.c:flb_log_check_level Unexecuted instantiation: azure_logs_ingestion_conf.c:flb_log_check_level Unexecuted instantiation: azure_kusto.c:flb_log_check_level Unexecuted instantiation: azure_kusto_conf.c:flb_log_check_level Unexecuted instantiation: azure_kusto_ingest.c:flb_log_check_level Unexecuted instantiation: azure_msiauth.c:flb_log_check_level Unexecuted instantiation: azure_kusto_store.c:flb_log_check_level Unexecuted instantiation: exit.c:flb_log_check_level Unexecuted instantiation: http_conf.c:flb_log_check_level Unexecuted instantiation: logdna.c:flb_log_check_level Unexecuted instantiation: opensearch.c:flb_log_check_level Unexecuted instantiation: os_conf.c:flb_log_check_level Unexecuted instantiation: oci_logan.c:flb_log_check_level Unexecuted instantiation: oci_logan_conf.c:flb_log_check_level Unexecuted instantiation: skywalking.c:flb_log_check_level Unexecuted instantiation: stdout.c:flb_log_check_level Unexecuted instantiation: udp_conf.c:flb_log_check_level Unexecuted instantiation: td.c:flb_log_check_level Unexecuted instantiation: td_http.c:flb_log_check_level Unexecuted instantiation: td_config.c:flb_log_check_level Unexecuted instantiation: out_lib.c:flb_log_check_level Unexecuted instantiation: websocket.c:flb_log_check_level Unexecuted instantiation: websocket_conf.c:flb_log_check_level Unexecuted instantiation: cloudwatch_logs.c:flb_log_check_level Unexecuted instantiation: cloudwatch_api.c:flb_log_check_level Unexecuted instantiation: firehose.c:flb_log_check_level Unexecuted instantiation: firehose_api.c:flb_log_check_level Unexecuted instantiation: kinesis.c:flb_log_check_level Unexecuted instantiation: kinesis_api.c:flb_log_check_level Unexecuted instantiation: opentelemetry_utils.c:flb_log_check_level Unexecuted instantiation: opentelemetry_conf.c:flb_log_check_level Unexecuted instantiation: prom.c:flb_log_check_level Unexecuted instantiation: prom_http.c:flb_log_check_level Unexecuted instantiation: remote_write.c:flb_log_check_level Unexecuted instantiation: remote_write_conf.c:flb_log_check_level Unexecuted instantiation: s3.c:flb_log_check_level Unexecuted instantiation: s3_store.c:flb_log_check_level Unexecuted instantiation: s3_multipart.c:flb_log_check_level Unexecuted instantiation: vivo.c:flb_log_check_level Unexecuted instantiation: vivo_http.c:flb_log_check_level Unexecuted instantiation: vivo_stream.c:flb_log_check_level Unexecuted instantiation: chronicle.c:flb_log_check_level Unexecuted instantiation: chronicle_conf.c:flb_log_check_level Unexecuted instantiation: alter_size.c:flb_log_check_level Unexecuted instantiation: aws.c:flb_log_check_level Unexecuted instantiation: checklist.c:flb_log_check_level Unexecuted instantiation: ecs.c:flb_log_check_level Unexecuted instantiation: filter_modifier.c:flb_log_check_level Unexecuted instantiation: sysinfo.c:flb_log_check_level Unexecuted instantiation: sysinfo_platform.c:flb_log_check_level Unexecuted instantiation: throttle.c:flb_log_check_level Unexecuted instantiation: window.c:flb_log_check_level Unexecuted instantiation: type_converter.c:flb_log_check_level Unexecuted instantiation: kubernetes.c:flb_log_check_level Unexecuted instantiation: kubernetes_aws.c:flb_log_check_level Unexecuted instantiation: kube_conf.c:flb_log_check_level Unexecuted instantiation: kube_meta.c:flb_log_check_level Unexecuted instantiation: kube_regex.c:flb_log_check_level Unexecuted instantiation: kube_property.c:flb_log_check_level Unexecuted instantiation: modify.c:flb_log_check_level Unexecuted instantiation: ml.c:flb_log_check_level Unexecuted instantiation: ml_concat.c:flb_log_check_level Unexecuted instantiation: nest.c:flb_log_check_level Unexecuted instantiation: filter_parser.c:flb_log_check_level Unexecuted instantiation: expect.c:flb_log_check_level Unexecuted instantiation: grep.c:flb_log_check_level Unexecuted instantiation: rewrite_tag.c:flb_log_check_level Unexecuted instantiation: log_to_metrics.c:flb_log_check_level Unexecuted instantiation: geoip2.c:flb_log_check_level Unexecuted instantiation: nightfall.c:flb_log_check_level Unexecuted instantiation: nightfall_api.c:flb_log_check_level Unexecuted instantiation: filter_wasm.c:flb_log_check_level Unexecuted instantiation: register.c:flb_log_check_level Unexecuted instantiation: health.c:flb_log_check_level Unexecuted instantiation: trace.c:flb_log_check_level Unexecuted instantiation: uptime.c:flb_log_check_level Unexecuted instantiation: storage.c:flb_log_check_level Unexecuted instantiation: plugins.c:flb_log_check_level Unexecuted instantiation: reload.c:flb_log_check_level Unexecuted instantiation: flb_input_metric.c:flb_log_check_level Unexecuted instantiation: flb_input_trace.c:flb_log_check_level Unexecuted instantiation: flb_input_profiles.c:flb_log_check_level Unexecuted instantiation: flb_input_blob.c:flb_log_check_level Unexecuted instantiation: flb_fstore.c:flb_log_check_level Unexecuted instantiation: flb_typecast.c:flb_log_check_level Unexecuted instantiation: flb_blob_db.c:flb_log_check_level Unexecuted instantiation: flb_opentelemetry_logs.c:flb_log_check_level Unexecuted instantiation: flb_opentelemetry_traces.c:flb_log_check_level Unexecuted instantiation: flb_opentelemetry_utils.c:flb_log_check_level Unexecuted instantiation: flb_oauth2.c:flb_log_check_level Unexecuted instantiation: flb_kafka.c:flb_log_check_level Unexecuted instantiation: flb_sqldb.c:flb_log_check_level Unexecuted instantiation: flb_http_server.c:flb_log_check_level Unexecuted instantiation: go.c:flb_log_check_level Unexecuted instantiation: flb_aws_compress.c:flb_log_check_level Unexecuted instantiation: flb_aws_util.c:flb_log_check_level Unexecuted instantiation: flb_aws_credentials.c:flb_log_check_level Unexecuted instantiation: flb_aws_credentials_sts.c:flb_log_check_level Unexecuted instantiation: flb_aws_credentials_ec2.c:flb_log_check_level Unexecuted instantiation: flb_aws_imds.c:flb_log_check_level Unexecuted instantiation: flb_aws_credentials_http.c:flb_log_check_level Unexecuted instantiation: flb_aws_credentials_profile.c:flb_log_check_level Unexecuted instantiation: flb_aws_credentials_process.c:flb_log_check_level Unexecuted instantiation: sql_parser.c:flb_log_check_level Unexecuted instantiation: processor-sql-parser_lex.c:flb_log_check_level Unexecuted instantiation: processor-sql_parser.c:flb_log_check_level Unexecuted instantiation: sql_expression.c:flb_log_check_level Unexecuted instantiation: flb_wasm.c:flb_log_check_level Unexecuted instantiation: flb_json_fuzzer.c:flb_log_check_level Unexecuted instantiation: multiline_fuzzer.c:flb_log_check_level Unexecuted instantiation: config_random_fuzzer.c:flb_log_check_level Unexecuted instantiation: parser_fuzzer.c:flb_log_check_level Unexecuted instantiation: aws_util_fuzzer.c:flb_log_check_level Unexecuted instantiation: pack_json_state_fuzzer.c:flb_log_check_level Unexecuted instantiation: input_fuzzer.c:flb_log_check_level Unexecuted instantiation: aws_credentials_fuzzer.c:flb_log_check_level Unexecuted instantiation: http_fuzzer.c:flb_log_check_level Unexecuted instantiation: filter_stdout_fuzzer.c:flb_log_check_level Unexecuted instantiation: signv4_fuzzer.c:flb_log_check_level Unexecuted instantiation: record_ac_fuzzer.c:flb_log_check_level Unexecuted instantiation: parse_ltsv_fuzzer.c:flb_log_check_level Unexecuted instantiation: utils_fuzzer.c:flb_log_check_level Unexecuted instantiation: parse_logfmt_fuzzer.c:flb_log_check_level Unexecuted instantiation: engine_fuzzer.c:flb_log_check_level Unexecuted instantiation: parse_json_fuzzer.c:flb_log_check_level Unexecuted instantiation: config_fuzzer.c:flb_log_check_level |
118 | | |
119 | 210M | static inline int flb_log_check(int l) { |
120 | 210M | struct flb_worker *w; |
121 | 210M | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); |
122 | 210M | if (!w && l <= 3) { |
123 | 587k | return FLB_TRUE; |
124 | 587k | } |
125 | | |
126 | 209M | if (w == NULL || flb_worker_log_level(w) < l) { |
127 | 209M | return FLB_FALSE; |
128 | 209M | } |
129 | 260 | return FLB_TRUE; |
130 | 209M | } Unexecuted instantiation: strp_fuzzer.c:flb_log_check Unexecuted instantiation: flb_strptime.c:flb_log_check Unexecuted instantiation: msgpack_parse_fuzzer.c:flb_log_check Line | Count | Source | 119 | 658k | static inline int flb_log_check(int l) { | 120 | 658k | struct flb_worker *w; | 121 | 658k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 658k | if (!w && l <= 3) { | 123 | 0 | return FLB_TRUE; | 124 | 0 | } | 125 | | | 126 | 658k | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 658k | return FLB_FALSE; | 128 | 658k | } | 129 | 0 | return FLB_TRUE; | 130 | 658k | } |
Unexecuted instantiation: flb_sds.c:flb_log_check flb_utils.c:flb_log_check Line | Count | Source | 119 | 207M | static inline int flb_log_check(int l) { | 120 | 207M | struct flb_worker *w; | 121 | 207M | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 207M | if (!w && l <= 3) { | 123 | 213k | return FLB_TRUE; | 124 | 213k | } | 125 | | | 126 | 207M | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 207M | return FLB_FALSE; | 128 | 207M | } | 129 | 0 | return FLB_TRUE; | 130 | 207M | } |
flb_unescape.c:flb_log_check Line | Count | Source | 119 | 5.96k | static inline int flb_log_check(int l) { | 120 | 5.96k | struct flb_worker *w; | 121 | 5.96k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 5.96k | if (!w && l <= 3) { | 123 | 5.96k | return FLB_TRUE; | 124 | 5.96k | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: flb_worker.c:flb_log_check Unexecuted instantiation: flb_time.c:flb_log_check flb_log_event_decoder.c:flb_log_check Line | Count | Source | 119 | 308 | static inline int flb_log_check(int l) { | 120 | 308 | struct flb_worker *w; | 121 | 308 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 308 | if (!w && l <= 3) { | 123 | 1 | return FLB_TRUE; | 124 | 1 | } | 125 | | | 126 | 307 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 307 | return FLB_FALSE; | 128 | 307 | } | 129 | 0 | return FLB_TRUE; | 130 | 307 | } |
Unexecuted instantiation: flb_mp.c:flb_log_check Line | Count | Source | 119 | 6.39k | static inline int flb_log_check(int l) { | 120 | 6.39k | struct flb_worker *w; | 121 | 6.39k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 6.39k | if (!w && l <= 3) { | 123 | 6.39k | return FLB_TRUE; | 124 | 6.39k | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: flb_pipe.c:flb_log_check Unexecuted instantiation: flb_log_event_encoder.c:flb_log_check Unexecuted instantiation: flb_log_event_encoder_primitives.c:flb_log_check Unexecuted instantiation: flb_log_event_encoder_dynamic_field.c:flb_log_check Unexecuted instantiation: flb_conditionals.c:flb_log_check flb_regex.c:flb_log_check Line | Count | Source | 119 | 373 | static inline int flb_log_check(int l) { | 120 | 373 | struct flb_worker *w; | 121 | 373 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 373 | if (!w && l <= 3) { | 123 | 0 | return FLB_TRUE; | 124 | 0 | } | 125 | | | 126 | 373 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 373 | return FLB_FALSE; | 128 | 373 | } | 129 | 0 | return FLB_TRUE; | 130 | 373 | } |
flb_record_accessor.c:flb_log_check Line | Count | Source | 119 | 39 | static inline int flb_log_check(int l) { | 120 | 39 | struct flb_worker *w; | 121 | 39 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 39 | if (!w && l <= 3) { | 123 | 39 | return FLB_TRUE; | 124 | 39 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
flb_ra_key.c:flb_log_check Line | Count | Source | 119 | 8.56k | static inline int flb_log_check(int l) { | 120 | 8.56k | struct flb_worker *w; | 121 | 8.56k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 8.56k | if (!w && l <= 3) { | 123 | 8.56k | return FLB_TRUE; | 124 | 8.56k | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Line | Count | Source | 119 | 4.23k | static inline int flb_log_check(int l) { | 120 | 4.23k | struct flb_worker *w; | 121 | 4.23k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 4.23k | if (!w && l <= 3) { | 123 | 4.23k | return FLB_TRUE; | 124 | 4.23k | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: flb_file.c:flb_log_check Unexecuted instantiation: flb_hash_table.c:flb_log_check Unexecuted instantiation: flb_sds_list.c:flb_log_check Unexecuted instantiation: flb_cfl_record_accessor.c:flb_log_check Unexecuted instantiation: flb_cfl_ra_key.c:flb_log_check flb_ra_parser.c:flb_log_check Line | Count | Source | 119 | 9 | static inline int flb_log_check(int l) { | 120 | 9 | struct flb_worker *w; | 121 | 9 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 9 | if (!w && l <= 3) { | 123 | 9 | return FLB_TRUE; | 124 | 9 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Line | Count | Source | 119 | 7.94k | static inline int flb_log_check(int l) { | 120 | 7.94k | struct flb_worker *w; | 121 | 7.94k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 7.94k | if (!w && l <= 3) { | 123 | 7.94k | return FLB_TRUE; | 124 | 7.94k | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
ra_parser.c:flb_log_check Line | Count | Source | 119 | 232 | static inline int flb_log_check(int l) { | 120 | 232 | struct flb_worker *w; | 121 | 232 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 232 | if (!w && l <= 3) { | 123 | 232 | return FLB_TRUE; | 124 | 232 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: msgpack_to_gelf_fuzzer.c:flb_log_check flb_pack_gelf.c:flb_log_check Line | Count | Source | 119 | 752 | static inline int flb_log_check(int l) { | 120 | 752 | struct flb_worker *w; | 121 | 752 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 752 | if (!w && l <= 3) { | 123 | 752 | return FLB_TRUE; | 124 | 752 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: config_map_fuzzer.c:flb_log_check Unexecuted instantiation: flb_kv.c:flb_log_check flb_config.c:flb_log_check Line | Count | Source | 119 | 1.15k | static inline int flb_log_check(int l) { | 120 | 1.15k | struct flb_worker *w; | 121 | 1.15k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 1.15k | if (!w && l <= 3) { | 123 | 1.15k | return FLB_TRUE; | 124 | 1.15k | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
flb_config_map.c:flb_log_check Line | Count | Source | 119 | 919 | static inline int flb_log_check(int l) { | 120 | 919 | struct flb_worker *w; | 121 | 919 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 919 | if (!w && l <= 3) { | 123 | 917 | return FLB_TRUE; | 124 | 917 | } | 125 | | | 126 | 2 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 2 | return FLB_TRUE; | 130 | 2 | } |
Unexecuted instantiation: flb_slist.c:flb_log_check Unexecuted instantiation: flb_scheduler.c:flb_log_check flb_router.c:flb_log_check Line | Count | Source | 119 | 1.13k | static inline int flb_log_check(int l) { | 120 | 1.13k | struct flb_worker *w; | 121 | 1.13k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 1.13k | if (!w && l <= 3) { | 123 | 0 | return FLB_TRUE; | 124 | 0 | } | 125 | | | 126 | 1.13k | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 1.13k | return FLB_FALSE; | 128 | 1.13k | } | 129 | 0 | return FLB_TRUE; | 130 | 1.13k | } |
Unexecuted instantiation: flb_router_config.c:flb_log_check Unexecuted instantiation: flb_coro.c:flb_log_check flb_plugin.c:flb_log_check Line | Count | Source | 119 | 71 | static inline int flb_log_check(int l) { | 120 | 71 | struct flb_worker *w; | 121 | 71 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 71 | if (!w && l <= 3) { | 123 | 0 | return FLB_TRUE; | 124 | 0 | } | 125 | | | 126 | 71 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 71 | return FLB_FALSE; | 128 | 71 | } | 129 | 0 | return FLB_TRUE; | 130 | 71 | } |
Unexecuted instantiation: flb_routes_mask.c:flb_log_check Unexecuted instantiation: flb_processor.c:flb_log_check Unexecuted instantiation: flb_config_format.c:flb_log_check flb_cf_fluentbit.c:flb_log_check Line | Count | Source | 119 | 66 | static inline int flb_log_check(int l) { | 120 | 66 | struct flb_worker *w; | 121 | 66 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 66 | if (!w && l <= 3) { | 123 | 66 | return FLB_TRUE; | 124 | 66 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
flb_cf_yaml.c:flb_log_check Line | Count | Source | 119 | 1.04M | static inline int flb_log_check(int l) { | 120 | 1.04M | struct flb_worker *w; | 121 | 1.04M | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 1.04M | if (!w && l <= 3) { | 123 | 7.39k | return FLB_TRUE; | 124 | 7.39k | } | 125 | | | 126 | 1.03M | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 1.03M | return FLB_FALSE; | 128 | 1.03M | } | 129 | 0 | return FLB_TRUE; | 130 | 1.03M | } |
Line | Count | Source | 119 | 150k | static inline int flb_log_check(int l) { | 120 | 150k | struct flb_worker *w; | 121 | 150k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 150k | if (!w && l <= 3) { | 123 | 150k | return FLB_TRUE; | 124 | 150k | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
flb_parser.c:flb_log_check Line | Count | Source | 119 | 874k | static inline int flb_log_check(int l) { | 120 | 874k | struct flb_worker *w; | 121 | 874k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 874k | if (!w && l <= 3) { | 123 | 120k | return FLB_TRUE; | 124 | 120k | } | 125 | | | 126 | 754k | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 754k | return FLB_FALSE; | 128 | 754k | } | 129 | 0 | return FLB_TRUE; | 130 | 754k | } |
flb_parser_regex.c:flb_log_check Line | Count | Source | 119 | 44.6k | static inline int flb_log_check(int l) { | 120 | 44.6k | struct flb_worker *w; | 121 | 44.6k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 44.6k | if (!w && l <= 3) { | 123 | 44.6k | return FLB_TRUE; | 124 | 44.6k | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
flb_parser_json.c:flb_log_check Line | Count | Source | 119 | 5.92k | static inline int flb_log_check(int l) { | 120 | 5.92k | struct flb_worker *w; | 121 | 5.92k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 5.92k | if (!w && l <= 3) { | 123 | 5.92k | return FLB_TRUE; | 124 | 5.92k | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
flb_parser_decoder.c:flb_log_check Line | Count | Source | 119 | 2.37k | static inline int flb_log_check(int l) { | 120 | 2.37k | struct flb_worker *w; | 121 | 2.37k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 2.37k | if (!w && l <= 3) { | 123 | 2.37k | return FLB_TRUE; | 124 | 2.37k | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
flb_parser_ltsv.c:flb_log_check Line | Count | Source | 119 | 8 | static inline int flb_log_check(int l) { | 120 | 8 | struct flb_worker *w; | 121 | 8 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 8 | if (!w && l <= 3) { | 123 | 8 | return FLB_TRUE; | 124 | 8 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
flb_parser_logfmt.c:flb_log_check Line | Count | Source | 119 | 304 | static inline int flb_log_check(int l) { | 120 | 304 | struct flb_worker *w; | 121 | 304 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 304 | if (!w && l <= 3) { | 123 | 304 | return FLB_TRUE; | 124 | 304 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: flb_plugin_proxy.c:flb_log_check Unexecuted instantiation: flb_metrics.c:flb_log_check Unexecuted instantiation: flb_chunk_trace.c:flb_log_check Unexecuted instantiation: flb_api.c:flb_log_check Line | Count | Source | 119 | 5.66k | static inline int flb_log_check(int l) { | 120 | 5.66k | struct flb_worker *w; | 121 | 5.66k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 5.66k | if (!w && l <= 3) { | 123 | 4 | return FLB_TRUE; | 124 | 4 | } | 125 | | | 126 | 5.66k | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 5.66k | return FLB_FALSE; | 128 | 5.66k | } | 129 | 0 | return FLB_TRUE; | 130 | 5.66k | } |
Unexecuted instantiation: flb_pack_json.c:flb_log_check Unexecuted instantiation: flb_meta.c:flb_log_check Unexecuted instantiation: flb_kernel.c:flb_log_check Unexecuted instantiation: flb_custom.c:flb_log_check flb_input.c:flb_log_check Line | Count | Source | 119 | 4.53k | static inline int flb_log_check(int l) { | 120 | 4.53k | struct flb_worker *w; | 121 | 4.53k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 4.53k | if (!w && l <= 3) { | 123 | 2 | return FLB_TRUE; | 124 | 2 | } | 125 | | | 126 | 4.53k | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 4.52k | return FLB_FALSE; | 128 | 4.52k | } | 129 | 2 | return FLB_TRUE; | 130 | 4.53k | } |
flb_input_chunk.c:flb_log_check Line | Count | Source | 119 | 491 | static inline int flb_log_check(int l) { | 120 | 491 | struct flb_worker *w; | 121 | 491 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 491 | if (!w && l <= 3) { | 123 | 0 | return FLB_TRUE; | 124 | 0 | } | 125 | | | 126 | 491 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 251 | return FLB_FALSE; | 128 | 251 | } | 129 | 240 | return FLB_TRUE; | 130 | 491 | } |
Unexecuted instantiation: flb_input_log.c:flb_log_check Unexecuted instantiation: flb_input_thread.c:flb_log_check Unexecuted instantiation: flb_filter.c:flb_log_check flb_output.c:flb_log_check Line | Count | Source | 119 | 1.34k | static inline int flb_log_check(int l) { | 120 | 1.34k | struct flb_worker *w; | 121 | 1.34k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 1.34k | if (!w && l <= 3) { | 123 | 0 | return FLB_TRUE; | 124 | 0 | } | 125 | | | 126 | 1.34k | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 1.34k | return FLB_FALSE; | 128 | 1.34k | } | 129 | 2 | return FLB_TRUE; | 130 | 1.34k | } |
Unexecuted instantiation: flb_output_thread.c:flb_log_check flb_network.c:flb_log_check Line | Count | Source | 119 | 420 | static inline int flb_log_check(int l) { | 120 | 420 | struct flb_worker *w; | 121 | 420 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 420 | if (!w && l <= 3) { | 123 | 0 | return FLB_TRUE; | 124 | 0 | } | 125 | | | 126 | 420 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 420 | return FLB_FALSE; | 128 | 420 | } | 129 | 0 | return FLB_TRUE; | 130 | 420 | } |
flb_engine.c:flb_log_check Line | Count | Source | 119 | 10.4k | static inline int flb_log_check(int l) { | 120 | 10.4k | struct flb_worker *w; | 121 | 10.4k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 10.4k | if (!w && l <= 3) { | 123 | 0 | return FLB_TRUE; | 124 | 0 | } | 125 | | | 126 | 10.4k | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 10.3k | return FLB_FALSE; | 128 | 10.3k | } | 129 | 12 | return FLB_TRUE; | 130 | 10.4k | } |
Unexecuted instantiation: flb_engine_dispatch.c:flb_log_check Line | Count | Source | 119 | 840 | static inline int flb_log_check(int l) { | 120 | 840 | struct flb_worker *w; | 121 | 840 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 840 | if (!w && l <= 3) { | 123 | 0 | return FLB_TRUE; | 124 | 0 | } | 125 | | | 126 | 840 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 840 | return FLB_FALSE; | 128 | 840 | } | 129 | 0 | return FLB_TRUE; | 130 | 840 | } |
flb_storage.c:flb_log_check Line | Count | Source | 119 | 2.26k | static inline int flb_log_check(int l) { | 120 | 2.26k | struct flb_worker *w; | 121 | 2.26k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 2.26k | if (!w && l <= 3) { | 123 | 0 | return FLB_TRUE; | 124 | 0 | } | 125 | | | 126 | 2.26k | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 2.26k | return FLB_FALSE; | 128 | 2.26k | } | 129 | 2 | return FLB_TRUE; | 130 | 2.26k | } |
Unexecuted instantiation: flb_connection.c:flb_log_check Unexecuted instantiation: flb_downstream.c:flb_log_check flb_upstream.c:flb_log_check Line | Count | Source | 119 | 210 | static inline int flb_log_check(int l) { | 120 | 210 | struct flb_worker *w; | 121 | 210 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 210 | if (!w && l <= 3) { | 123 | 0 | return FLB_TRUE; | 124 | 0 | } | 125 | | | 126 | 210 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 210 | return FLB_FALSE; | 128 | 210 | } | 129 | 0 | return FLB_TRUE; | 130 | 210 | } |
Unexecuted instantiation: flb_router_condition.c:flb_log_check Unexecuted instantiation: flb_sosreport.c:flb_log_check Unexecuted instantiation: flb_callback.c:flb_log_check Unexecuted instantiation: flb_thread_pool.c:flb_log_check Unexecuted instantiation: flb_event.c:flb_log_check Unexecuted instantiation: flb_ring_buffer.c:flb_log_check Unexecuted instantiation: flb_notification.c:flb_log_check Unexecuted instantiation: flb_ml_stream.c:flb_log_check flb_ml_parser.c:flb_log_check Line | Count | Source | 119 | 544 | static inline int flb_log_check(int l) { | 120 | 544 | struct flb_worker *w; | 121 | 544 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 544 | if (!w && l <= 3) { | 123 | 544 | return FLB_TRUE; | 124 | 544 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: flb_ml_group.c:flb_log_check flb_ml_rule.c:flb_log_check Line | Count | Source | 119 | 325 | static inline int flb_log_check(int l) { | 120 | 325 | struct flb_worker *w; | 121 | 325 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 325 | if (!w && l <= 3) { | 123 | 325 | return FLB_TRUE; | 124 | 325 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: flb_tls.c:flb_log_check Unexecuted instantiation: flb_metrics_exporter.c:flb_log_check Unexecuted instantiation: flb_uri.c:flb_log_check Unexecuted instantiation: flb_socket.c:flb_log_check Unexecuted instantiation: flb_io.c:flb_log_check flb_http_client.c:flb_log_check Line | Count | Source | 119 | 2.63k | static inline int flb_log_check(int l) { | 120 | 2.63k | struct flb_worker *w; | 121 | 2.63k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 2.63k | if (!w && l <= 3) { | 123 | 1.04k | return FLB_TRUE; | 124 | 1.04k | } | 125 | | | 126 | 1.58k | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 1.58k | return FLB_FALSE; | 128 | 1.58k | } | 129 | 0 | return FLB_TRUE; | 130 | 1.58k | } |
flb_ml_parser_cri.c:flb_log_check Line | Count | Source | 119 | 28 | static inline int flb_log_check(int l) { | 120 | 28 | struct flb_worker *w; | 121 | 28 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 28 | if (!w && l <= 3) { | 123 | 28 | return FLB_TRUE; | 124 | 28 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
flb_ml_parser_docker.c:flb_log_check Line | Count | Source | 119 | 37 | static inline int flb_log_check(int l) { | 120 | 37 | struct flb_worker *w; | 121 | 37 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 37 | if (!w && l <= 3) { | 123 | 37 | return FLB_TRUE; | 124 | 37 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
flb_ml_parser_python.c:flb_log_check Line | Count | Source | 119 | 62 | static inline int flb_log_check(int l) { | 120 | 62 | struct flb_worker *w; | 121 | 62 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 62 | if (!w && l <= 3) { | 123 | 62 | return FLB_TRUE; | 124 | 62 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
flb_ml_parser_java.c:flb_log_check Line | Count | Source | 119 | 229 | static inline int flb_log_check(int l) { | 120 | 229 | struct flb_worker *w; | 121 | 229 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 229 | if (!w && l <= 3) { | 123 | 229 | return FLB_TRUE; | 124 | 229 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
flb_ml_parser_go.c:flb_log_check Line | Count | Source | 119 | 109 | static inline int flb_log_check(int l) { | 120 | 109 | struct flb_worker *w; | 121 | 109 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 109 | if (!w && l <= 3) { | 123 | 109 | return FLB_TRUE; | 124 | 109 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
flb_ml_parser_ruby.c:flb_log_check Line | Count | Source | 119 | 33 | static inline int flb_log_check(int l) { | 120 | 33 | struct flb_worker *w; | 121 | 33 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 33 | if (!w && l <= 3) { | 123 | 33 | return FLB_TRUE; | 124 | 33 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: flb_upstream_ha.c:flb_log_check Unexecuted instantiation: flb_upstream_node.c:flb_log_check Unexecuted instantiation: flb_http_common.c:flb_log_check Unexecuted instantiation: flb_http_client_http1.c:flb_log_check Unexecuted instantiation: flb_http_client_http2.c:flb_log_check Unexecuted instantiation: flb_signv4_ng.c:flb_log_check Line | Count | Source | 119 | 1.50k | static inline int flb_log_check(int l) { | 120 | 1.50k | struct flb_worker *w; | 121 | 1.50k | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 1.50k | if (!w && l <= 3) { | 123 | 1.50k | return FLB_TRUE; | 124 | 1.50k | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: flb_snappy.c:flb_log_check Unexecuted instantiation: flb_zstd.c:flb_log_check flb_signv4.c:flb_log_check Line | Count | Source | 119 | 115 | static inline int flb_log_check(int l) { | 120 | 115 | struct flb_worker *w; | 121 | 115 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 115 | if (!w && l <= 3) { | 123 | 115 | return FLB_TRUE; | 124 | 115 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: flb_hs.c:flb_log_check Unexecuted instantiation: flb_hs_endpoints.c:flb_log_check Unexecuted instantiation: flb_hs_utils.c:flb_log_check Unexecuted instantiation: flb_http_server_http1.c:flb_log_check Unexecuted instantiation: flb_http_server_http2.c:flb_log_check Unexecuted instantiation: calyptia.c:flb_log_check Unexecuted instantiation: blob.c:flb_log_check Unexecuted instantiation: blob_db.c:flb_log_check Unexecuted instantiation: blob_file.c:flb_log_check Unexecuted instantiation: docker_events.c:flb_log_check Unexecuted instantiation: docker_events_config.c:flb_log_check Unexecuted instantiation: podman_metrics.c:flb_log_check Unexecuted instantiation: podman_metrics_data.c:flb_log_check Unexecuted instantiation: pe.c:flb_log_check Unexecuted instantiation: pe_config.c:flb_log_check Unexecuted instantiation: pe_process.c:flb_log_check Unexecuted instantiation: pe_utils.c:flb_log_check Unexecuted instantiation: gpu_metrics.c:flb_log_check Unexecuted instantiation: amd_gpu.c:flb_log_check Unexecuted instantiation: ne.c:flb_log_check Unexecuted instantiation: ne_cpu.c:flb_log_check Unexecuted instantiation: ne_meminfo.c:flb_log_check Unexecuted instantiation: ne_diskstats.c:flb_log_check Unexecuted instantiation: ne_filesystem.c:flb_log_check Unexecuted instantiation: ne_uname.c:flb_log_check Unexecuted instantiation: ne_stat.c:flb_log_check Unexecuted instantiation: ne_vmstat.c:flb_log_check Unexecuted instantiation: ne_netdev.c:flb_log_check Unexecuted instantiation: ne_netstat.c:flb_log_check Unexecuted instantiation: ne_sockstat.c:flb_log_check Unexecuted instantiation: ne_time.c:flb_log_check Unexecuted instantiation: ne_loadavg.c:flb_log_check Unexecuted instantiation: ne_filefd.c:flb_log_check Unexecuted instantiation: ne_textfile.c:flb_log_check Unexecuted instantiation: ne_processes.c:flb_log_check Unexecuted instantiation: ne_nvme.c:flb_log_check Unexecuted instantiation: ne_hwmon.c:flb_log_check Unexecuted instantiation: ne_utils.c:flb_log_check Unexecuted instantiation: ne_config.c:flb_log_check Unexecuted instantiation: ne_systemd.c:flb_log_check Unexecuted instantiation: ne_thermalzone.c:flb_log_check Unexecuted instantiation: kubernetes_events.c:flb_log_check Unexecuted instantiation: kubernetes_events_conf.c:flb_log_check Unexecuted instantiation: in_kafka.c:flb_log_check Unexecuted instantiation: metrics.c:flb_log_check Unexecuted instantiation: prom_scrape.c:flb_log_check Unexecuted instantiation: prometheus_textfile.c:flb_log_check Unexecuted instantiation: emitter.c:flb_log_check Unexecuted instantiation: in_dummy.c:flb_log_check Unexecuted instantiation: http.c:flb_log_check Unexecuted instantiation: http_conn.c:flb_log_check Unexecuted instantiation: http_prot.c:flb_log_check Unexecuted instantiation: http_config.c:flb_log_check Unexecuted instantiation: statsd.c:flb_log_check Unexecuted instantiation: opentelemetry.c:flb_log_check Unexecuted instantiation: opentelemetry_prot.c:flb_log_check Unexecuted instantiation: opentelemetry_logs.c:flb_log_check Unexecuted instantiation: opentelemetry_traces.c:flb_log_check Unexecuted instantiation: opentelemetry_config.c:flb_log_check Unexecuted instantiation: in_elasticsearch.c:flb_log_check Unexecuted instantiation: in_elasticsearch_config.c:flb_log_check Unexecuted instantiation: in_elasticsearch_bulk_conn.c:flb_log_check Unexecuted instantiation: in_elasticsearch_bulk_prot.c:flb_log_check Unexecuted instantiation: in_calyptia_fleet.c:flb_log_check Unexecuted instantiation: splunk.c:flb_log_check Unexecuted instantiation: splunk_conn.c:flb_log_check Unexecuted instantiation: splunk_prot.c:flb_log_check Unexecuted instantiation: splunk_config.c:flb_log_check Unexecuted instantiation: prom_rw.c:flb_log_check Unexecuted instantiation: prom_rw_prot.c:flb_log_check Unexecuted instantiation: prom_rw_conn.c:flb_log_check Unexecuted instantiation: prom_rw_config.c:flb_log_check Unexecuted instantiation: event_type.c:flb_log_check Unexecuted instantiation: sb.c:flb_log_check Unexecuted instantiation: nginx.c:flb_log_check Unexecuted instantiation: udp.c:flb_log_check Unexecuted instantiation: udp_conn.c:flb_log_check Unexecuted instantiation: udp_config.c:flb_log_check Unexecuted instantiation: in_exec_wasi.c:flb_log_check Unexecuted instantiation: in_lib.c:flb_log_check Unexecuted instantiation: cm.c:flb_log_check Unexecuted instantiation: cm_config.c:flb_log_check Unexecuted instantiation: cm_logs.c:flb_log_check Unexecuted instantiation: cm_metrics.c:flb_log_check Unexecuted instantiation: cm_traces.c:flb_log_check Unexecuted instantiation: cm_opentelemetry.c:flb_log_check Unexecuted instantiation: cm_utils.c:flb_log_check Unexecuted instantiation: labels.c:flb_log_check Unexecuted instantiation: selector.c:flb_log_check Unexecuted instantiation: otel_envelope.c:flb_log_check Unexecuted instantiation: sampling.c:flb_log_check Unexecuted instantiation: sampling_conf.c:flb_log_check Unexecuted instantiation: sampling_span_registry.c:flb_log_check Unexecuted instantiation: sampling_conditions.c:flb_log_check Unexecuted instantiation: sampling_cond_status_codes.c:flb_log_check Unexecuted instantiation: sampling_cond_latency.c:flb_log_check Unexecuted instantiation: sampling_cond_attribute.c:flb_log_check Unexecuted instantiation: sampling_cond_string_attribute.c:flb_log_check Unexecuted instantiation: sampling_cond_numeric_attribute.c:flb_log_check Unexecuted instantiation: sampling_cond_boolean_attribute.c:flb_log_check Unexecuted instantiation: sampling_cond_span_count.c:flb_log_check Unexecuted instantiation: sampling_cond_trace_state.c:flb_log_check Unexecuted instantiation: sampling_tail.c:flb_log_check Unexecuted instantiation: sampling_probabilistic.c:flb_log_check Unexecuted instantiation: sql.c:flb_log_check Unexecuted instantiation: sql_config.c:flb_log_check Unexecuted instantiation: azure_blob.c:flb_log_check Unexecuted instantiation: azure_blob_uri.c:flb_log_check Unexecuted instantiation: azure_blob_conf.c:flb_log_check Unexecuted instantiation: azure_blob_http.c:flb_log_check Unexecuted instantiation: azure_blob_db.c:flb_log_check Unexecuted instantiation: azure_blob_appendblob.c:flb_log_check Unexecuted instantiation: azure_blob_blockblob.c:flb_log_check Unexecuted instantiation: azure_blob_store.c:flb_log_check Unexecuted instantiation: azure_logs_ingestion.c:flb_log_check Unexecuted instantiation: azure_logs_ingestion_conf.c:flb_log_check Unexecuted instantiation: azure_kusto.c:flb_log_check Unexecuted instantiation: azure_kusto_conf.c:flb_log_check Unexecuted instantiation: azure_kusto_ingest.c:flb_log_check Unexecuted instantiation: azure_msiauth.c:flb_log_check Unexecuted instantiation: azure_kusto_store.c:flb_log_check Unexecuted instantiation: exit.c:flb_log_check Unexecuted instantiation: http_conf.c:flb_log_check Unexecuted instantiation: logdna.c:flb_log_check Unexecuted instantiation: opensearch.c:flb_log_check Unexecuted instantiation: os_conf.c:flb_log_check Unexecuted instantiation: oci_logan.c:flb_log_check Unexecuted instantiation: oci_logan_conf.c:flb_log_check Unexecuted instantiation: skywalking.c:flb_log_check Unexecuted instantiation: stdout.c:flb_log_check Unexecuted instantiation: udp_conf.c:flb_log_check Unexecuted instantiation: td.c:flb_log_check Unexecuted instantiation: td_http.c:flb_log_check Unexecuted instantiation: td_config.c:flb_log_check Unexecuted instantiation: out_lib.c:flb_log_check Unexecuted instantiation: websocket.c:flb_log_check Unexecuted instantiation: websocket_conf.c:flb_log_check Unexecuted instantiation: cloudwatch_logs.c:flb_log_check Unexecuted instantiation: cloudwatch_api.c:flb_log_check Unexecuted instantiation: firehose.c:flb_log_check Unexecuted instantiation: firehose_api.c:flb_log_check Unexecuted instantiation: kinesis.c:flb_log_check Unexecuted instantiation: kinesis_api.c:flb_log_check Unexecuted instantiation: opentelemetry_utils.c:flb_log_check Unexecuted instantiation: opentelemetry_conf.c:flb_log_check Unexecuted instantiation: prom.c:flb_log_check Unexecuted instantiation: prom_http.c:flb_log_check Unexecuted instantiation: remote_write.c:flb_log_check Unexecuted instantiation: remote_write_conf.c:flb_log_check Unexecuted instantiation: s3.c:flb_log_check Unexecuted instantiation: s3_store.c:flb_log_check Unexecuted instantiation: s3_multipart.c:flb_log_check Unexecuted instantiation: vivo.c:flb_log_check Unexecuted instantiation: vivo_http.c:flb_log_check Unexecuted instantiation: vivo_stream.c:flb_log_check Unexecuted instantiation: chronicle.c:flb_log_check Unexecuted instantiation: chronicle_conf.c:flb_log_check Unexecuted instantiation: alter_size.c:flb_log_check Unexecuted instantiation: aws.c:flb_log_check Unexecuted instantiation: checklist.c:flb_log_check Unexecuted instantiation: ecs.c:flb_log_check Unexecuted instantiation: filter_modifier.c:flb_log_check Unexecuted instantiation: sysinfo.c:flb_log_check Unexecuted instantiation: sysinfo_platform.c:flb_log_check Unexecuted instantiation: throttle.c:flb_log_check Unexecuted instantiation: window.c:flb_log_check Unexecuted instantiation: type_converter.c:flb_log_check Unexecuted instantiation: kubernetes.c:flb_log_check Unexecuted instantiation: kubernetes_aws.c:flb_log_check Unexecuted instantiation: kube_conf.c:flb_log_check Unexecuted instantiation: kube_meta.c:flb_log_check Unexecuted instantiation: kube_regex.c:flb_log_check Unexecuted instantiation: kube_property.c:flb_log_check Unexecuted instantiation: modify.c:flb_log_check Unexecuted instantiation: ml.c:flb_log_check Unexecuted instantiation: ml_concat.c:flb_log_check Unexecuted instantiation: nest.c:flb_log_check Unexecuted instantiation: filter_parser.c:flb_log_check Unexecuted instantiation: expect.c:flb_log_check Unexecuted instantiation: grep.c:flb_log_check Unexecuted instantiation: rewrite_tag.c:flb_log_check Unexecuted instantiation: log_to_metrics.c:flb_log_check Unexecuted instantiation: geoip2.c:flb_log_check Unexecuted instantiation: nightfall.c:flb_log_check Unexecuted instantiation: nightfall_api.c:flb_log_check Unexecuted instantiation: filter_wasm.c:flb_log_check Unexecuted instantiation: register.c:flb_log_check Unexecuted instantiation: health.c:flb_log_check Unexecuted instantiation: trace.c:flb_log_check Unexecuted instantiation: uptime.c:flb_log_check Unexecuted instantiation: storage.c:flb_log_check Unexecuted instantiation: plugins.c:flb_log_check Unexecuted instantiation: reload.c:flb_log_check Unexecuted instantiation: flb_input_metric.c:flb_log_check Unexecuted instantiation: flb_input_trace.c:flb_log_check Unexecuted instantiation: flb_input_profiles.c:flb_log_check Unexecuted instantiation: flb_input_blob.c:flb_log_check flb_fstore.c:flb_log_check Line | Count | Source | 119 | 135 | static inline int flb_log_check(int l) { | 120 | 135 | struct flb_worker *w; | 121 | 135 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 135 | if (!w && l <= 3) { | 123 | 135 | return FLB_TRUE; | 124 | 135 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: flb_typecast.c:flb_log_check Unexecuted instantiation: flb_blob_db.c:flb_log_check Unexecuted instantiation: flb_opentelemetry_logs.c:flb_log_check Unexecuted instantiation: flb_opentelemetry_traces.c:flb_log_check Unexecuted instantiation: flb_opentelemetry_utils.c:flb_log_check Unexecuted instantiation: flb_oauth2.c:flb_log_check Unexecuted instantiation: flb_kafka.c:flb_log_check Unexecuted instantiation: flb_sqldb.c:flb_log_check Unexecuted instantiation: flb_http_server.c:flb_log_check Unexecuted instantiation: go.c:flb_log_check Unexecuted instantiation: flb_aws_compress.c:flb_log_check flb_aws_util.c:flb_log_check Line | Count | Source | 119 | 623 | static inline int flb_log_check(int l) { | 120 | 623 | struct flb_worker *w; | 121 | 623 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 623 | if (!w && l <= 3) { | 123 | 223 | return FLB_TRUE; | 124 | 223 | } | 125 | | | 126 | 400 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 400 | return FLB_FALSE; | 128 | 400 | } | 129 | 0 | return FLB_TRUE; | 130 | 400 | } |
flb_aws_credentials.c:flb_log_check Line | Count | Source | 119 | 500 | static inline int flb_log_check(int l) { | 120 | 500 | struct flb_worker *w; | 121 | 500 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 500 | if (!w && l <= 3) { | 123 | 115 | return FLB_TRUE; | 124 | 115 | } | 125 | | | 126 | 385 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 385 | return FLB_FALSE; | 128 | 385 | } | 129 | 0 | return FLB_TRUE; | 130 | 385 | } |
flb_aws_credentials_sts.c:flb_log_check Line | Count | Source | 119 | 376 | static inline int flb_log_check(int l) { | 120 | 376 | struct flb_worker *w; | 121 | 376 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 376 | if (!w && l <= 3) { | 123 | 376 | return FLB_TRUE; | 124 | 376 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: flb_aws_credentials_ec2.c:flb_log_check Unexecuted instantiation: flb_aws_imds.c:flb_log_check flb_aws_credentials_http.c:flb_log_check Line | Count | Source | 119 | 485 | static inline int flb_log_check(int l) { | 120 | 485 | struct flb_worker *w; | 121 | 485 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 485 | if (!w && l <= 3) { | 123 | 485 | return FLB_TRUE; | 124 | 485 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: flb_aws_credentials_profile.c:flb_log_check flb_aws_credentials_process.c:flb_log_check Line | Count | Source | 119 | 256 | static inline int flb_log_check(int l) { | 120 | 256 | struct flb_worker *w; | 121 | 256 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 256 | if (!w && l <= 3) { | 123 | 256 | return FLB_TRUE; | 124 | 256 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: sql_parser.c:flb_log_check Unexecuted instantiation: processor-sql-parser_lex.c:flb_log_check Unexecuted instantiation: processor-sql_parser.c:flb_log_check Unexecuted instantiation: sql_expression.c:flb_log_check Unexecuted instantiation: flb_wasm.c:flb_log_check Unexecuted instantiation: flb_json_fuzzer.c:flb_log_check Unexecuted instantiation: multiline_fuzzer.c:flb_log_check Unexecuted instantiation: config_random_fuzzer.c:flb_log_check Unexecuted instantiation: parser_fuzzer.c:flb_log_check Unexecuted instantiation: aws_util_fuzzer.c:flb_log_check Unexecuted instantiation: pack_json_state_fuzzer.c:flb_log_check input_fuzzer.c:flb_log_check Line | Count | Source | 119 | 210 | static inline int flb_log_check(int l) { | 120 | 210 | struct flb_worker *w; | 121 | 210 | w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx); | 122 | 210 | if (!w && l <= 3) { | 123 | 210 | return FLB_TRUE; | 124 | 210 | } | 125 | | | 126 | 0 | if (w == NULL || flb_worker_log_level(w) < l) { | 127 | 0 | return FLB_FALSE; | 128 | 0 | } | 129 | 0 | return FLB_TRUE; | 130 | 0 | } |
Unexecuted instantiation: aws_credentials_fuzzer.c:flb_log_check Unexecuted instantiation: http_fuzzer.c:flb_log_check Unexecuted instantiation: filter_stdout_fuzzer.c:flb_log_check Unexecuted instantiation: signv4_fuzzer.c:flb_log_check Unexecuted instantiation: record_ac_fuzzer.c:flb_log_check Unexecuted instantiation: parse_ltsv_fuzzer.c:flb_log_check Unexecuted instantiation: utils_fuzzer.c:flb_log_check Unexecuted instantiation: parse_logfmt_fuzzer.c:flb_log_check Unexecuted instantiation: engine_fuzzer.c:flb_log_check Unexecuted instantiation: parse_json_fuzzer.c:flb_log_check Unexecuted instantiation: config_fuzzer.c:flb_log_check |
131 | | |
132 | | struct flb_log *flb_log_create(struct flb_config *config, int type, |
133 | | int level, char *out); |
134 | | int flb_log_set_level(struct flb_config *config, int level); |
135 | | int flb_log_get_level_str(char *str); |
136 | | |
137 | | int flb_log_set_file(struct flb_config *config, char *out); |
138 | | |
139 | | int flb_log_destroy(struct flb_log *log, struct flb_config *config); |
140 | | void flb_log_print(int type, const char *file, int line, const char *fmt, ...) FLB_FORMAT_PRINTF(4, 5); |
141 | | int flb_log_is_truncated(int type, const char *file, int line, const char *fmt, ...) FLB_FORMAT_PRINTF(4, 5); |
142 | | |
143 | | struct flb_log_cache *flb_log_cache_create(int timeout_seconds, int size); |
144 | | void flb_log_cache_destroy(struct flb_log_cache *cache); |
145 | | struct flb_log_cache_entry *flb_log_cache_exists(struct flb_log_cache *cache, char *msg_buf, size_t msg_size); |
146 | | struct flb_log_cache_entry *flb_log_cache_get_target(struct flb_log_cache *cache, uint64_t ts); |
147 | | |
148 | | int flb_log_cache_check_suppress(struct flb_log_cache *cache, char *msg_buf, size_t msg_size); |
149 | | |
150 | | |
151 | | static inline int flb_log_suppress_check(int log_suppress_interval, const char *fmt, ...) |
152 | 776 | { |
153 | 776 | int ret; |
154 | 776 | size_t size; |
155 | 776 | va_list args; |
156 | 776 | char buf[4096]; |
157 | 776 | struct flb_worker *w; |
158 | | |
159 | 776 | if (log_suppress_interval <= 0) { |
160 | 650 | return FLB_FALSE; |
161 | 650 | } |
162 | | |
163 | 776 | va_start(args, fmt); |
164 | 126 | size = vsnprintf(buf, sizeof(buf) - 1, fmt, args); |
165 | 126 | va_end(args); |
166 | | |
167 | 126 | if (size == -1) { |
168 | 0 | return FLB_FALSE; |
169 | 0 | } |
170 | | |
171 | 126 | w = flb_worker_get(); |
172 | 126 | if (!w) { |
173 | 0 | return FLB_FALSE; |
174 | 0 | } |
175 | | |
176 | 126 | ret = flb_log_cache_check_suppress(w->log_cache, buf, size); |
177 | 126 | return ret; |
178 | 126 | } Unexecuted instantiation: strp_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: flb_strptime.c:flb_log_suppress_check Unexecuted instantiation: msgpack_parse_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: flb_pack.c:flb_log_suppress_check Unexecuted instantiation: flb_sds.c:flb_log_suppress_check Unexecuted instantiation: flb_utils.c:flb_log_suppress_check Unexecuted instantiation: flb_unescape.c:flb_log_suppress_check Unexecuted instantiation: flb_worker.c:flb_log_suppress_check Unexecuted instantiation: flb_time.c:flb_log_suppress_check Unexecuted instantiation: flb_log_event_decoder.c:flb_log_suppress_check Unexecuted instantiation: flb_mp.c:flb_log_suppress_check Unexecuted instantiation: flb_log.c:flb_log_suppress_check Unexecuted instantiation: flb_pipe.c:flb_log_suppress_check Unexecuted instantiation: flb_log_event_encoder.c:flb_log_suppress_check Unexecuted instantiation: flb_log_event_encoder_primitives.c:flb_log_suppress_check Unexecuted instantiation: flb_log_event_encoder_dynamic_field.c:flb_log_suppress_check Unexecuted instantiation: flb_conditionals.c:flb_log_suppress_check Unexecuted instantiation: flb_regex.c:flb_log_suppress_check Unexecuted instantiation: flb_record_accessor.c:flb_log_suppress_check Unexecuted instantiation: flb_ra_key.c:flb_log_suppress_check Unexecuted instantiation: flb_env.c:flb_log_suppress_check Unexecuted instantiation: flb_file.c:flb_log_suppress_check Unexecuted instantiation: flb_hash_table.c:flb_log_suppress_check Unexecuted instantiation: flb_sds_list.c:flb_log_suppress_check Unexecuted instantiation: flb_cfl_record_accessor.c:flb_log_suppress_check Unexecuted instantiation: flb_cfl_ra_key.c:flb_log_suppress_check Unexecuted instantiation: flb_ra_parser.c:flb_log_suppress_check Unexecuted instantiation: ra_lex.c:flb_log_suppress_check Unexecuted instantiation: ra_parser.c:flb_log_suppress_check Unexecuted instantiation: msgpack_to_gelf_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: flb_pack_gelf.c:flb_log_suppress_check Unexecuted instantiation: config_map_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: flb_kv.c:flb_log_suppress_check Unexecuted instantiation: flb_config.c:flb_log_suppress_check Unexecuted instantiation: flb_config_map.c:flb_log_suppress_check Unexecuted instantiation: flb_slist.c:flb_log_suppress_check Unexecuted instantiation: flb_scheduler.c:flb_log_suppress_check Unexecuted instantiation: flb_router.c:flb_log_suppress_check Unexecuted instantiation: flb_router_config.c:flb_log_suppress_check Unexecuted instantiation: flb_coro.c:flb_log_suppress_check Unexecuted instantiation: flb_plugin.c:flb_log_suppress_check Unexecuted instantiation: flb_routes_mask.c:flb_log_suppress_check Unexecuted instantiation: flb_processor.c:flb_log_suppress_check Unexecuted instantiation: flb_config_format.c:flb_log_suppress_check Unexecuted instantiation: flb_cf_fluentbit.c:flb_log_suppress_check Unexecuted instantiation: flb_cf_yaml.c:flb_log_suppress_check Unexecuted instantiation: flb_ml.c:flb_log_suppress_check Unexecuted instantiation: flb_parser.c:flb_log_suppress_check Unexecuted instantiation: flb_parser_regex.c:flb_log_suppress_check Unexecuted instantiation: flb_parser_json.c:flb_log_suppress_check Unexecuted instantiation: flb_parser_decoder.c:flb_log_suppress_check Unexecuted instantiation: flb_parser_ltsv.c:flb_log_suppress_check Unexecuted instantiation: flb_parser_logfmt.c:flb_log_suppress_check Unexecuted instantiation: flb_plugin_proxy.c:flb_log_suppress_check Unexecuted instantiation: flb_metrics.c:flb_log_suppress_check Unexecuted instantiation: flb_chunk_trace.c:flb_log_suppress_check Unexecuted instantiation: flb_api.c:flb_log_suppress_check Unexecuted instantiation: flb_lib.c:flb_log_suppress_check Unexecuted instantiation: flb_pack_json.c:flb_log_suppress_check Unexecuted instantiation: flb_meta.c:flb_log_suppress_check Unexecuted instantiation: flb_kernel.c:flb_log_suppress_check Unexecuted instantiation: flb_custom.c:flb_log_suppress_check flb_input.c:flb_log_suppress_check Line | Count | Source | 152 | 4 | { | 153 | 4 | int ret; | 154 | 4 | size_t size; | 155 | 4 | va_list args; | 156 | 4 | char buf[4096]; | 157 | 4 | struct flb_worker *w; | 158 | | | 159 | 4 | if (log_suppress_interval <= 0) { | 160 | 4 | return FLB_FALSE; | 161 | 4 | } | 162 | | | 163 | 4 | va_start(args, fmt); | 164 | 0 | size = vsnprintf(buf, sizeof(buf) - 1, fmt, args); | 165 | 0 | va_end(args); | 166 | |
| 167 | 0 | if (size == -1) { | 168 | 0 | return FLB_FALSE; | 169 | 0 | } | 170 | | | 171 | 0 | w = flb_worker_get(); | 172 | 0 | if (!w) { | 173 | 0 | return FLB_FALSE; | 174 | 0 | } | 175 | | | 176 | 0 | ret = flb_log_cache_check_suppress(w->log_cache, buf, size); | 177 | 0 | return ret; | 178 | 0 | } |
Unexecuted instantiation: flb_input_chunk.c:flb_log_suppress_check Unexecuted instantiation: flb_input_log.c:flb_log_suppress_check Unexecuted instantiation: flb_input_thread.c:flb_log_suppress_check Unexecuted instantiation: flb_filter.c:flb_log_suppress_check Unexecuted instantiation: flb_output.c:flb_log_suppress_check Unexecuted instantiation: flb_output_thread.c:flb_log_suppress_check Unexecuted instantiation: flb_network.c:flb_log_suppress_check Unexecuted instantiation: flb_engine.c:flb_log_suppress_check Unexecuted instantiation: flb_engine_dispatch.c:flb_log_suppress_check Unexecuted instantiation: flb_task.c:flb_log_suppress_check Unexecuted instantiation: flb_storage.c:flb_log_suppress_check Unexecuted instantiation: flb_connection.c:flb_log_suppress_check Unexecuted instantiation: flb_downstream.c:flb_log_suppress_check Unexecuted instantiation: flb_upstream.c:flb_log_suppress_check Unexecuted instantiation: flb_router_condition.c:flb_log_suppress_check Unexecuted instantiation: flb_sosreport.c:flb_log_suppress_check Unexecuted instantiation: flb_callback.c:flb_log_suppress_check Unexecuted instantiation: flb_thread_pool.c:flb_log_suppress_check Unexecuted instantiation: flb_event.c:flb_log_suppress_check Unexecuted instantiation: flb_ring_buffer.c:flb_log_suppress_check Unexecuted instantiation: flb_notification.c:flb_log_suppress_check Unexecuted instantiation: flb_ml_stream.c:flb_log_suppress_check Unexecuted instantiation: flb_ml_parser.c:flb_log_suppress_check Unexecuted instantiation: flb_ml_group.c:flb_log_suppress_check Unexecuted instantiation: flb_ml_rule.c:flb_log_suppress_check Unexecuted instantiation: flb_tls.c:flb_log_suppress_check Unexecuted instantiation: flb_metrics_exporter.c:flb_log_suppress_check Unexecuted instantiation: flb_uri.c:flb_log_suppress_check Unexecuted instantiation: flb_socket.c:flb_log_suppress_check Unexecuted instantiation: flb_io.c:flb_log_suppress_check Unexecuted instantiation: flb_http_client.c:flb_log_suppress_check Unexecuted instantiation: flb_ml_parser_cri.c:flb_log_suppress_check Unexecuted instantiation: flb_ml_parser_docker.c:flb_log_suppress_check Unexecuted instantiation: flb_ml_parser_python.c:flb_log_suppress_check Unexecuted instantiation: flb_ml_parser_java.c:flb_log_suppress_check Unexecuted instantiation: flb_ml_parser_go.c:flb_log_suppress_check Unexecuted instantiation: flb_ml_parser_ruby.c:flb_log_suppress_check Unexecuted instantiation: flb_upstream_ha.c:flb_log_suppress_check Unexecuted instantiation: flb_upstream_node.c:flb_log_suppress_check Unexecuted instantiation: flb_http_common.c:flb_log_suppress_check Unexecuted instantiation: flb_http_client_http1.c:flb_log_suppress_check Unexecuted instantiation: flb_http_client_http2.c:flb_log_suppress_check Unexecuted instantiation: flb_signv4_ng.c:flb_log_suppress_check Unexecuted instantiation: flb_gzip.c:flb_log_suppress_check Unexecuted instantiation: flb_snappy.c:flb_log_suppress_check Unexecuted instantiation: flb_zstd.c:flb_log_suppress_check Unexecuted instantiation: flb_signv4.c:flb_log_suppress_check Unexecuted instantiation: flb_hs.c:flb_log_suppress_check Unexecuted instantiation: flb_hs_endpoints.c:flb_log_suppress_check Unexecuted instantiation: flb_hs_utils.c:flb_log_suppress_check Unexecuted instantiation: flb_http_server_http1.c:flb_log_suppress_check Unexecuted instantiation: flb_http_server_http2.c:flb_log_suppress_check Unexecuted instantiation: calyptia.c:flb_log_suppress_check Unexecuted instantiation: blob.c:flb_log_suppress_check Unexecuted instantiation: blob_db.c:flb_log_suppress_check Unexecuted instantiation: blob_file.c:flb_log_suppress_check Unexecuted instantiation: docker_events.c:flb_log_suppress_check Unexecuted instantiation: docker_events_config.c:flb_log_suppress_check Unexecuted instantiation: podman_metrics.c:flb_log_suppress_check Unexecuted instantiation: podman_metrics_data.c:flb_log_suppress_check Unexecuted instantiation: pe.c:flb_log_suppress_check Unexecuted instantiation: pe_config.c:flb_log_suppress_check Unexecuted instantiation: pe_process.c:flb_log_suppress_check Unexecuted instantiation: pe_utils.c:flb_log_suppress_check Unexecuted instantiation: gpu_metrics.c:flb_log_suppress_check Unexecuted instantiation: amd_gpu.c:flb_log_suppress_check Unexecuted instantiation: ne.c:flb_log_suppress_check Unexecuted instantiation: ne_cpu.c:flb_log_suppress_check Unexecuted instantiation: ne_meminfo.c:flb_log_suppress_check Unexecuted instantiation: ne_diskstats.c:flb_log_suppress_check Unexecuted instantiation: ne_filesystem.c:flb_log_suppress_check Unexecuted instantiation: ne_uname.c:flb_log_suppress_check Unexecuted instantiation: ne_stat.c:flb_log_suppress_check Unexecuted instantiation: ne_vmstat.c:flb_log_suppress_check Unexecuted instantiation: ne_netdev.c:flb_log_suppress_check Unexecuted instantiation: ne_netstat.c:flb_log_suppress_check Unexecuted instantiation: ne_sockstat.c:flb_log_suppress_check Unexecuted instantiation: ne_time.c:flb_log_suppress_check Unexecuted instantiation: ne_loadavg.c:flb_log_suppress_check Unexecuted instantiation: ne_filefd.c:flb_log_suppress_check Unexecuted instantiation: ne_textfile.c:flb_log_suppress_check Unexecuted instantiation: ne_processes.c:flb_log_suppress_check Unexecuted instantiation: ne_nvme.c:flb_log_suppress_check Unexecuted instantiation: ne_hwmon.c:flb_log_suppress_check Unexecuted instantiation: ne_utils.c:flb_log_suppress_check Unexecuted instantiation: ne_config.c:flb_log_suppress_check Unexecuted instantiation: ne_systemd.c:flb_log_suppress_check Unexecuted instantiation: ne_thermalzone.c:flb_log_suppress_check Unexecuted instantiation: kubernetes_events.c:flb_log_suppress_check Unexecuted instantiation: kubernetes_events_conf.c:flb_log_suppress_check Unexecuted instantiation: in_kafka.c:flb_log_suppress_check Unexecuted instantiation: metrics.c:flb_log_suppress_check Unexecuted instantiation: prom_scrape.c:flb_log_suppress_check Unexecuted instantiation: prometheus_textfile.c:flb_log_suppress_check Unexecuted instantiation: emitter.c:flb_log_suppress_check Unexecuted instantiation: in_dummy.c:flb_log_suppress_check http.c:flb_log_suppress_check Line | Count | Source | 152 | 210 | { | 153 | 210 | int ret; | 154 | 210 | size_t size; | 155 | 210 | va_list args; | 156 | 210 | char buf[4096]; | 157 | 210 | struct flb_worker *w; | 158 | | | 159 | 210 | if (log_suppress_interval <= 0) { | 160 | 210 | return FLB_FALSE; | 161 | 210 | } | 162 | | | 163 | 210 | va_start(args, fmt); | 164 | 0 | size = vsnprintf(buf, sizeof(buf) - 1, fmt, args); | 165 | 0 | va_end(args); | 166 | |
| 167 | 0 | if (size == -1) { | 168 | 0 | return FLB_FALSE; | 169 | 0 | } | 170 | | | 171 | 0 | w = flb_worker_get(); | 172 | 0 | if (!w) { | 173 | 0 | return FLB_FALSE; | 174 | 0 | } | 175 | | | 176 | 0 | ret = flb_log_cache_check_suppress(w->log_cache, buf, size); | 177 | 0 | return ret; | 178 | 0 | } |
Unexecuted instantiation: http_conn.c:flb_log_suppress_check Unexecuted instantiation: http_prot.c:flb_log_suppress_check Unexecuted instantiation: http_config.c:flb_log_suppress_check Unexecuted instantiation: statsd.c:flb_log_suppress_check Unexecuted instantiation: opentelemetry.c:flb_log_suppress_check Unexecuted instantiation: opentelemetry_prot.c:flb_log_suppress_check Unexecuted instantiation: opentelemetry_logs.c:flb_log_suppress_check Unexecuted instantiation: opentelemetry_traces.c:flb_log_suppress_check Unexecuted instantiation: opentelemetry_config.c:flb_log_suppress_check Unexecuted instantiation: in_elasticsearch.c:flb_log_suppress_check Unexecuted instantiation: in_elasticsearch_config.c:flb_log_suppress_check Unexecuted instantiation: in_elasticsearch_bulk_conn.c:flb_log_suppress_check Unexecuted instantiation: in_elasticsearch_bulk_prot.c:flb_log_suppress_check Unexecuted instantiation: in_calyptia_fleet.c:flb_log_suppress_check Unexecuted instantiation: splunk.c:flb_log_suppress_check Unexecuted instantiation: splunk_conn.c:flb_log_suppress_check Unexecuted instantiation: splunk_prot.c:flb_log_suppress_check Unexecuted instantiation: splunk_config.c:flb_log_suppress_check Unexecuted instantiation: prom_rw.c:flb_log_suppress_check Unexecuted instantiation: prom_rw_prot.c:flb_log_suppress_check Unexecuted instantiation: prom_rw_conn.c:flb_log_suppress_check Unexecuted instantiation: prom_rw_config.c:flb_log_suppress_check Unexecuted instantiation: event_type.c:flb_log_suppress_check Unexecuted instantiation: sb.c:flb_log_suppress_check Unexecuted instantiation: nginx.c:flb_log_suppress_check Unexecuted instantiation: udp.c:flb_log_suppress_check Unexecuted instantiation: udp_conn.c:flb_log_suppress_check Unexecuted instantiation: udp_config.c:flb_log_suppress_check Unexecuted instantiation: in_exec_wasi.c:flb_log_suppress_check in_lib.c:flb_log_suppress_check Line | Count | Source | 152 | 562 | { | 153 | 562 | int ret; | 154 | 562 | size_t size; | 155 | 562 | va_list args; | 156 | 562 | char buf[4096]; | 157 | 562 | struct flb_worker *w; | 158 | | | 159 | 562 | if (log_suppress_interval <= 0) { | 160 | 436 | return FLB_FALSE; | 161 | 436 | } | 162 | | | 163 | 562 | va_start(args, fmt); | 164 | 126 | size = vsnprintf(buf, sizeof(buf) - 1, fmt, args); | 165 | 126 | va_end(args); | 166 | | | 167 | 126 | if (size == -1) { | 168 | 0 | return FLB_FALSE; | 169 | 0 | } | 170 | | | 171 | 126 | w = flb_worker_get(); | 172 | 126 | if (!w) { | 173 | 0 | return FLB_FALSE; | 174 | 0 | } | 175 | | | 176 | 126 | ret = flb_log_cache_check_suppress(w->log_cache, buf, size); | 177 | 126 | return ret; | 178 | 126 | } |
Unexecuted instantiation: cm.c:flb_log_suppress_check Unexecuted instantiation: cm_config.c:flb_log_suppress_check Unexecuted instantiation: cm_logs.c:flb_log_suppress_check Unexecuted instantiation: cm_metrics.c:flb_log_suppress_check Unexecuted instantiation: cm_traces.c:flb_log_suppress_check Unexecuted instantiation: cm_opentelemetry.c:flb_log_suppress_check Unexecuted instantiation: cm_utils.c:flb_log_suppress_check Unexecuted instantiation: labels.c:flb_log_suppress_check Unexecuted instantiation: selector.c:flb_log_suppress_check Unexecuted instantiation: otel_envelope.c:flb_log_suppress_check Unexecuted instantiation: sampling.c:flb_log_suppress_check Unexecuted instantiation: sampling_conf.c:flb_log_suppress_check Unexecuted instantiation: sampling_span_registry.c:flb_log_suppress_check Unexecuted instantiation: sampling_conditions.c:flb_log_suppress_check Unexecuted instantiation: sampling_cond_status_codes.c:flb_log_suppress_check Unexecuted instantiation: sampling_cond_latency.c:flb_log_suppress_check Unexecuted instantiation: sampling_cond_attribute.c:flb_log_suppress_check Unexecuted instantiation: sampling_cond_string_attribute.c:flb_log_suppress_check Unexecuted instantiation: sampling_cond_numeric_attribute.c:flb_log_suppress_check Unexecuted instantiation: sampling_cond_boolean_attribute.c:flb_log_suppress_check Unexecuted instantiation: sampling_cond_span_count.c:flb_log_suppress_check Unexecuted instantiation: sampling_cond_trace_state.c:flb_log_suppress_check Unexecuted instantiation: sampling_tail.c:flb_log_suppress_check Unexecuted instantiation: sampling_probabilistic.c:flb_log_suppress_check Unexecuted instantiation: sql.c:flb_log_suppress_check Unexecuted instantiation: sql_config.c:flb_log_suppress_check Unexecuted instantiation: azure_blob.c:flb_log_suppress_check Unexecuted instantiation: azure_blob_uri.c:flb_log_suppress_check Unexecuted instantiation: azure_blob_conf.c:flb_log_suppress_check Unexecuted instantiation: azure_blob_http.c:flb_log_suppress_check Unexecuted instantiation: azure_blob_db.c:flb_log_suppress_check Unexecuted instantiation: azure_blob_appendblob.c:flb_log_suppress_check Unexecuted instantiation: azure_blob_blockblob.c:flb_log_suppress_check Unexecuted instantiation: azure_blob_store.c:flb_log_suppress_check Unexecuted instantiation: azure_logs_ingestion.c:flb_log_suppress_check Unexecuted instantiation: azure_logs_ingestion_conf.c:flb_log_suppress_check Unexecuted instantiation: azure_kusto.c:flb_log_suppress_check Unexecuted instantiation: azure_kusto_conf.c:flb_log_suppress_check Unexecuted instantiation: azure_kusto_ingest.c:flb_log_suppress_check Unexecuted instantiation: azure_msiauth.c:flb_log_suppress_check Unexecuted instantiation: azure_kusto_store.c:flb_log_suppress_check Unexecuted instantiation: exit.c:flb_log_suppress_check Unexecuted instantiation: http_conf.c:flb_log_suppress_check Unexecuted instantiation: logdna.c:flb_log_suppress_check Unexecuted instantiation: opensearch.c:flb_log_suppress_check Unexecuted instantiation: os_conf.c:flb_log_suppress_check Unexecuted instantiation: oci_logan.c:flb_log_suppress_check Unexecuted instantiation: oci_logan_conf.c:flb_log_suppress_check Unexecuted instantiation: skywalking.c:flb_log_suppress_check Unexecuted instantiation: stdout.c:flb_log_suppress_check Unexecuted instantiation: udp_conf.c:flb_log_suppress_check Unexecuted instantiation: td.c:flb_log_suppress_check Unexecuted instantiation: td_http.c:flb_log_suppress_check Unexecuted instantiation: td_config.c:flb_log_suppress_check Unexecuted instantiation: out_lib.c:flb_log_suppress_check Unexecuted instantiation: websocket.c:flb_log_suppress_check Unexecuted instantiation: websocket_conf.c:flb_log_suppress_check Unexecuted instantiation: cloudwatch_logs.c:flb_log_suppress_check Unexecuted instantiation: cloudwatch_api.c:flb_log_suppress_check Unexecuted instantiation: firehose.c:flb_log_suppress_check Unexecuted instantiation: firehose_api.c:flb_log_suppress_check Unexecuted instantiation: kinesis.c:flb_log_suppress_check Unexecuted instantiation: kinesis_api.c:flb_log_suppress_check Unexecuted instantiation: opentelemetry_utils.c:flb_log_suppress_check Unexecuted instantiation: opentelemetry_conf.c:flb_log_suppress_check Unexecuted instantiation: prom.c:flb_log_suppress_check Unexecuted instantiation: prom_http.c:flb_log_suppress_check Unexecuted instantiation: remote_write.c:flb_log_suppress_check Unexecuted instantiation: remote_write_conf.c:flb_log_suppress_check Unexecuted instantiation: s3.c:flb_log_suppress_check Unexecuted instantiation: s3_store.c:flb_log_suppress_check Unexecuted instantiation: s3_multipart.c:flb_log_suppress_check Unexecuted instantiation: vivo.c:flb_log_suppress_check Unexecuted instantiation: vivo_http.c:flb_log_suppress_check Unexecuted instantiation: vivo_stream.c:flb_log_suppress_check Unexecuted instantiation: chronicle.c:flb_log_suppress_check Unexecuted instantiation: chronicle_conf.c:flb_log_suppress_check Unexecuted instantiation: alter_size.c:flb_log_suppress_check Unexecuted instantiation: aws.c:flb_log_suppress_check Unexecuted instantiation: checklist.c:flb_log_suppress_check Unexecuted instantiation: ecs.c:flb_log_suppress_check Unexecuted instantiation: filter_modifier.c:flb_log_suppress_check Unexecuted instantiation: sysinfo.c:flb_log_suppress_check Unexecuted instantiation: sysinfo_platform.c:flb_log_suppress_check Unexecuted instantiation: throttle.c:flb_log_suppress_check Unexecuted instantiation: window.c:flb_log_suppress_check Unexecuted instantiation: type_converter.c:flb_log_suppress_check Unexecuted instantiation: kubernetes.c:flb_log_suppress_check Unexecuted instantiation: kubernetes_aws.c:flb_log_suppress_check Unexecuted instantiation: kube_conf.c:flb_log_suppress_check Unexecuted instantiation: kube_meta.c:flb_log_suppress_check Unexecuted instantiation: kube_regex.c:flb_log_suppress_check Unexecuted instantiation: kube_property.c:flb_log_suppress_check Unexecuted instantiation: modify.c:flb_log_suppress_check Unexecuted instantiation: ml.c:flb_log_suppress_check Unexecuted instantiation: ml_concat.c:flb_log_suppress_check Unexecuted instantiation: nest.c:flb_log_suppress_check Unexecuted instantiation: filter_parser.c:flb_log_suppress_check Unexecuted instantiation: expect.c:flb_log_suppress_check Unexecuted instantiation: grep.c:flb_log_suppress_check Unexecuted instantiation: rewrite_tag.c:flb_log_suppress_check Unexecuted instantiation: log_to_metrics.c:flb_log_suppress_check Unexecuted instantiation: geoip2.c:flb_log_suppress_check Unexecuted instantiation: nightfall.c:flb_log_suppress_check Unexecuted instantiation: nightfall_api.c:flb_log_suppress_check Unexecuted instantiation: filter_wasm.c:flb_log_suppress_check Unexecuted instantiation: register.c:flb_log_suppress_check Unexecuted instantiation: health.c:flb_log_suppress_check Unexecuted instantiation: trace.c:flb_log_suppress_check Unexecuted instantiation: uptime.c:flb_log_suppress_check Unexecuted instantiation: storage.c:flb_log_suppress_check Unexecuted instantiation: plugins.c:flb_log_suppress_check Unexecuted instantiation: reload.c:flb_log_suppress_check Unexecuted instantiation: flb_input_metric.c:flb_log_suppress_check Unexecuted instantiation: flb_input_trace.c:flb_log_suppress_check Unexecuted instantiation: flb_input_profiles.c:flb_log_suppress_check Unexecuted instantiation: flb_input_blob.c:flb_log_suppress_check Unexecuted instantiation: flb_fstore.c:flb_log_suppress_check Unexecuted instantiation: flb_typecast.c:flb_log_suppress_check Unexecuted instantiation: flb_blob_db.c:flb_log_suppress_check Unexecuted instantiation: flb_opentelemetry_logs.c:flb_log_suppress_check Unexecuted instantiation: flb_opentelemetry_traces.c:flb_log_suppress_check Unexecuted instantiation: flb_opentelemetry_utils.c:flb_log_suppress_check Unexecuted instantiation: flb_oauth2.c:flb_log_suppress_check Unexecuted instantiation: flb_kafka.c:flb_log_suppress_check Unexecuted instantiation: flb_sqldb.c:flb_log_suppress_check Unexecuted instantiation: flb_http_server.c:flb_log_suppress_check Unexecuted instantiation: go.c:flb_log_suppress_check Unexecuted instantiation: flb_aws_compress.c:flb_log_suppress_check Unexecuted instantiation: flb_aws_util.c:flb_log_suppress_check Unexecuted instantiation: flb_aws_credentials.c:flb_log_suppress_check Unexecuted instantiation: flb_aws_credentials_sts.c:flb_log_suppress_check Unexecuted instantiation: flb_aws_credentials_ec2.c:flb_log_suppress_check Unexecuted instantiation: flb_aws_imds.c:flb_log_suppress_check Unexecuted instantiation: flb_aws_credentials_http.c:flb_log_suppress_check Unexecuted instantiation: flb_aws_credentials_profile.c:flb_log_suppress_check Unexecuted instantiation: flb_aws_credentials_process.c:flb_log_suppress_check Unexecuted instantiation: sql_parser.c:flb_log_suppress_check Unexecuted instantiation: processor-sql-parser_lex.c:flb_log_suppress_check Unexecuted instantiation: processor-sql_parser.c:flb_log_suppress_check Unexecuted instantiation: sql_expression.c:flb_log_suppress_check Unexecuted instantiation: flb_wasm.c:flb_log_suppress_check Unexecuted instantiation: flb_json_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: multiline_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: config_random_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: parser_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: aws_util_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: pack_json_state_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: input_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: aws_credentials_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: http_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: filter_stdout_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: signv4_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: record_ac_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: parse_ltsv_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: utils_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: parse_logfmt_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: engine_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: parse_json_fuzzer.c:flb_log_suppress_check Unexecuted instantiation: config_fuzzer.c:flb_log_suppress_check |
179 | | |
180 | | |
181 | | /* Logging macros */ |
182 | | #define flb_helper(fmt, ...) \ |
183 | 0 | flb_log_print(FLB_LOG_HELP, NULL, 0, fmt, ##__VA_ARGS__) |
184 | | |
185 | | #define flb_error(fmt, ...) \ |
186 | 248k | if (flb_log_check(FLB_LOG_ERROR)) \ |
187 | 248k | flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__) |
188 | | |
189 | | #define flb_error_is_truncated(fmt, ...) \ |
190 | | flb_log_check(FLB_LOG_ERROR) \ |
191 | | ? flb_log_is_truncated(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__) \ |
192 | | : 0 |
193 | | |
194 | | #define flb_warn(fmt, ...) \ |
195 | 127k | if (flb_log_check(FLB_LOG_WARN)) \ |
196 | 127k | flb_log_print(FLB_LOG_WARN, NULL, 0, fmt, ##__VA_ARGS__) |
197 | | |
198 | | #define flb_warn_is_truncated(fmt, ... ) \ |
199 | | flb_log_check(FLB_LOG_WARN) \ |
200 | | ? flb_log_is_truncated(FLB_LOG_WARN, NULL, 0, fmt, ##__VA_ARGS__) \ |
201 | | : 0 |
202 | | |
203 | | #define flb_info(fmt, ...) \ |
204 | 225k | if (flb_log_check(FLB_LOG_INFO)) \ |
205 | 225k | flb_log_print(FLB_LOG_INFO, NULL, 0, fmt, ##__VA_ARGS__) |
206 | | |
207 | | #define flb_info_is_truncated(fmt, ...) \ |
208 | | flb_log_check(FLB_LOG_INFO) \ |
209 | | ? flb_log_is_truncated(FLB_LOG_INFO, NULL, 0, fmt, ##__VA_ARGS__) \ |
210 | | : 0 |
211 | | |
212 | | #define flb_debug(fmt, ...) \ |
213 | 209M | if (flb_log_check(FLB_LOG_DEBUG)) \ |
214 | 209M | flb_log_print(FLB_LOG_DEBUG, NULL, 0, fmt, ##__VA_ARGS__) |
215 | | |
216 | | #define flb_debug_is_truncated(fmt, ... ) \ |
217 | | flb_log_check(FLB_LOG_DEBUG) \ |
218 | | ? flb_log_is_truncated(FLB_LOG_DEBUG, NULL, 0, fmt, ##__VA_ARGS__) \ |
219 | | : 0 |
220 | | |
221 | | #define flb_idebug(fmt, ...) \ |
222 | | flb_log_print(FLB_LOG_IDEBUG, NULL, 0, fmt, ##__VA_ARGS__) |
223 | | |
224 | | #define flb_idebug_is_truncated(fmt, ...) \ |
225 | | flb_log_is_truncated(FLB_LOG_IDEBUG, NULL, 0, fmt, ##__VA_ARGS__) |
226 | | |
227 | | #ifdef FLB_HAVE_TRACE |
228 | | #define flb_trace(fmt, ...) \ |
229 | | if (flb_log_check(FLB_LOG_TRACE)) \ |
230 | | flb_log_print(FLB_LOG_TRACE, __FILE__, __LINE__, \ |
231 | | fmt, ##__VA_ARGS__) |
232 | | |
233 | | #define flb_trace_is_truncated(fmt, ...) \ |
234 | | flb_log_check(FLB_LOG_TRACE) \ |
235 | | ? flb_log_is_truncated(FLB_LOG_TRACE, __FILE__, __LINE__, \ |
236 | | fmt, ##__VA_ARGS__) \ |
237 | | : 0 |
238 | | #else |
239 | 42.4k | #define flb_trace(fmt, ...) do {} while(0) |
240 | | #define flb_trace_is_truncated(fmt, ...) do {} while(0) |
241 | | #endif |
242 | | |
243 | | int flb_log_worker_init(struct flb_worker *worker); |
244 | | int flb_log_worker_destroy(struct flb_worker *worker); |
245 | | int flb_errno_print(int errnum, const char *file, int line); |
246 | | #ifdef WIN32 |
247 | | int flb_wsa_get_last_error_print(int errnum, const char *file, int line); |
248 | | #endif |
249 | | |
250 | | #ifdef __FLB_FILENAME__ |
251 | 6.39k | #define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__) |
252 | | #ifdef WIN32 |
253 | | #define flb_wsa_get_last_error() flb_wsa_get_last_error_print(WSAGetLastError(), __FLB_FILENAME__, __LINE__) |
254 | | #endif |
255 | | #else |
256 | | #define flb_errno() flb_errno_print(errno, __FILE__, __LINE__) |
257 | | #ifdef WIN32 |
258 | | #define flb_wsa_get_last_error() flb_wsa_get_last_error_print(WSAGetLastError(), __FILE__, __LINE__) |
259 | | #endif |
260 | | #endif |
261 | | |
262 | | #endif |