2025-11-25 06:00 ftp://ftp.de.debian.org/debian/pool/main/b/bpftune/bpftune_0.0~git20250723.5966387.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 73 73 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: bpftune-0.0~git20250723.5966387/sample_tuner/sample_tuner.bpf.c:32:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tuner_id [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/sample_tuner/sample_tuner.c:31:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sample [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/sample_tuner/sample_tuner.c:42:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/sample_tuner/sample_tuner.bpf.c:40:48: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] bpftune-0.0~git20250723.5966387/src/bpftune.c:90:2: error: There is an unknown macro here somewhere. Configuration is required. If bpftune_for_each_tuner is a macro then please configure it. [unknownMacro] bpftune-0.0~git20250723.5966387/src/ip_frag_tuner.bpf.c:54:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fqdir [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/ip_frag_tuner.bpf.c:66:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _skb_refdst [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/neigh_table_tuner.bpf.c:28:1: error: There is an unknown macro here somewhere. Configuration is required. If SEC is a macro then please configure it. [unknownMacro] bpftune-0.0~git20250723.5966387/src/ip_frag_tuner.c:35:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ip_frag [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/ip_frag_tuner.c:44:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/ip_frag_tuner.c:64:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/ip_frag_tuner.bpf.c:55:51: error: Uninitialized variable: mib [legacyUninitvar] bpftune-0.0~git20250723.5966387/src/ip_frag_tuner.bpf.c:84:31: error: Uninitialized variable: mib [legacyUninitvar] bpftune-0.0~git20250723.5966387/src/neigh_table_tuner.c:66:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable neigh_table [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/neigh_table_tuner.c:76:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/neigh_table_tuner.c:82:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/net_buffer_tuner.bpf.c:42:1: error: There is an unknown macro here somewhere. Configuration is required. If SEC is a macro then please configure it. [unknownMacro] bpftune-0.0~git20250723.5966387/src/neigh_table_tuner.c:142:1: style: Label 'nla_put_failure' is not used. [unusedLabel] bpftune-0.0~git20250723.5966387/src/netns_tuner.bpf.c:29:1: error: There is an unknown macro here somewhere. Configuration is required. If SEC is a macro then please configure it. [unknownMacro] bpftune-0.0~git20250723.5966387/src/netns_tuner.c:92:3: error: There is an unknown macro here somewhere. Configuration is required. If bpftune_for_each_tuner is a macro then please configure it. [unknownMacro] bpftune-0.0~git20250723.5966387/src/net_buffer_tuner.c:51:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable net_buffer [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/net_buffer_tuner.c:77:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/net_buffer_tuner.c:97:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/libbpftune.c:1758:4: error: There is an unknown macro here somewhere. Configuration is required. If bpftune_for_each_tuner is a macro then please configure it. [unknownMacro] bpftune-0.0~git20250723.5966387/src/route_table_tuner.bpf.c:30:1: error: There is an unknown macro here somewhere. Configuration is required. If SEC is a macro then please configure it. [unknownMacro] bpftune-0.0~git20250723.5966387/src/probe.bpf.c:37:1: error: There is an unknown macro here somewhere. Configuration is required. If SEC is a macro then please configure it. [unknownMacro] bpftune-0.0~git20250723.5966387/src/sysctl_tuner.bpf.c:26:1: error: There is an unknown macro here somewhere. Configuration is required. If SEC is a macro then please configure it. [unknownMacro] bpftune-0.0~git20250723.5966387/src/route_table_tuner.c:44:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable route_table [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/route_table_tuner.c:54:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/route_table_tuner.c:66:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/sysctl_tuner.c:37:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sysctl [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/sysctl_tuner.c:50:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/sysctl_tuner.c:76:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_conn_tuner.bpf.c:83:1: error: There is an unknown macro here somewhere. Configuration is required. If SEC is a macro then please configure it. [unknownMacro] bpftune-0.0~git20250723.5966387/src/tcp_buffer_tuner.bpf.c:52:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable net [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_buffer_tuner.bpf.c:190:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable net [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_buffer_tuner.bpf.c:245:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable net [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_buffer_tuner.bpf.c:317:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable net [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_buffer_tuner.bpf.c:340:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BPF_TCP_ESTABLISHED [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/udp_buffer_tuner.bpf.c:223:1: error: There is an unknown macro here somewhere. Configuration is required. If SEC is a macro then please configure it. [unknownMacro] bpftune-0.0~git20250723.5966387/src/tcp_conn_tuner.c:69:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EEXIST [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_conn_tuner.c:119:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tcp_conn [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_conn_tuner.c:175:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_conn_tuner.c:184:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_buffer_tuner.c:102:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_buffer_tuner.c:133:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_buffer_tuner.c:177:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tcp_buffer [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_buffer_tuner.c:206:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_buffer_tuner.c:289:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/udp_buffer_tuner.c:68:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/udp_buffer_tuner.c:99:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/udp_buffer_tuner.c:141:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BPFTUNE_SUPPORT_NORMAL [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/udp_buffer_tuner.c:181:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/udp_buffer_tuner.c:205:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_buffer_tuner.bpf.c:170:52: style: Parameter 'sk' can be declared as pointer to const [constParameterPointer] bpftune-0.0~git20250723.5966387/src/tcp_buffer_tuner.bpf.c:338:44: style: Parameter 'sk' can be declared as pointer to const [constParameterPointer] bpftune-0.0~git20250723.5966387/src/udp_buffer_tuner.c:87:8: style: Variable 'mzone' can be declared as pointer to const [constVariablePointer] bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.bpf.c:33:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tuner_id [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.bpf.c:51:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tuner_id [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/test/conn_bomb.c:39:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/test/conn_bomb.c:81:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/test/conn_bomb.c:238:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.c:70:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable strategy [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.c:81:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] bpftune-0.0~git20250723.5966387/src/tcp_buffer_tuner.c:121:8: style: Variable 'mzone' can be declared as pointer to const [constVariablePointer] bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.c:26:48: style: Parameter 'tuner' can be declared as pointer to const. However it seems that 'evaluate_A' is a callback function, if 'tuner' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.c:39:14: note: You might need to cast the function pointer here bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.c:26:48: note: Parameter 'tuner' can be declared as pointer to const bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.c:26:81: style: Parameter 'strategy' can be declared as pointer to const. However it seems that 'evaluate_A' is a callback function, if 'strategy' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.c:39:14: note: You might need to cast the function pointer here bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.c:26:81: note: Parameter 'strategy' can be declared as pointer to const bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.c:44:48: style: Parameter 'tuner' can be declared as pointer to const. However it seems that 'evaluate_B' is a callback function, if 'tuner' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.c:57:27: note: You might need to cast the function pointer here bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.c:44:48: note: Parameter 'tuner' can be declared as pointer to const bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.c:44:81: style: Parameter 'strategy' can be declared as pointer to const. However it seems that 'evaluate_B' is a callback function, if 'strategy' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.c:57:27: note: You might need to cast the function pointer here bpftune-0.0~git20250723.5966387/test/strategy/strategy_tuner.c:44:81: note: Parameter 'strategy' can be declared as pointer to const bpftune-0.0~git20250723.5966387/test/conn_bomb.c:92:4: warning:inconclusive: The buffer 'msgbuf' may not be null-terminated after the call to strncpy(). [terminateStrncpy] bpftune-0.0~git20250723.5966387/test/conn_bomb.c:232:17: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] bpftune-0.0~git20250723.5966387/test/conn_bomb.c:231:14: note: Assuming allocation function fails bpftune-0.0~git20250723.5966387/test/conn_bomb.c:231:14: note: Assignment 'buf=calloc(1,buflen)', assigned value is 0 bpftune-0.0~git20250723.5966387/test/conn_bomb.c:232:17: note: Null pointer dereference bpftune-0.0~git20250723.5966387/test/conn_bomb.c:68:13: style: Variable 'j' is assigned a value that is never used. [unreadVariable] bpftune-0.0~git20250723.5966387/test/conn_bomb.c:227:6: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] diff: DONE