AI Slop Code RIsk Monitor

iovisor/bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more

8.4 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for iovisor/bcc, a C project with 22,698 GitHub stars. SynthScan examined 169,602 lines of code across 863 source files, recording 977 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 8.4 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

8.4
Adjusted Signal
8.4
Raw Pattern Score
100%
Time Factor
2026-10-02
Last Push
22.7K
Stars
C
Language
169.6K
Lines of Code
863
Files
977
Pattern Hits
2026-10-12
Scan Date
0.14
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 13.6/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 486 finding(s).

Hallucinated Dependency & Supply Chain Risk 15.2/100 · LOW

Are imports declared and package/API names verified? 379 finding(s).

Agent Over-Engineering Ratio 11.4/100 · LOW

Are wrappers, guards, and repeated structures necessary? 178 finding(s).

PR Review Velocity Impact 38.0/100 · MEDIUM

Which changes need focused human review? 977 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 118MEDIUM 27LOW 832

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 977 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block353 hits · 342 pts
SeverityFileLineSnippetContext
LOWtools/kvmexit.py1#!/usr/bin/env pythonCOMMENT
LOWtools/kvmexit.py21#COMMENT
LOWtools/wakeuptime.py1#!/usr/bin/env pythonCOMMENT
LOWtools/tcptop.py1#!/usr/bin/env pythonCOMMENT
LOWtools/tcpretrans.py1#!/usr/bin/env pythonCOMMENT
LOWtools/solisten.py1#!/usr/bin/env pythonCOMMENT
LOWtools/runqlen.py1#!/usr/bin/env pythonCOMMENT
LOWtools/runqlen.py61# struct load_weight load;COMMENT
LOWtools/cachestat.py1#!/usr/bin/env pythonCOMMENT
LOWtools/trace.py1#!/usr/bin/env pythonCOMMENT
LOWtools/funcslower.py1#!/usr/bin/env pythonCOMMENT
LOWtools/funcslower.py161 u64 ip = PT_REGS_IP(ctx);COMMENT
LOWtools/vfscount.py1#!/usr/bin/env pythonCOMMENT
LOWtools/reset-trace.sh1#!/bin/bashCOMMENT
LOWtools/drsnoop.py1#!/usr/bin/env pythonCOMMENT
LOWtools/bitesize.py1#!/usr/bin/env pythonCOMMENT
LOWtools/pidpersec.py1#!/usr/bin/env pythonCOMMENT
LOWtools/funclatency.py1#!/usr/bin/env pythonCOMMENT
LOWtools/tcpaccept.py1#!/usr/bin/env pythonCOMMENT
LOWtools/numasched.py1#!/usr/bin/env pythonCOMMENT
LOWtools/sofdsnoop.py1#!/usr/bin/env pythonCOMMENT
LOWtools/bpflist.py1#!/usr/bin/env pythonCOMMENT
LOWtools/deadlock.py1#!/usr/bin/env pythonCOMMENT
LOWtools/deadlock.py21#COMMENT
LOWtools/swapin.py1#!/usr/bin/env pythonCOMMENT
LOWtools/mptcpify.py1#!/usr/bin/env pythonCOMMENT
LOWtools/cpudist.py1#!/usr/bin/env pythonCOMMENT
LOWtools/biotop.py1#!/usr/bin/env pythonCOMMENT
LOWtools/dcstat.py1#!/usr/bin/env pythonCOMMENT
LOWtools/tcptracer.py1#!/usr/bin/env pythonCOMMENT
LOWtools/tcptracer.py41 help="trace IPv6 family only")COMMENT
LOWtools/biosnoop.py1#!/usr/bin/env pythonCOMMENT
LOWtools/threadsnoop.py1#!/usr/bin/env pythonCOMMENT
LOWtools/virtiostat.py1#!/usr/bin/env pythonCOMMENT
LOWtools/rdmaucma.py1#!/usr/bin/pythonCOMMENT
LOWtools/mysqld_qslower.py1#!/usr/bin/env pythonCOMMENT
LOWtools/vfsstat.py1#!/usr/bin/env pythonCOMMENT
LOWtools/ext4slower.py1#!/usr/bin/env pythonCOMMENT
LOWtools/profile.py1#!/usr/bin/env pythonCOMMENT
LOWtools/profile.py201 u64 ip = PT_REGS_IP(&ctx->regs);COMMENT
LOWtools/offwaketime.py1#!/usr/bin/env pythonCOMMENT
LOWtools/ttysnoop.py1#!/usr/bin/env pythonCOMMENT
LOWtools/biolatency.py1#!/usr/bin/env pythonCOMMENT
LOWtools/criticalstat.py1#!/usr/bin/env pythonCOMMENT
LOWtools/softirqslower.py1#!/usr/bin/env pythonCOMMENT
LOWtools/mdflush.py1#!/usr/bin/env pythonCOMMENT
LOWtools/wqlat.py1#!/usr/bin/env pythonCOMMENT
LOWtools/f2fsslower.py1#!/usr/bin/pythonCOMMENT
LOWtools/tcpconnect.py1#!/usr/bin/env pythonCOMMENT
LOWtools/zfsdist.py1#!/usr/bin/env pythonCOMMENT
LOWtools/tcpstates.py1#!/usr/bin/env pythonCOMMENT
LOWtools/capable.py1#!/usr/bin/env pythonCOMMENT
LOWtools/tcpcong.py1#!/usr/bin/env pythonCOMMENT
LOWtools/oomkill.py1#!/usr/bin/env pythonCOMMENT
LOWtools/statsnoop.py1#!/usr/bin/env pythonCOMMENT
LOWtools/runqslower.py1#!/usr/bin/env pythonCOMMENT
LOWtools/runqslower.py21# finish_task_switch() with either raw tracepoints (if supported) or kprobesCOMMENT
LOWtools/shmsnoop.py1#!/usr/bin/env pythonCOMMENT
LOWtools/softirqs.py1#!/usr/bin/env pythonCOMMENT
LOWtools/filetop.py1#!/usr/bin/env pythonCOMMENT
293 more matches not shown…
Unused Imports329 hits · 329 pts
SeverityFileLineSnippetContext
LOWtools/kvmexit.py31CODE
LOWtools/kvmexit.py37CODE
LOWtools/wakeuptime.py15CODE
LOWtools/tcptop.py28CODE
LOWtools/tcpretrans.py18CODE
LOWtools/solisten.py20CODE
LOWtools/runqlen.py22CODE
LOWtools/cachestat.py22CODE
LOWtools/cachestat.py27CODE
LOWtools/cachestat.py28CODE
LOWtools/trace.py14CODE
LOWtools/trace.py21CODE
LOWtools/funcslower.py24CODE
LOWtools/klockstat.py8CODE
LOWtools/klockstat.py9CODE
LOWtools/klockstat.py11CODE
LOWtools/klockstat.py13CODE
LOWtools/klockstat.py14CODE
LOWtools/klockstat.py14CODE
LOWtools/vfscount.py14CODE
LOWtools/drsnoop.py17CODE
LOWtools/funclatency.py26CODE
LOWtools/tcpaccept.py18CODE
LOWtools/numasched.py17CODE
LOWtools/numasched.py21CODE
LOWtools/numasched.py21CODE
LOWtools/numasched.py21CODE
LOWtools/numasched.py22CODE
LOWtools/numasched.py23CODE
LOWtools/sofdsnoop.py15CODE
LOWtools/bpflist.py15CODE
LOWtools/bpflist.py15CODE
LOWtools/bpflist.py19CODE
LOWtools/deadlock.py47CODE
LOWtools/deadlock.py47CODE
LOWtools/deadlock.py47CODE
LOWtools/deadlock.py47CODE
LOWtools/swapin.py18CODE
LOWtools/mptcpify.py17CODE
LOWtools/biopattern.py12CODE
LOWtools/cpudist.py19CODE
LOWtools/biotop.py19CODE
LOWtools/dcstat.py18CODE
LOWtools/nfsdist.py11CODE
LOWtools/tcptracer.py17CODE
LOWtools/biosnoop.py19CODE
LOWtools/threadsnoop.py15CODE
LOWtools/virtiostat.py14CODE
LOWtools/rdmaucma.py14CODE
LOWtools/rdmaucma.py19CODE
LOWtools/mysqld_qslower.py18CODE
LOWtools/vfsstat.py18CODE
LOWtools/vfsstat.py22CODE
LOWtools/ext4slower.py28CODE
LOWtools/profile.py31CODE
LOWtools/offwaketime.py15CODE
LOWtools/ttysnoop.py19CODE
LOWtools/biolatency.py16CODE
LOWtools/biolatency.py20CODE
LOWtools/criticalstat.py15CODE
269 more matches not shown…
Cross-Language Confusion50 hits · 230 pts
SeverityFileLineSnippetContext
HIGH⚡tools/mptcpify.py69 if ((family == AF_INET || family == AF_INET6) &&CODE
HIGH⚡tools/mptcpify.py71 (!protocol || protocol == IPPROTO_TCP) &&CODE
HIGH⚡tools/mptcpify.py72 (mode && *mode == 0 || support_apps.lookup(&target)))CODE
HIGHtools/cpudist.py199 if (ns_pid_val && ns_tgid_val) {CODE
HIGHtools/tcptracer.py140 if (saddr == 0 || daddr == 0 || sport == 0 || dport == 0) {CODE
HIGHtools/tcptracer.py171 if (saddr == 0 || daddr == 0 || sport == 0 || dport == 0) {CODE
HIGHtools/tcptracer.py293 if (state != TCP_ESTABLISHED && state != TCP_CLOSE) {CODE
HIGHtools/tcptracer.py499 if (evt4.saddr != 0 && evt4.daddr != 0 &&CODE
HIGHtools/tcptracer.py500 evt4.sport != 0 && evt4.dport != 0) {CODE
HIGHtools/tcptracer.py524 if (evt6.saddr != 0 && evt6.daddr != 0 &&CODE
HIGHtools/tcptracer.py525 evt6.sport != 0 && evt6.dport != 0) {CODE
HIGHtools/criticalstat.py147 if (stdp && stdp->active) {CODE
HIGHtools/tcpcong.py441 'if (lport < %d || lport > %d) { return 0; }'STRING
HIGHtools/tcpcong.py448 'if (dport < %d || dport > %d) { return 0; }'STRING
HIGHtools/runqslower.py92 if (FILTER_PID || FILTER_TGID || pid == 0)CODE
HIGHtools/filetop.py119 if (d_name.len == 0 || TYPE_FILTER)CODE
HIGHtools/tcplife.py165 if (state == TCP_SYN_SENT || state == TCP_LAST_ACK) {CODE
HIGHtools/tcplife.py294 if (args->newstate == TCP_SYN_SENT || args->newstate == TCP_LAST_ACK) {CODE
HIGHtools/inject.py175 if (p->conds_met < 1 || p->conds_met >= %s)CODE
HIGHtools/inject.py227 if (%s == 1 && %s && overridden < %s) {CODE
HIGHtools/inject.py242 if (p->conds_met == %s && %s && overridden < %s) {CODE
HIGHtools/exitsnoop.py102 if (FILTER_PID || FILTER_EXIT_CODE) { return 0; }CODE
HIGHtools/exitsnoop.py124 filter_pid = "!(task->tgid == %s && task->pid == task->tgid)" % Global.args.pidSTRING
HIGHtools/filegone.py89 if (s_name.len == 0 || d_name.len == 0)CODE
HIGHtools/fileslower.py105 if (de->d_name.len == 0 || TYPE_FILTER)CODE
HIGHtools/hardirqs.py180 if (tsp == 0 || namep == 0) {CODE
HIGHtools/runqlat.py92 if (FILTER || pid == 0)CODE
HIGHtools/runqlat.py160 if (!(FILTER || pid == 0)) {CODE
HIGHtools/runqlat.py168 if (FILTER || pid == 0)CODE
HIGHtools/runqlat.py214 if (!(FILTER || pid == 0)) {CODE
HIGHtools/runqlat.py222 if (FILTER || pid == 0)CODE
HIGHtools/memleak.py459 size_filter = "if (size < %d || size > %d) return 0;" % \STRING
HIGHtools/bindsnoop.py205 if (ret != 0 && ignore_errors) {CODE
HIGHtools/opensnoop.py478 if (filepart_length < 0 || filepart_length > NAME_MAX)CODE
HIGHtools/opensnoop.py484 if (dentry == parent_dentry || dentry == mnt_root) {CODE
HIGHtools/old/filegone.py95 if (s_name.len == 0 || d_name.len == 0)CODE
HIGHtools/old/hardirqs.py111 if (tsp == 0 || descp == 0) {CODE
HIGHtools/old/memleak.py220 size_filter = "if (size < %d || size > %d) return 0;" % \STRING
HIGHtools/old/killsnoop.py63 if (tpidp == 0 || sigp == 0) {CODE
HIGHtests/python/test_clang.py1320 if (!disk || disk->major != 5 || disk->first_minor != 6)CODE
HIGHtests/python/test_queuestack.py24 stack.push(ct.c_uint64(i))STRING
HIGHtests/python/test_queuestack.py27 stack.push(ct.c_uint(10))STRING
HIGHtests/python/test_queuestack.py41 stack.push(ct.c_uint64(i))STRING
HIGHtests/python/test_queuestack.py57 queue.push(ct.c_uint64(i))STRING
HIGHtests/python/test_queuestack.py60 queue.push(ct.c_uint(10))STRING
HIGHtests/python/test_queuestack.py74 queue.push(ct.c_uint64(i))STRING
HIGHexamples/tracing/nflatency.py108 if (!s || s->ts == 0) {CODE
HIGHexamples/tracing/dddos.py60 if(rcv_packets_nb_ptr != 0 && rcv_packets_ts_ptr != 0){CODE
HIGHexamples/networking/vlan_learning/vlan_learning.py69 "for i in {1..8}; do curl 172.16.1.5 -o /dev/null; sleep 1; done"]CODE
HIGHexamples/networking/tunnel_monitor/main.py43 self.processes.append(NSPopen(host[0].nl.netns, cmd, stdout=null))CODE
Empty Error Handlers40 hits · 200 pts
SeverityFileLineSnippetContext
HIGHtools/tcpretrans.py392except BaseException:CODE
HIGHtools/vfscount.py55except KeyboardInterrupt:CODE
HIGHtools/ppchcalls.py242except ValueError:CODE
HIGHtools/tcpconnect.py549except KeyboardInterrupt:CODE
HIGHtools/execsnoop.py309except IOError:CODE
HIGHtools/execsnoop.py353except Exception:CODE
HIGHtools/syscount.py40except ValueError:CODE
HIGHtools/mountsnoop.py807except KeyError:CODE
HIGHtools/bindsnoop.py508except KeyboardInterrupt:CODE
HIGHtools/killsnoop.py183except:CODE
HIGHtools/lib/ustat.py306except KeyboardInterrupt:CODE
HIGHtools/lib/ustat.py75except Exception:CODE
HIGHtests/python/simulation.py120except:CODE
HIGHtests/python/test_clang.py372except:CODE
HIGHtests/python/test_map_in_map.py71except KeyError:CODE
HIGHtests/python/test_map_in_map.py81except KeyError:CODE
HIGHtests/python/test_map_in_map.py144except KeyError:CODE
HIGHtests/python/test_map_in_map.py154except KeyError:CODE
HIGHtests/python/test_histogram.py27except: passCODE
HIGHtests/python/test_histogram.py33except: passCODE
HIGHtests/python/test_histogram.py54except: passCODE
HIGHtests/python/test_histogram.py56except: passCODE
HIGHtests/python/test_stackid.py35except: passCODE
HIGHtests/python/test_stackid.py74except: passCODE
HIGHexamples/local_storage/inode_storage.py27except KeyboardInterrupt:CODE
HIGHexamples/local_storage/task_storage.py40except KeyboardInterrupt:CODE
HIGHexamples/tracing/strlen_count.py51except KeyboardInterrupt:CODE
HIGHexamples/tracing/strlen_hist_ifunc.py125except KeyboardInterrupt:CODE
HIGHexamples/tracing/mallocstacks.py62except KeyboardInterrupt:CODE
HIGHexamples/tracing/strlen_hist.py58except KeyboardInterrupt:CODE
HIGHexamples/networking/simulation.py120except:CODE
HIGHexamples/networking/tc_perf_event.py85except KeyboardInterrupt:CODE
HIGHexamples/networking/vlan_learning/simulation.py120except:CODE
HIGHexamples/networking/distributed_bridge/simulation.py120except:CODE
HIGHexamples/networking/neighbor_sharing/simulation.py120except:CODE
HIGHexamples/networking/tcp_mon_block/src/tcp_mon_block.py148except:CODE
HIGHexamples/networking/tunnel_monitor/simulation.py120except:CODE
HIGHsrc/python/bcc/__init__.py1628except IOError:CODE
HIGHsrc/python/bcc/table.py397except KeyError:CODE
HIGHsrc/python/bcc/table.py404except KeyError:CODE
Cross-File Repetition22 hits · 110 pts
SeverityFileLineSnippetContext
HIGHtools/nfsdist.py0examples: ./xfsdist # show operation latency as a histogram ./xfsdist -p 181 # trace pid 181 only ./xfsdist 1 10 # printSTRING
HIGHtools/zfsdist.py0examples: ./xfsdist # show operation latency as a histogram ./xfsdist -p 181 # trace pid 181 only ./xfsdist 1 10 # printSTRING
HIGHtools/ext4dist.py0examples: ./xfsdist # show operation latency as a histogram ./xfsdist -p 181 # trace pid 181 only ./xfsdist 1 10 # printSTRING
HIGHtools/btrfsdist.py0examples: ./xfsdist # show operation latency as a histogram ./xfsdist -p 181 # trace pid 181 only ./xfsdist 1 10 # printSTRING
HIGHtools/xfsdist.py0examples: ./xfsdist # show operation latency as a histogram ./xfsdist -p 181 # trace pid 181 only ./xfsdist 1 10 # printSTRING
HIGHtools/nfsdist.py0#include <uapi/linux/ptrace.h> #include <linux/fs.h> #include <linux/sched.h> #define op_name_len 8 typedef struct dist_STRING
HIGHtools/zfsdist.py0#include <uapi/linux/ptrace.h> #include <linux/fs.h> #include <linux/sched.h> #define op_name_len 8 typedef struct dist_STRING
HIGHtools/xfsdist.py0#include <uapi/linux/ptrace.h> #include <linux/fs.h> #include <linux/sched.h> #define op_name_len 8 typedef struct dist_STRING
HIGHtools/ext4slower.py0examples: ./zfsslower # trace operations slower than 10 ms (default) ./zfsslower 1 # trace operations slower than 1 ms .STRING
HIGHtools/f2fsslower.py0examples: ./zfsslower # trace operations slower than 10 ms (default) ./zfsslower 1 # trace operations slower than 1 ms .STRING
HIGHtools/xfsslower.py0examples: ./zfsslower # trace operations slower than 10 ms (default) ./zfsslower 1 # trace operations slower than 1 ms .STRING
HIGHtools/zfsslower.py0examples: ./zfsslower # trace operations slower than 10 ms (default) ./zfsslower 1 # trace operations slower than 1 ms .STRING
HIGHtests/python/simulation.py0helper class for controlling multiple namespaces. inherit from this class and setup your namespaces.STRING
HIGHexamples/networking/simulation.py0helper class for controlling multiple namespaces. inherit from this class and setup your namespaces.STRING
HIGHexamples/networking/vlan_learning/simulation.py0helper class for controlling multiple namespaces. inherit from this class and setup your namespaces.STRING
HIGHexamples/networking/distributed_bridge/simulation.py0helper class for controlling multiple namespaces. inherit from this class and setup your namespaces.STRING
HIGHexamples/networking/neighbor_sharing/simulation.py0helper class for controlling multiple namespaces. inherit from this class and setup your namespaces.STRING
HIGHexamples/networking/tunnel_monitor/simulation.py0helper class for controlling multiple namespaces. inherit from this class and setup your namespaces.STRING
HIGHdocs/reference_guide.md0int hello(void *ctx) { bpf_trace_printk("hello, world!\\n"); return 0; }STRING
HIGHdocs/tutorial_bcc_python_developer.md0int hello(void *ctx) { bpf_trace_printk("hello, world!\\n"); return 0; }STRING
HIGHexamples/tracing/trace_fields.py0int hello(void *ctx) { bpf_trace_printk("hello, world!\\n"); return 0; }STRING
HIGHexamples/tracing/hello_fields.py0int hello(void *ctx) { bpf_trace_printk("hello, world!\\n"); return 0; }STRING
Excessive Try-Catch Wrapping46 hits · 42 pts
SeverityFileLineSnippetContext
LOWtools/kvmexit.py364except Exception as e:STRING
MEDIUMtools/funclatency.py80 print("Error: " + error)STRING
LOWtools/deadlock.py507 except Exception as e:STRING
LOWtools/deadlock.py518 except Exception as e:STRING
MEDIUMtools/ppchcalls.py293 print("Error: hcall '%s' not found. Exiting." % args.hcall)CODE
LOWtools/ppchcalls.py451 except Exception:STRING
MEDIUMtools/ppchcalls.py239def handle_errno(errstr):CODE
LOWtools/threadsnoop.py59except Exception:STRING
LOWtools/profile.py333except Exception:STRING
LOWtools/criticalstat.py325 except Exception:STRING
MEDIUMtools/criticalstat.py299def print_event(cpu, data, size):CODE
MEDIUMtools/tcpconnect.py353 print("Error: you may not specify -d/--dns with -c/--count.")STRING
MEDIUMtools/tcpconnect.py486 print("Error: The python packages dnslib and cachetools are required "STRING
MEDIUMtools/filetop.py186 print(f'Error accessing directory {args.directory}: {e}')STRING
LOWtools/funccount.py309 except Exception:STRING
LOWtools/llcstat.py98except Exception:STRING
LOWtools/exitsnoop.py215 except Exception as e:CODE
LOWtools/execsnoop.py353 except Exception:STRING
LOWtools/fileslower.py205except Exception:STRING
LOWtools/fileslower.py212except Exception:STRING
MEDIUMtools/syscount.py104 print("Error: syscall '%s' not found. Exiting." % args.syscall)CODE
LOWtools/syscount.py265 except Exception:STRING
MEDIUMtools/syscount.py37def handle_errno(errstr):CODE
LOWtools/biolatpcts.py125except Exception:STRING
MEDIUMtools/funcinterval.py70 print("Error: " + error)STRING
LOWtools/memleak.py494 except Exception:STRING
LOWtools/stackcount.py386 except Exception:STRING
LOWtools/lib/ustat.py75 except Exception:CODE
LOWtests/python/test_attach_perf_event.py60 except Exception:STRING
LOWtests/python/test_attach_perf_event.py106 except Exception:STRING
LOWtests/python/test_attach_perf_event.py151 except Exception:STRING
LOWtests/python/test_clang.py869 except Exception:STRING
LOWtests/python/test_bpf_log.py51 except Exception:STRING
LOWtests/python/test_bpf_log.py61 except Exception:STRING
MEDIUMexamples/tracing/lbr.py132 print('Error tracepoint or kretprobe is required')STRING
MEDIUMexamples/tracing/lbr.py141 print('Error binary path is invalid')STRING
LOWexamples/networking/tcp_mon_block/src/web_server.py23 except Exception as e:CODE
MEDIUMexamples/networking/tcp_mon_block/src/web_server.py20def public_ip():CODE
LOW.github/scripts/check_links.py30 except Exception as e:CODE
MEDIUMsrc/python/bcc/__init__.py1831 print("Error adding module to build sym cache"+str(e))CODE
LOWsrc/python/bcc/__init__.py443 except Exception as e:CODE
LOWsrc/python/bcc/__init__.py451 except Exception as e:CODE
LOWsrc/python/bcc/__init__.py1598 except Exception as e:CODE
LOWsrc/python/bcc/__init__.py1613 except Exception as e:CODE
LOWsrc/python/bcc/__init__.py1830 except Exception as e:CODE
LOWsrc/python/bcc/syscall.py467except Exception as e:CODE
Hyper-Verbose Identifiers52 hits · 34 pts
SeverityFileLineSnippetContext
LOWtools/kvmexit.py443def extract_pcpu_kvm_exit_reason_count(args):STRING
LOWtools/runqlen.py81def check_runnable_weight_field():STRING
LOWtools/trace.py420 def _generate_usdt_filter_read(self):STRING
LOWtools/deadlock.py139def strongly_connected_components(G):CODE
LOWtools/statsnoop.py171def try_attach_syscall_probes(syscall):STRING
LOWtools/cpuunclaimed.py123def check_runnable_weight_field():STRING
LOWtools/argdist.py113 def _generate_retprobe_prefix(self):STRING
LOWtools/argdist.py298 def _generate_usdt_arg_assignment(self, i):STRING
LOWtools/argdist.py310 def _generate_field_assignment(self, i):STRING
LOWtools/memleak.py562def print_outstanding_combined():STRING
LOWtools/tplist.py66def print_usdt_argument_details(location):CODE
LOWtests/python/test_attach_perf_event.py17 def test_attach_raw_event_powerpc(self):CODE
LOWtests/python/test_map_batch_ops.py64 def test_lookup_and_delete_batch_all_keys(self):CODE
LOWtests/python/test_map_batch_ops.py76 def test_lookup_batch_all_keys(self):CODE
LOWtests/python/test_map_batch_ops.py84 def test_delete_batch_all_keys(self):CODE
LOWtests/python/test_map_batch_ops.py105 def test_update_batch_all_keys(self):CODE
LOWtests/python/test_array.py76 def test_perf_buffer_for_each_cpu(self):STRING
LOWtests/python/test_clang.py438 def test_probe_simple_member_assign(self):CODE
LOWtests/python/test_clang.py451 def test_probe_member_expr_deref(self):CODE
LOWtests/python/test_clang.py58 def test_load_cgroup_sockopt_prog(self):STRING
LOWtests/python/test_clang.py272 def test_consecutive_probe_read(self):STRING
LOWtests/python/test_clang.py307 def test_nested_probe_read_deref(self):STRING
LOWtests/python/test_clang.py361 def test_probe_unnamed_union_deref(self):STRING
LOWtests/python/test_clang.py492 def test_probe_read_nested_deref(self):STRING
LOWtests/python/test_clang.py771 def test_ext_ptr_maps_reverse(self):STRING
LOWtests/python/test_clang.py800 def test_ext_ptr_maps_indirect(self):STRING
LOWtests/python/test_clang.py830 def test_bpf_dins_pkt_rewrite(self):STRING
LOWtests/python/test_clang.py963 def test_invalid_noninline_call(self):STRING
LOWtests/python/test_clang.py1041 def test_probe_read_tracepoint_context(self):STRING
LOWtests/python/test_clang.py1051 def test_probe_read_kprobe_ctx(self):STRING
LOWtests/python/test_clang.py1064 def test_probe_read_ctx_array(self):STRING
LOWtests/python/test_clang.py1110 def test_probe_read_multiple_return(self):STRING
LOWtests/python/test_clang.py1130 def test_probe_read_return_expr(self):STRING
LOWtests/python/test_clang.py1145 def test_probe_read_return_call(self):STRING
LOWtests/python/test_clang.py1159 def test_no_probe_read_addrof(self):STRING
LOWtests/python/test_clang.py1264 def test_arbitrary_increment_simple(self):STRING
LOWtests/python/test_map_in_map.py92 def test_hash_table_custom_key(self):STRING
LOWtests/python/test_license.py75 def test_gpl_compatible_macro(self):STRING
LOWtests/python/test_license.py79 def test_proprietary_words_macro(self):STRING
LOWtests/python/test_license.py99 def test_proprietary_fail_macro(self):STRING
LOWtests/python/test_license.py104 def test_proprietary_cflags_fail(self):STRING
LOWtests/python/test_disassembler.py154 def _assert_equal_ignore_fd_id(s1, s2):CODE
LOWtests/python/test_usdt_argument.py12 def test_rip_relative_deref_ident(self):CODE
LOWexamples/tracing/strlen_hist_ifunc.py46def get_indirect_function_sym(module, symname):STRING
LOWsrc/python/bcc/containers.py15def _cgroup_filter_func_writer(cgroupmap):CODE
LOWsrc/python/bcc/containers.py34def _mntns_filter_func_writer(mntnsmap):STRING
LOWsrc/python/bcc/__init__.py929 def detach_kprobe_event_by_fn(self, ev_name, fn_name):CODE
LOWsrc/python/bcc/__init__.py1271 def support_raw_tracepoint_in_module():CODE
LOWsrc/python/bcc/__init__.py1390 def get_user_functions_and_addresses(name, sym_re):CODE
LOWsrc/python/bcc/table.py453 def _sanity_check_keys_values(self, keys=None, values=None):CODE
LOWsrc/python/bcc/table.py548 def items_lookup_and_delete_batch(self):CODE
LOWsrc/python/bcc/table.py563 def _items_lookup_and_optionally_delete_batch(self, delete=True):CODE
Deep Nesting32 hits · 30 pts
SeverityFileLineSnippetContext
LOWtools/trace.py386CODE
LOWtools/deadlock.py139CODE
LOWtools/deadlock.py194CODE
LOWtools/deadlock.py389CODE
LOWtools/inject.py379CODE
LOWtools/inject.py464CODE
LOWtools/nfsslower.py384CODE
LOWtools/funccount.py37CODE
LOWtools/funccount.py89CODE
LOWtools/funccount.py118CODE
LOWtools/execsnoop.py303CODE
LOWtools/execsnoop.py314CODE
LOWtools/cachetop.py143CODE
LOWtools/dirtop.py144CODE
LOWtools/argdist.py514CODE
LOWtools/biolatpcts.py215CODE
LOWtools/mountsnoop.py683CODE
LOWtools/stackcount.py30CODE
LOWtools/stackcount.py315CODE
LOWtools/opensnoop.py562CODE
LOWtests/python/test_debuginfo.py12CODE
LOWexamples/networking/http_filter/http-parse-complete.py38CODE
LOWexamples/networking/distributed_bridge/tunnel_mesh.py41CODE
LOWexamples/networking/tunnel_monitor/main.py29CODE
LOWsrc/python/bcc/disassembler.py234CODE
LOWsrc/python/bcc/disassembler.py355CODE
LOWsrc/python/bcc/__init__.py345CODE
LOWsrc/python/bcc/__init__.py603CODE
LOWsrc/python/bcc/__init__.py719CODE
LOWsrc/python/bcc/__init__.py1038CODE
LOWsrc/python/bcc/__init__.py1540CODE
LOWsrc/python/bcc/table.py273CODE
Docstring Block Structure6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHsrc/python/bcc/table.py419Allocate keys and/or values arrays. Useful for in items_*_batch. Args: alloc_k (bool): True to alloSTRING
HIGHsrc/python/bcc/table.py454Check if the given keys or values have the right type and size. Args: keys (ct.Array): keys array tSTRING
HIGHsrc/python/bcc/table.py484Look up all the key-value pairs in the map. Args: None Yields: tuple: The tupleSTRING
HIGHsrc/python/bcc/table.py498Delete the key-value pairs related to the keys given as parameters. Note that if no key are given, it is faster STRING
HIGHsrc/python/bcc/table.py549Look up and delete all the key-value pairs in the map. Args: None Yields: tupleSTRING
HIGHsrc/python/bcc/table.py564Look up and optionally delete all the key-value pairs in the map. Args: delete (bool) : look up andSTRING
Structural Annotation Overuse15 hits · 25 pts
SeverityFileLineSnippetContext
LOWtools/tcptop.py13# WARNING: This traces all send/receives at the TCP level, and while itCOMMENT
LOWtools/funcslower.py10# WARNING: This tool traces function calls by instrumenting the entry andCOMMENT
LOWtools/ext4slower.py13# WARNING: This adds low-overhead instrumentation to these ext4 operations,COMMENT
LOWtools/f2fsslower.py14# WARNING: This adds low-overhead instrumentation to these f2fs operations,COMMENT
LOWtools/nfsslower.py15# WARNING: This adds low-overhead instrumentation to these NFS operations,COMMENT
LOWtools/xfsslower.py13# WARNING: This adds low-overhead instrumentation to these XFS operations,COMMENT
LOWtools/fileslower.py20# WARNING: This traces VFS reads and writes, which can be extremely frequent,COMMENT
LOWtools/tcpsubnet.py14# WARNING: This traces all send at the TCP level, and while itCOMMENT
LOWtools/btrfsslower.py13# WARNING: This adds low-overhead instrumentation to these btrfs operations,COMMENT
LOWtools/zfsslower.py13# WARNING: This adds low-overhead instrumentation to these ZFS operations,COMMENT
LOWtools/old/tcptop.py12# WARNING: This traces all send/receives at the TCP level, and while itCOMMENT
LOW⚡.github/prompts/review-pr.prompt.md5## Step 1: Identify Changed File CategoriesCOMMENT
LOW⚡.github/prompts/review-pr.prompt.md13## Step 2: General Checks (All PRs)COMMENT
LOW⚡.github/prompts/review-pr.prompt.md19## Step 3: Category-Specific ChecksCOMMENT
LOW.github/prompts/review-pr.prompt.md59## Step 4: Output FormatCOMMENT
Self-Referential Comments7 hits · 13 pts
SeverityFileLineSnippetContext
MEDIUMtools/runqlen.py82 # Define the bpf program for checking purposeSTRING
MEDIUMtools/tcpaccept.py97# The following code uses kprobes to instrument inet_csk_accept().STRING
MEDIUMtools/tcptracer.py11# The following code should be replaced, and simplified, when static TCP probesCOMMENT
MEDIUMtools/cpuunclaimed.py124 # Define the bpf program for checking purposeSTRING
MEDIUMtools/execsnoop.py108 # Define the bpf program for checking purposeSTRING
MEDIUM…les/networking/neighbor_sharing/tc_neighbor_sharing.py29 # Create the wan namespace, and attach an ingress filter for throttlingCOMMENT
MEDIUMsrc/python/bcc/table.py667 # The above code assumes that self.Key._fields_[1][0] holds theCOMMENT
AI Structural Patterns14 hits · 13 pts
SeverityFileLineSnippetContext
LOWtests/python/simulation.py23CODE
LOWtests/python/simulation.py105CODE
LOWexamples/networking/simulation.py23CODE
LOWexamples/networking/simulation.py105CODE
LOWexamples/networking/vlan_learning/simulation.py23CODE
LOWexamples/networking/vlan_learning/simulation.py105CODE
LOWexamples/networking/distributed_bridge/simulation.py23CODE
LOWexamples/networking/distributed_bridge/simulation.py105CODE
LOWexamples/networking/neighbor_sharing/simulation.py23CODE
LOWexamples/networking/neighbor_sharing/simulation.py105CODE
LOWexamples/networking/tunnel_monitor/simulation.py23CODE
LOWexamples/networking/tunnel_monitor/simulation.py105CODE
LOWsrc/python/bcc/__init__.py411CODE
LOWsrc/python/bcc/__init__.py1323CODE
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMtools/exitsnoop.py182# =============================COMMENT
MEDIUMtools/exitsnoop.py184# =============================COMMENT
MEDIUMtools/exitsnoop.py245# =============================COMMENT
MEDIUMtools/exitsnoop.py247# =============================COMMENT
AI Slop Vocabulary3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtools/killsnoop.py184 pass # not fatal error, just use the default valueSTRING
MEDIUMexamples/tracing/stack_buildid_example.py77# libc.so and ping are added here so that any symbols pertaining toSTRING
LOWexamples/networking/vlan_filter/data-plane-tracing.py94#get interface ip address. In case ip is not set then just add 127.0.0.1.COMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/bcc-test.yml241# To debug weird issues, you can add this step to be able to SSH to the test environmentCOMMENT
Redundant / Tautological Comments2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/kvmexit.py359 # Check if kvm module is loadedSTRING
LOWscripts/docker/auth.sh15# Set this to match the name of the bot user on quay.ioCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWexamples/networking/tcp_mon_block/src/tcp_mon_block.py9# Usage:COMMENT