Repository Analysis

iovisor/bcc

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

7.2 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of iovisor/bcc, a C project with 22,547 GitHub stars. SynthScan v2.0 examined 169,001 lines of code across 859 source files, recording 935 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 7.2 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

7.2
Adjusted Score
7.2
Raw Score
100%
Time Factor
2026-07-02
Last Push
22.5K
Stars
C
Language
169.0K
Lines of Code
859
Files
935
Pattern Hits
2026-07-14
Scan Date
0.09
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 78MEDIUM 27LOW 830

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 935 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block352 hits · 341 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
292 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
HIGHtools/mptcpify.py69 if ((family == AF_INET || family == AF_INET6) &&CODE
HIGHtools/mptcpify.py71 (!protocol || protocol == IPPROTO_TCP) &&CODE
HIGHtools/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
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 Identifiers51 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
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
AI Structural Patterns14 hits · 14 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
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
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.py155 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