AI Slop Code Risk Monitor

torvalds/linux

SlopCodeMonitor badge for torvalds/linux Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Linux kernel source tree

3.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for torvalds/linux, a C project with 253,910 GitHub stars. SynthScan examined 35,535,747 lines of code across 75182 source files, recording 138967 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 3.2 (Low 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.

3.2
Adjusted Signal
3.2
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
253.9K
Stars
C
Language
35.5M
Lines of Code
75.2K
Files
139.0K
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 14.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 0.3/100 · LOW

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

PR Review Velocity Impact 18.0/100 · LOW

Which changes need focused human review? 138967 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 21HIGH 181MEDIUM 456LOW 138309

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 138967 distinct pattern matches across 25 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 Block136683 hits · 110619 pts
SeverityFileLineSnippetContext
LOW.rustfmt.toml1edition = "2021"COMMENT
LOWinit/initramfs_internal.h1// SPDX-License-Identifier: GPL-2.0COMMENT
LOWinit/do_mounts_rd.c1// SPDX-License-Identifier: GPL-2.0COMMENT
LOWinit/do_mounts.c1// SPDX-License-Identifier: GPL-2.0-onlyCOMMENT
LOWinit/initramfs.c1// SPDX-License-Identifier: GPL-2.0COMMENT
LOWinit/initramfs_test.c1// SPDX-License-Identifier: GPL-2.0COMMENT
LOWinit/init_task.c1// SPDX-License-Identifier: GPL-2.0COMMENT
LOWinit/init_task.c241 },COMMENT
LOWinit/main.c21#include <linux/kernel.h>COMMENT
LOWinit/main.c41#include <linux/kernel_stat.h>COMMENT
LOWinit/main.c61#include <linux/delayacct.h>COMMENT
LOWinit/main.c81#include <linux/async.h>COMMENT
LOWinit/main.c101#include <linux/kcsan.h>COMMENT
LOWinit/do_mounts.h1/* SPDX-License-Identifier: GPL-2.0 */COMMENT
LOWcrypto/aes.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/md4.c21 *COMMENT
LOWcrypto/internal.h1/* SPDX-License-Identifier: GPL-2.0-or-later */COMMENT
LOWcrypto/aead.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/pcrypt.c1// SPDX-License-Identifier: GPL-2.0-onlyCOMMENT
LOWcrypto/zstd.c1// SPDX-License-Identifier: GPL-2.0-onlyCOMMENT
LOWcrypto/xts.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/tcrypt.c21COMMENT
LOWcrypto/rsa-pkcs1pad.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/gcm.c1// SPDX-License-Identifier: GPL-2.0-onlyCOMMENT
LOWcrypto/ecc.c21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYCOMMENT
LOWcrypto/ccm.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/algapi.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/af_alg.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/testmgr.c21#include <crypto/skcipher.h>COMMENT
LOWcrypto/authencesn.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/aegis128-core.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/crypto_user.c1// SPDX-License-Identifier: GPL-2.0-onlyCOMMENT
LOWcrypto/algboss.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/scompress.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/cts.c41 */COMMENT
LOWcrypto/akcipher.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/acompress.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/wp512.c21 */COMMENT
LOWcrypto/ripemd.h21#define RMD_K2 0x5a827999ULCOMMENT
LOWcrypto/authenc.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/crypto_engine.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/chacha20poly1305.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/camellia_generic.c301/* key constants */COMMENT
LOWcrypto/rmd160.c21COMMENT
LOWcrypto/algif_skcipher.c21 * After the completion of the crypto operation, the RX SGL and the cipherCOMMENT
LOWcrypto/rng.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/asymmetric_keys/x509_cert_parser.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/asymmetric_keys/public_key.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/asymmetric_keys/pkcs7_parser.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/asymmetric_keys/pkcs7_trust.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/asymmetric_keys/x509_public_key.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/asymmetric_keys/pkcs8_parser.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/asymmetric_keys/verify_pefile.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/asymmetric_keys/asymmetric_type.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/asymmetric_keys/pkcs7_verify.c1// SPDX-License-Identifier: GPL-2.0-or-laterCOMMENT
LOWcrypto/krb5/rfc3961_simplified.c61COMMENT
LOWDocumentation/conf.py341# The reST default role (used for this markup: `text`) to use for allCOMMENT
LOW…ation/trace/postprocess/trace-pagealloc-postprocess.pl1#!/usr/bin/env perlCOMMENT
LOW…entation/trace/postprocess/trace-vmscan-postprocess.pl1#!/usr/bin/env perlCOMMENT
LOWDocumentation/admin-guide/aoe/udev.txt1# These rules tell udev what device nodes to create for aoe support.COMMENT
136623 more matches not shown…
Decorative Section Separators226 hits · 795 pts
SeverityFileLineSnippetContext
MEDIUMDocumentation/conf.py60# -------------------------------------------------COMMENT
MEDIUMDocumentation/sphinx/kernel_include.py82# ==============================================================================COMMENT
MEDIUMDocumentation/sphinx/kernel_include.py84# ==============================================================================COMMENT
MEDIUMDocumentation/sphinx/kernel_include.py116# ==============================================================================COMMENT
MEDIUMDocumentation/sphinx/kernel_include.py403# ==============================================================================COMMENT
MEDIUMDocumentation/sphinx/kernel_include.py513# ==============================================================================COMMENT
MEDIUM⚡Documentation/sphinx/rstFlatTable.py42# ==============================================================================COMMENT
MEDIUM⚡Documentation/sphinx/rstFlatTable.py44# ==============================================================================COMMENT
MEDIUM⚡Documentation/sphinx/rstFlatTable.py51# ==============================================================================COMMENT
MEDIUM⚡Documentation/sphinx/rstFlatTable.py53# ==============================================================================COMMENT
MEDIUM⚡Documentation/sphinx/rstFlatTable.py57# ==============================================================================COMMENT
MEDIUM⚡Documentation/sphinx/rstFlatTable.py59# ==============================================================================COMMENT
MEDIUM⚡Documentation/sphinx/rstFlatTable.py71# ==============================================================================COMMENT
MEDIUM⚡Documentation/sphinx/rstFlatTable.py73# ==============================================================================COMMENT
MEDIUM⚡Documentation/sphinx/rstFlatTable.py82# ==============================================================================COMMENT
MEDIUM⚡Documentation/sphinx/rstFlatTable.py84# ==============================================================================COMMENT
MEDIUM⚡Documentation/sphinx/rstFlatTable.py94# ==============================================================================COMMENT
MEDIUM⚡Documentation/sphinx/rstFlatTable.py97# ==============================================================================COMMENT
MEDIUM⚡Documentation/sphinx/rstFlatTable.py99# ==============================================================================COMMENT
MEDIUM⚡Documentation/sphinx/rstFlatTable.py101# ==============================================================================COMMENT
MEDIUMDocumentation/sphinx/rstFlatTable.py135# ==============================================================================COMMENT
MEDIUMDocumentation/sphinx/rstFlatTable.py137# ==============================================================================COMMENT
MEDIUMDocumentation/sphinx/kfigure.py72# -------------COMMENT
MEDIUMDocumentation/sphinx/kfigure.py109# -------------------------------------------COMMENT
MEDIUMDocumentation/sphinx/kfigure.py235# --------------------------COMMENT
MEDIUMDocumentation/sphinx/kfigure.py434# ---------------------COMMENT
MEDIUMDocumentation/sphinx/kfigure.py471# ---------------------COMMENT
MEDIUMDocumentation/sphinx/kfigure.py509# ---------------------COMMENT
MEDIUM…ation/devicetree/bindings/net/ethernet-controller.yaml271# ===========COMMENT
MEDIUM…on/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml65# --------------------COMMENT
MEDIUM…on/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml83# ==========================COMMENT
MEDIUM…on/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml197# --------------------COMMENT
MEDIUM…devicetree/bindings/remoteproc/ti,omap-remoteproc.yaml88# --------------------COMMENT
MEDIUM…on/devicetree/bindings/remoteproc/ti,k3-dsp-rproc.yaml75# --------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd71828-regulator.yaml71 # --------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd71828-regulator.yaml73 # --------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd71828-regulator.yaml75 # --------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd71837-regulator.yaml75 # ----------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd71837-regulator.yaml77 # ----------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd71837-regulator.yaml79 # ----------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd71837-regulator.yaml81 # ----------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd71837-regulator.yaml83 # ----------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd71847-regulator.yaml74 # ----------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd71847-regulator.yaml76 # ----------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd71847-regulator.yaml78 # ----------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd72720-regulator.yaml55 # --------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd72720-regulator.yaml57 # --------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd72720-regulator.yaml59 # --------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd72720-regulator.yaml105 # --------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd72720-regulator.yaml107 # --------------------------------------------------------------COMMENT
MEDIUM⚡…icetree/bindings/regulator/rohm,bd72720-regulator.yaml109 # --------------------------------------------------------------COMMENT
MEDIUM…umentation/devicetree/bindings/sound/renesas,rsnd.yaml283 # --------------------COMMENT
MEDIUM…umentation/devicetree/bindings/sound/renesas,rsnd.yaml285 # --------------------COMMENT
MEDIUM…umentation/devicetree/bindings/sound/renesas,rsnd.yaml340 # --------------------COMMENT
MEDIUM…umentation/devicetree/bindings/sound/renesas,rsnd.yaml342 # --------------------COMMENT
MEDIUM…cumentation/devicetree/bindings/sound/simple-card.yaml278# --------------------COMMENT
MEDIUM…cumentation/devicetree/bindings/sound/simple-card.yaml280# --------------------COMMENT
MEDIUM…cumentation/devicetree/bindings/sound/simple-card.yaml307# --------------------COMMENT
MEDIUM…cumentation/devicetree/bindings/sound/simple-card.yaml309# --------------------COMMENT
MEDIUM…cumentation/devicetree/bindings/sound/simple-card.yaml350# --------------------COMMENT
166 more matches not shown…
Empty Error Handlers138 hits · 688 pts
SeverityFileLineSnippetContext
HIGHDocumentation/conf.py299except Exception:CODE
HIGHDocumentation/sphinx/kernel_include.py420except AttributeError:CODE
HIGHDocumentation/sphinx/rstFlatTable.py256except: # pylint: disable=W0702CODE
HIGHDocumentation/sphinx/rstFlatTable.py264except: # pylint: disable=W0702CODE
HIGHDocumentation/sphinx/kerneldoc.py129except ValueError:CODE
HIGHtools/power/pm-graph/bootgraph.py1065except:CODE
HIGHtools/power/pm-graph/sleepgraph.py763except:CODE
HIGHtools/crypto/ccp/test_dbc.py172except PermissionError:CODE
HIGHtools/crypto/ccp/test_dbc.py176except BlockingIOError:CODE
HIGHtools/crypto/ccp/test_dbc.py180except PermissionError:CODE
HIGHtools/crypto/ccp/test_dbc.py219except OSError:CODE
HIGHtools/net/ynl/pyynl/cli.py327except KeyboardInterrupt:CODE
HIGHtools/net/ynl/pyynl/cli.py329except BrokenPipeError:CODE
HIGHtools/net/ynl/pyynl/ynl_gen_c.py2209except Exception:CODE
HIGHtools/net/ynl/pyynl/ynl_gen_c.py1220except KeyError:CODE
HIGHtools/cgroup/memcg_slabinfo.py142except:CODE
HIGHtools/cgroup/memcg_slabinfo.py155except FaultError:CODE
HIGHtools/cgroup/iocost_monitor.py240except:CODE
HIGHtools/testing/selftests/net/bpf_offload.py508except ValueError:CODE
HIGHtools/testing/selftests/net/lib/py/netns.py94except OSError:CODE
HIGHtools/testing/selftests/net/lib/py/netns.py69except OSError:CODE
HIGHtools/testing/selftests/drivers/net/psp.py1074except NlError:CODE
HIGHtools/testing/selftests/drivers/net/gro_lib.py303except KsftXfailEx:CODE
HIGHtools/testing/selftests/drivers/net/so_txtime.py83except CmdExitFailure:CODE
HIGHtools/testing/selftests/drivers/net/hds.py90except NlError as e:CODE
HIGHtools/testing/selftests/drivers/net/hw/rss_ctx.py279except CmdExitFailure:CODE
HIGHtools/testing/selftests/drivers/net/hw/rss_ctx.py737except CmdExitFailure:CODE
HIGHtools/testing/selftests/drivers/net/hw/rss_ctx.py291except CmdExitFailure:CODE
HIGHtools/testing/selftests/drivers/net/hw/rss_ctx.py312except CmdExitFailure:CODE
HIGHtools/testing/selftests/drivers/net/hw/tso.py36except OSError:CODE
HIGHtools/testing/selftests/drivers/net/hw/tso.py49except OSError:CODE
HIGH…ols/testing/selftests/drivers/net/hw/rss_flow_label.py34except FileNotFoundError:CODE
HIGH…ols/testing/selftests/drivers/net/hw/rss_flow_label.py128except CmdExitFailure:CODE
HIGHtools/testing/selftests/drivers/net/lib/py/env.py74except (CmdExitFailure, FileNotFoundError):CODE
HIGHtools/testing/selftests/tc-testing/tdc_config.py39except ImportError as ie:CODE
HIGHtools/testing/selftests/tc-testing/tdc_config.py44except NameError as ne:CODE
HIGHtools/testing/selftests/tpm2/tpm2_tests.py171except:CODE
HIGHtools/testing/selftests/tpm2/tpm2_tests.py187except:CODE
HIGHtools/testing/selftests/tpm2/tpm2_tests.py209except:CODE
HIGHtools/testing/selftests/tpm2/tpm2_tests.py234except:CODE
HIGHtools/testing/selftests/hid/tests/test_mouse.py1035except ValueError:CODE
HIGHtools/testing/selftests/hid/tests/test_multitouch.py648except KeyError:CODE
HIGHtools/testing/selftests/hid/tests/test_multitouch.py658except KeyError:CODE
HIGHtools/testing/selftests/hid/tests/test_multitouch.py900except KeyError:CODE
HIGH…g/selftests/devices/probe/test_discoverable_devices.py67except:CODE
HIGH…g/selftests/devices/probe/test_discoverable_devices.py83except:CODE
HIGHtools/lib/python/abi/system_symbols.py211except KeyboardInterrupt:CODE
HIGHtools/lib/python/kdoc/kdoc_output.py698except ValueError:CODE
HIGHtools/perf/pmu-events/metric.py41except json.decoder.JSONDecodeError:CODE
HIGHtools/perf/pmu-events/metric.py56except json.decoder.JSONDecodeError:CODE
HIGHtools/perf/pmu-events/intel_metrics.py103except ValueError:CODE
HIGHtools/perf/pmu-events/intel_metrics.py287except ValueError:CODE
HIGHtools/perf/pmu-events/intel_metrics.py295except ValueError:CODE
HIGHtools/perf/pmu-events/intel_metrics.py302except ValueError:CODE
HIGHtools/perf/pmu-events/intel_metrics.py317except ValueError:CODE
HIGHtools/perf/pmu-events/intel_metrics.py355except ValueError:CODE
HIGHtools/perf/pmu-events/intel_metrics.py512except ValueError:CODE
HIGHtools/perf/pmu-events/intel_metrics.py544except ValueError:CODE
HIGHtools/perf/pmu-events/intel_metrics.py566except ValueError:CODE
HIGHtools/perf/pmu-events/intel_metrics.py586except ValueError:CODE
78 more matches not shown…
Hyper-Verbose Identifiers381 hits · 383 pts
SeverityFileLineSnippetContext
LOWDocumentation/sphinx/kfigure.py626def add_kernel_figure_to_std_domain(app, doctree):CODE
LOW…s/power/x86/intel_pstate_tracer/intel_pstate_tracer.py98def plot_perf_busy_with_sample(cpu_index):CODE
LOW…s/power/x86/intel_pstate_tracer/intel_pstate_tracer.py169def plot_pstate_cpu_with_sample():CODE
LOW…s/power/x86/intel_pstate_tracer/intel_pstate_tracer.py286def common_all_gnuplot_settings(output_png):CODE
LOWtools/crypto/ccp/test_dbc.py58 def test_unauthenticated_nonce(self) -> None:CODE
LOWtools/crypto/ccp/test_dbc.py87 def test_invalid_setuid_ioctl(self) -> None:CODE
LOWtools/crypto/ccp/test_dbc.py96 def test_invalid_setuid_rw_ioctl(self) -> None:CODE
LOWtools/crypto/ccp/test_dbc.py130 def test_unauthenticated_nonce(self) -> None:CODE
LOWtools/crypto/ccp/test_dbc.py134 def test_multiple_unauthenticated_nonce(self) -> None:CODE
LOWtools/net/sunrpc/xdrgen/xdr_ast.py898def _merge_consecutive_passthru(definitions: List[Definition]) -> List[Definition]:CODE
LOWtools/net/sunrpc/xdrgen/xdr_ast.py1001def check_duplicate_definitions(root: "Specification") -> None:CODE
LOWtools/net/sunrpc/xdrgen/xdr_ast.py1325def check_aggregate_directives(root: "Specification") -> None:CODE
LOWtools/net/sunrpc/xdrgen/generators/program.py34def emit_version_declarations(CODE
LOWtools/net/sunrpc/xdrgen/generators/program.py63def emit_version_argument_decoders(CODE
LOWtools/net/sunrpc/xdrgen/generators/program.py79def emit_version_result_decoders(CODE
LOWtools/net/sunrpc/xdrgen/generators/program.py93def emit_version_argument_encoders(CODE
LOWtools/net/sunrpc/xdrgen/generators/program.py107def emit_version_result_encoders(CODE
LOWtools/net/sunrpc/xdrgen/generators/pointer.py26def emit_pointer_member_definition(CODE
LOWtools/net/sunrpc/xdrgen/generators/pointer.py100def emit_pointer_member_decoder(CODE
LOWtools/net/sunrpc/xdrgen/generators/pointer.py194def emit_pointer_member_encoder(CODE
LOWtools/net/sunrpc/xdrgen/generators/struct.py69def emit_struct_member_definition(CODE
LOWtools/net/sunrpc/xdrgen/generators/struct.py143def emit_struct_member_decoder(CODE
LOWtools/net/sunrpc/xdrgen/generators/struct.py286def emit_struct_member_encoder(CODE
LOWtools/net/sunrpc/xdrgen/generators/union.py23def emit_union_switch_spec_definition(CODE
LOWtools/net/sunrpc/xdrgen/generators/union.py38def emit_union_case_spec_definition(CODE
LOWtools/net/sunrpc/xdrgen/generators/union.py79def emit_union_switch_spec_decoder(CODE
LOWtools/net/sunrpc/xdrgen/generators/union.py113def emit_union_case_spec_decoder(CODE
LOWtools/net/sunrpc/xdrgen/generators/union.py148def emit_union_default_spec_decoder(environment: Environment, node: _XdrUnion) -> None:CODE
LOWtools/net/sunrpc/xdrgen/generators/union.py209def emit_union_switch_spec_encoder(CODE
LOWtools/net/sunrpc/xdrgen/generators/union.py218def emit_union_pages_arm_encoder(CODE
LOWtools/net/sunrpc/xdrgen/generators/union.py268def emit_union_case_spec_encoder(CODE
LOWtools/net/sunrpc/xdrgen/generators/union.py303def emit_union_default_spec_encoder(CODE
LOWtools/net/ynl/pyynl/ynl_gen_c.py2374def parse_rsp_nested_prototype(ri, struct, suffix=';'):CODE
LOWtools/net/ynl/pyynl/ynl_gen_c.py2772def free_rsp_nested_prototype(ri):CODE
LOWtools/net/ynl/pyynl/ynl_gen_c.py2854def kernel_can_gen_family_struct(family):CODE
LOWtools/net/ynl/pyynl/ynl_gen_c.py2862def print_kernel_policy_ranges(family, cw):CODE
LOWtools/net/ynl/pyynl/ynl_gen_c.py2891def print_kernel_policy_sparse_enum_validates(family, cw):CODE
LOWtools/net/ynl/pyynl/ynl_gen_c.py2929def print_kernel_op_table_fwd(family, cw, terminate):CODE
LOWtools/net/ynl/pyynl/ynl_gen_c.py2996def print_kernel_op_table_hdr(family, cw):CODE
LOWtools/net/ynl/pyynl/ynl_gen_c.py3105def print_kernel_family_struct_hdr(family, cw):CODE
LOWtools/net/ynl/pyynl/ynl_gen_c.py3117def print_kernel_family_struct_src(family, cw):CODE
LOW⚡tools/unittests/test_kdoc_parser.py408 def test_with_unfilled_expected(self):STRING
LOW⚡tools/unittests/test_kdoc_parser.py415 def test_with_default_expected(self):STRING
LOW⚡tools/unittests/test_kdoc_parser.py422 def test_context_lock_struct_declaration(self):STRING
LOWtools/unittests/test_kdoc_test_schema.py70 def test_kdoc_test_yaml_followsschema(self):CODE
LOW⚡tools/unittests/test_cmatch.py51 def test_search_acquires_simple(self):CODE
LOW⚡tools/unittests/test_cmatch.py56 def test_search_acquires_multiple(self):CODE
LOW⚡tools/unittests/test_cmatch.py61 def test_search_acquires_nested_paren(self):CODE
LOW⚡tools/unittests/test_cmatch.py71 def test_search_must_hold_shared(self):CODE
LOW⚡tools/unittests/test_cmatch.py76 def test_search_no_false_positive(self):CODE
LOW⚡tools/unittests/test_cmatch.py81 def test_search_no_macro_remains(self):CODE
LOWtools/unittests/test_cmatch.py151 def test_acquires_nested_paren(self):CODE
LOW⚡tools/unittests/test_cmatch.py240 def test_sub_zero_placeholder(self):CODE
LOW⚡tools/unittests/test_cmatch.py248 def test_sub_single_placeholder(self):CODE
LOW⚡tools/unittests/test_cmatch.py255 def test_sub_multiple_placeholders(self):CODE
LOW⚡tools/unittests/test_cmatch.py262 def test_sub_mixed_placeholders(self):CODE
LOWtools/unittests/test_cmatch.py284 def test_strip_multiple_acquires(self):CODE
LOWtools/unittests/test_cmatch.py298 def test_rise_multiple_greedy(self):CODE
LOWtools/unittests/test_cmatch.py551 def test_raw_struct_group_tagged(self):STRING
LOWtools/unittests/test_cmatch.py628 def test_struct_group_tagged_with_private(self):STRING
321 more matches not shown…
Self-Referential Comments124 hits · 378 pts
SeverityFileLineSnippetContext
MEDIUMDocumentation/conf.py285# The following code tries to extract the information by reading the Makefile,COMMENT
MEDIUMDocumentation/sphinx/maintainers_include.py354 # Create a hidden TOC table with all profiles. That allows addingCOMMENT
MEDIUMDocumentation/sphinx/templates/kernel-toc.html3{# Create a local TOC the kernel way #}CODE
MEDIUMDocumentation/sphinx/templates/translations.html4{# Create a language menu for translations #}CODE
MEDIUMtools/power/pm-graph/bootgraph.py514# Create the output html file from the resident test dataCOMMENT
MEDIUMtools/power/pm-graph/sleepgraph.py2961 # Create the timescale for a timeline blockCOMMENT
MEDIUMtools/power/pm-graph/sleepgraph.py4627# Create the output html file from the resident test dataCOMMENT
MEDIUM…s/power/x86/intel_pstate_tracer/intel_pstate_tracer.py44# Define the csv file columnsCOMMENT
MEDIUMtools/power/x86/amd_pstate_tracer/amd_pstate_trace.py39# Define the csv file columnsCOMMENT
MEDIUMtools/tracing/rtla/tests/engine.sh63 # Create a temporary directory to contain rtla outputCOMMENT
MEDIUMtools/memory-model/scripts/newlitmushist.sh39# Create a list of the C-language litmus tests previously run.COMMENT
MEDIUMtools/memory-model/scripts/checklitmushist.sh31# Create the results directory and populate it with subdirectories.COMMENT
MEDIUMtools/memory-model/scripts/checklitmushist.sh37# Create the list of litmus tests already run, then remove those thatCOMMENT
MEDIUMtools/memory-model/scripts/checkghlitmus.sh36# Create a list of the specified litmus tests previously run.COMMENT
MEDIUMtools/memory-model/scripts/checkghlitmus.sh42# Create a list of C-language litmus tests with "Result:" commands andCOMMENT
MEDIUMtools/memory-model/scripts/initlitmushist.sh61# Create a list of the C-language litmus tests with no more than theCOMMENT
MEDIUM…ols/testing/selftests/net/arp_ndisc_evict_nocarrier.sh6# Create a veth pair and set IPs/routes on both. Then ping to establishCOMMENT
MEDIUMtools/testing/selftests/net/fib_tests.sh723# Create a new dummy_10 to remove all associated routes.COMMENT
MEDIUMtools/testing/selftests/net/fib_tests.sh913 # Create a pair of veth devices to send a RA message from oneCOMMENT
MEDIUMtools/testing/selftests/net/fib_tests.sh1527 # Create a pair of veth devices to send a RA message from oneCOMMENT
MEDIUMtools/testing/selftests/net/fib_tests.sh1605 # Create a pair of veth devices to send a RA message from oneCOMMENT
MEDIUMtools/testing/selftests/net/bridge_stp_mode.sh63# Create a bridge in NS1, bring it up, and defer its deletion.COMMENT
MEDIUMtools/testing/selftests/net/test_vxlan_mdb.sh2358 # Create the MDB entries that will be continuously deleted / replaced.COMMENT
MEDIUMtools/testing/selftests/net/bareudp.sh138# Create the four network namespaces used by the script (NS0, NS1, NS2 and NS3)COMMENT
MEDIUMtools/testing/selftests/net/bareudp.sh440 # Create the bareudp devices in the intermediate namespacesCOMMENT
MEDIUMtools/testing/selftests/net/big_tcp_tunnels.sh56# Create a bareudp device. bareudp only works in external mode: attach theCOMMENT
MEDIUMtools/testing/selftests/net/gre_ipv6_lladdr.sh60# Create a GRE device and verify that it gets an IPv6 link-local address asCOMMENT
MEDIUMtools/testing/selftests/net/forwarding/router_nh.sh111 # Create the nexthops as AF_INET6, so that IPv4 and IPv6 routes couldCOMMENT
MEDIUMtools/testing/selftests/net/forwarding/sch_ets.sh25 # Create a bottleneck so that the DWRR process can kick in.COMMENT
MEDIUMtools/testing/selftests/net/ppp/ppp_async.sh23# Create the virtual serial deviceCOMMENT
MEDIUMtools/testing/selftests/net/ppp/pppol2tp.sh27# Create the veth pairCOMMENT
MEDIUMtools/testing/selftests/net/ppp/pppoe.sh30# Create the veth pairCOMMENT
MEDIUMtools/testing/selftests/net/mptcp/diag.sh30# This function is used in the cleanup trapCOMMENT
MEDIUMtools/testing/selftests/net/mptcp/simult_flows.sh38# This function is used in the cleanup trapCOMMENT
MEDIUMtools/testing/selftests/net/mptcp/userspace_pm.sh96# This function is used in the cleanup trapCOMMENT
MEDIUMtools/testing/selftests/net/mptcp/mptcp_sockopt.sh101# This function is used in the cleanup trapCOMMENT
MEDIUMtools/testing/selftests/net/mptcp/pm_netlink.sh34# This function is used in the cleanup trapCOMMENT
MEDIUMtools/testing/selftests/net/mptcp/pm_netlink.sh82# This function is invoked indirectlyCOMMENT
MEDIUMtools/testing/selftests/net/mptcp/mptcp_connect.sh136# This function is used in the cleanup trapCOMMENT
MEDIUMtools/testing/selftests/net/netfilter/nf_nat_edemux.sh60# Create a server in one namespaceCOMMENT
MEDIUMtools/testing/selftests/drivers/net/shaper.py735 # Create the nested node and validate the hierarchyCOMMENT
MEDIUMtools/testing/selftests/drivers/net/hw/rss_drv.py244 # Create an extra context with a periodic (foldable) table so thatCOMMENT
MEDIUMtools/testing/selftests/drivers/net/hw/rss_ctx.py805 # Create a new RSS context that uses queues 2 and 3COMMENT
MEDIUMtools/testing/selftests/drivers/net/mlxsw/vxlan.sh445 # Create a simple setup with two bridges, each with a VxLAN deviceCOMMENT
MEDIUMtools/testing/selftests/drivers/net/mlxsw/vxlan.sh929 # Create a simple setup with two VxLAN devices and a single VLAN-awareCOMMENT
MEDIUMtools/testing/selftests/drivers/net/mlxsw/rtnetlink.sh90 # Create a FID RIFCOMMENT
MEDIUM…ng/selftests/drivers/net/mlxsw/rif_mac_profiles_occ.sh113 # Create a VLAN netdevice that has the same MAC as the first one.COMMENT
MEDIUM…ftests/drivers/net/mlxsw/devlink_trap_l3_exceptions.sh533 # Create a VRF without a default routeCOMMENT
MEDIUM…ftests/drivers/net/mlxsw/devlink_trap_l3_exceptions.sh560 # Create a VRF without a default routeCOMMENT
MEDIUM…ls/testing/selftests/drivers/net/mlxsw/sch_red_core.sh582 # Create a bit of a backlog and observe no mirroring due to marks.COMMENT
MEDIUM…ls/testing/selftests/drivers/net/mlxsw/sch_red_core.sh635 # Create a bit of a backlog and observe no mirroring due to drops.COMMENT
MEDIUMtools/testing/selftests/drivers/net/mlxsw/sch_ets.sh21 # Create a bottleneck so that the DWRR process can kick in.COMMENT
MEDIUM…sting/selftests/drivers/net/team/teamd_activebackup.sh83# Create the network namespaces, veth pair, and team devices in the specifiedCOMMENT
MEDIUM…esting/selftests/drivers/net/team/transmit_failover.sh61# Create the network namespaces, veth pair, and team devices in the specifiedCOMMENT
MEDIUM…esting/selftests/drivers/net/team/transmit_failover.sh74 # Create the interfaces.COMMENT
MEDIUMtools/testing/selftests/drivers/net/team/team_lib.sh12# Create a team interface inside of a given network namespace with a givenCOMMENT
MEDIUM…ing/selftests/drivers/net/team/decoupled_enablement.sh71# Create the network namespaces, veth pair, and team devices in the specifiedCOMMENT
MEDIUM…ing/selftests/drivers/net/team/decoupled_enablement.sh84 # Create the interfaces.COMMENT
MEDIUM…testing/selftests/drivers/net/microchip/ksz9477_qos.sh521 # Create a modified old_json with the expected change for comparisonCOMMENT
MEDIUM…ls/testing/selftests/drivers/net/lib/sh/lib_netcons.sh4# This file contains functions and helpers to support the netconsoleCOMMENT
64 more matches not shown…
Unused Imports395 hits · 336 pts
SeverityFileLineSnippetContext
LOWDocumentation/conf.py400CODE
LOWDocumentation/sphinx/kernel_feat.py34CODE
LOWDocumentation/sphinx/kernel_feat.py39CODE
LOWDocumentation/sphinx/kernel_abi.py36CODE
LOWDocumentation/sphinx/translations.py14CODE
LOWDocumentation/sphinx/translations.py16CODE
LOWDocumentation/sphinx/parser_yaml.py15CODE
LOWDocumentation/sphinx/automarkup.py8CODE
LOWDocumentation/sphinx/kerneldoc.py29CODE
LOWDocumentation/sphinx/kerneldoc.py31CODE
LOWDocumentation/sphinx/kerneldoc.py39CODE
LOWDocumentation/sphinx/kfigure.py61CODE
LOWtools/power/pm-graph/bootgraph.py30CODE
LOWtools/power/pm-graph/sleepgraph.py56CODE
LOW…s/power/x86/intel_pstate_tracer/intel_pstate_tracer.py35CODE
LOWtools/power/x86/amd_pstate_tracer/amd_pstate_trace.py21CODE
LOWtools/power/x86/amd_pstate_tracer/amd_pstate_trace.py30CODE
LOWtools/power/x86/amd_pstate_tracer/amd_pstate_trace.py31CODE
LOWtools/power/x86/amd_pstate_tracer/amd_pstate_trace.py32CODE
LOWtools/crypto/ccp/test_dbc.py13CODE
LOWtools/crypto/ccp/dbc_cli.py7CODE
LOWtools/net/sunrpc/xdrgen/generators/header_bottom.py6CODE
LOWtools/net/sunrpc/xdrgen/generators/header_bottom.py7CODE
LOWtools/net/sunrpc/xdrgen/generators/source_top.py11CODE
LOWtools/net/sunrpc/xdrgen/generators/source_top.py11CODE
LOWtools/net/ynl/pyynl/__init__.py8CODE
LOWtools/net/ynl/pyynl/__init__.py9CODE
LOWtools/net/ynl/pyynl/lib/__init__.py5CODE
LOWtools/net/ynl/pyynl/lib/__init__.py5CODE
LOWtools/net/ynl/pyynl/lib/__init__.py5CODE
LOWtools/net/ynl/pyynl/lib/__init__.py5CODE
LOWtools/net/ynl/pyynl/lib/__init__.py5CODE
LOWtools/net/ynl/pyynl/lib/__init__.py5CODE
LOWtools/net/ynl/pyynl/lib/__init__.py5CODE
LOWtools/net/ynl/pyynl/lib/__init__.py5CODE
LOWtools/net/ynl/pyynl/lib/__init__.py5CODE
LOWtools/net/ynl/pyynl/lib/__init__.py8CODE
LOWtools/net/ynl/pyynl/lib/__init__.py9CODE
LOWtools/net/ynl/pyynl/lib/__init__.py9CODE
LOWtools/net/ynl/pyynl/lib/__init__.py9CODE
LOWtools/net/ynl/pyynl/lib/__init__.py9CODE
LOWtools/net/ynl/pyynl/lib/__init__.py9CODE
LOWtools/net/ynl/pyynl/lib/__init__.py11CODE
LOWtools/workqueue/wq_dump.py55CODE
LOWtools/workqueue/wq_monitor.py51CODE
LOWtools/unittests/test_kdoc_parser.py19CODE
LOWtools/unittests/test_tokenizer.py13CODE
LOWtools/unittests/test_kdoc_test_schema.py25CODE
LOWtools/unittests/test_kdoc_test_schema.py28CODE
LOWtools/unittests/test_kdoc_test_schema.py28CODE
LOWtools/unittests/test_kdoc_test_schema.py28CODE
LOWtools/unittests/test_cmatch.py24CODE
LOWtools/sched/root_domains_dump.py14CODE
LOWtools/sched/root_domains_dump.py19CODE
LOWtools/sched/root_domains_dump.py20CODE
LOWtools/sched/dl_bw_dump.py13CODE
LOWtools/sched/dl_bw_dump.py18CODE
LOWtools/sched/dl_bw_dump.py19CODE
LOWtools/cgroup/memcg_slabinfo.py12CODE
LOWtools/cgroup/memcg_slabinfo.py13CODE
335 more matches not shown…
Deep Nesting362 hits · 334 pts
SeverityFileLineSnippetContext
LOWDocumentation/sphinx/kernel_include.py409CODE
LOWDocumentation/sphinx/maintainers_include.py85CODE
LOWDocumentation/sphinx/maintainers_include.py203CODE
LOWDocumentation/sphinx/maintainers_include.py329CODE
LOWDocumentation/sphinx/rstFlatTable.py228CODE
LOWDocumentation/sphinx/rstFlatTable.py295CODE
LOWDocumentation/sphinx/rstFlatTable.py316CODE
LOWDocumentation/sphinx/automarkup.py130CODE
LOWDocumentation/sphinx/automarkup.py152CODE
LOWDocumentation/sphinx/kerneldoc.py100CODE
LOWDocumentation/sphinx/kfigure.py244CODE
LOWDocumentation/sphinx/kfigure.py626CODE
LOWtools/power/pm-graph/bootgraph.py292CODE
LOWtools/power/pm-graph/bootgraph.py378CODE
LOWtools/power/pm-graph/bootgraph.py519CODE
LOWtools/power/pm-graph/bootgraph.py753CODE
LOWtools/power/pm-graph/bootgraph.py144CODE
LOWtools/power/pm-graph/bootgraph.py254CODE
LOWtools/power/pm-graph/sleepgraph.py3256CODE
LOWtools/power/pm-graph/sleepgraph.py3290CODE
LOWtools/power/pm-graph/sleepgraph.py3392CODE
LOWtools/power/pm-graph/sleepgraph.py3450CODE
LOWtools/power/pm-graph/sleepgraph.py3989CODE
LOWtools/power/pm-graph/sleepgraph.py4272CODE
LOWtools/power/pm-graph/sleepgraph.py4333CODE
LOWtools/power/pm-graph/sleepgraph.py4504CODE
LOWtools/power/pm-graph/sleepgraph.py4614CODE
LOWtools/power/pm-graph/sleepgraph.py4632CODE
LOWtools/power/pm-graph/sleepgraph.py5485CODE
LOWtools/power/pm-graph/sleepgraph.py5738CODE
LOWtools/power/pm-graph/sleepgraph.py5780CODE
LOWtools/power/pm-graph/sleepgraph.py5881CODE
LOWtools/power/pm-graph/sleepgraph.py6019CODE
LOWtools/power/pm-graph/sleepgraph.py6174CODE
LOWtools/power/pm-graph/sleepgraph.py6322CODE
LOWtools/power/pm-graph/sleepgraph.py6470CODE
LOWtools/power/pm-graph/sleepgraph.py6491CODE
LOWtools/power/pm-graph/sleepgraph.py6540CODE
LOWtools/power/pm-graph/sleepgraph.py473CODE
LOWtools/power/pm-graph/sleepgraph.py683CODE
LOWtools/power/pm-graph/sleepgraph.py791CODE
LOWtools/power/pm-graph/sleepgraph.py994CODE
LOWtools/power/pm-graph/sleepgraph.py1119CODE
LOWtools/power/pm-graph/sleepgraph.py1158CODE
LOWtools/power/pm-graph/sleepgraph.py1272CODE
LOWtools/power/pm-graph/sleepgraph.py1341CODE
LOWtools/power/pm-graph/sleepgraph.py1567CODE
LOWtools/power/pm-graph/sleepgraph.py1647CODE
LOWtools/power/pm-graph/sleepgraph.py1750CODE
LOWtools/power/pm-graph/sleepgraph.py1774CODE
LOWtools/power/pm-graph/sleepgraph.py1807CODE
LOWtools/power/pm-graph/sleepgraph.py1850CODE
LOWtools/power/pm-graph/sleepgraph.py1916CODE
LOWtools/power/pm-graph/sleepgraph.py1927CODE
LOWtools/power/pm-graph/sleepgraph.py1945CODE
LOWtools/power/pm-graph/sleepgraph.py2087CODE
LOWtools/power/pm-graph/sleepgraph.py2307CODE
LOWtools/power/pm-graph/sleepgraph.py2448CODE
LOWtools/power/pm-graph/sleepgraph.py2638CODE
LOWtools/power/pm-graph/sleepgraph.py2677CODE
302 more matches not shown…
Hallucination Indicators21 hits · 235 pts
SeverityFileLineSnippetContext
CRITICALDocumentation/sphinx/kernel_feat.py80 self.state.document.settings.env.app.warn(message, prefix="")CODE
CRITICALDocumentation/sphinx/kernel_include.py158 self.state.document.settings.record_dependencies.add(path)CODE
CRITICALDocumentation/sphinx/maintainers_include.py307 self.state.document.settings.record_dependencies.add(path)CODE
CRITICALDocumentation/sphinx/maintainers_include.py370 self.state.document.settings.record_dependencies.add(path)CODE
CRITICALtools/cgroup/iocost_monitor.py70 return blkcg.css.cgroup.kn.name.string_().decode('utf-8')STRING
CRITICALtools/cgroup/iocost_monitor.py234 if devname == blkg.q.mq_kobj.parent.name.string_().decode('utf-8'):STRING
CRITICALtools/writeback/wb_monitor.py99 ino = str(wb.memcg_css.cgroup.kn.id.value_())STRING
CRITICALrust/zerocopy-derive/util.rs851 let param_idents = self.ctx.ast.generics.params.iter().map(|param| match param {CODE
CRITICALrust/kernel/gpu/buddy.rs612 (self.blocks.buddy.params.chunk_size.as_usize() as u64) << self.this.order()CODE
CRITICALscripts/crypto/gen-fips-testvecs.py48 aes = cryptography.hazmat.primitives.ciphers.algorithms.AES(fips_test_key)CODE
CRITICAL⚡scripts/crypto/gen-fips-testvecs.py59 aes, cryptography.hazmat.primitives.ciphers.modes.ECB()CODE
CRITICAL⚡scripts/crypto/gen-fips-testvecs.py67 aes, cryptography.hazmat.primitives.ciphers.modes.CBC(fips_test_iv)CODE
CRITICAL⚡scripts/crypto/gen-fips-testvecs.py75 aes, cryptography.hazmat.primitives.ciphers.modes.CBC(fips_test_iv)CODE
CRITICAL⚡scripts/crypto/gen-fips-testvecs.py84 aes, cryptography.hazmat.primitives.ciphers.modes.CTR(fips_test_iv)CODE
CRITICAL⚡scripts/crypto/gen-fips-testvecs.py92 cryptography.hazmat.primitives.ciphers.algorithms.AES(fips_test_xts_key),CODE
CRITICAL⚡scripts/crypto/gen-fips-testvecs.py93 cryptography.hazmat.primitives.ciphers.modes.XTS(fips_test_iv),CODE
CRITICAL⚡scripts/crypto/gen-fips-testvecs.py100 cipher = cryptography.hazmat.primitives.ciphers.aead.AESGCM(fips_test_key)CODE
CRITICAL⚡scripts/crypto/gen-fips-testvecs.py109 cipher = cryptography.hazmat.primitives.ciphers.aead.AESCCM(CODE
CRITICALscripts/crypto/gen-aead-testvecs.py40 ccm = cryptography.hazmat.primitives.ciphers.aead.AESCCM(CODE
CRITICALscripts/crypto/gen-aead-testvecs.py49 gcm = cryptography.hazmat.primitives.ciphers.aead.AESGCM(key)CODE
CRITICALscripts/crypto/gen-hash-testvecs.py36 aes = cryptography.hazmat.primitives.ciphers.algorithms.AES(key)CODE
Excessive Try-Catch Wrapping113 hits · 174 pts
SeverityFileLineSnippetContext
LOWDocumentation/conf.py299except Exception:CODE
LOWDocumentation/sphinx/parser_yaml.py94 except Exception as e:CODE
LOWDocumentation/sphinx/kerneldoc.py249 except Exception as e: # pylint: disable=W0703CODE
LOWtools/power/pm-graph/bootgraph.py743 except Exception as e:CODE
LOWtools/power/pm-graph/bootgraph.py759 except Exception as e:CODE
LOWtools/power/pm-graph/bootgraph.py806 except Exception as e:CODE
LOWtools/power/pm-graph/sleepgraph.py5569 except Exception as e:CODE
MEDIUM…wer/cpupower/bindings/python/test_raw_pylibcpupower.py58 print(f"Error: could not get cpu topology")CODE
MEDIUM…s/power/x86/intel_pstate_tracer/intel_pstate_tracer.py429 print('Error opening ', filename)CODE
MEDIUMtools/power/x86/amd_pstate_tracer/amd_pstate_trace.py194 print('Error opening ', file_name)CODE
LOW⚡tools/tracing/rtla/example/timerlat_load.py35except Exception as e:CODE
MEDIUM⚡tools/tracing/rtla/example/timerlat_load.py36 print(f"Error setting affinity: {e}")CODE
LOW⚡tools/tracing/rtla/example/timerlat_load.py43 except Exception as e:CODE
MEDIUM⚡tools/tracing/rtla/example/timerlat_load.py44 print(f"Error setting priority: {e}")CODE
MEDIUM⚡tools/tracing/rtla/example/timerlat_load.py54 print("Error opening timerlat fd, did you run timerlat -U?")CODE
LOW⚡tools/tracing/rtla/example/timerlat_load.py59except Exception as e:CODE
MEDIUM⚡tools/tracing/rtla/example/timerlat_load.py60 print(f"Error opening data fd: {e}")CODE
LOWtools/tracing/rtla/example/timerlat_load.py73 except Exception as e:CODE
LOWtools/net/ynl/pyynl/ynl_gen_rst.py76 except Exception as exception:CODE
LOWtools/net/ynl/pyynl/ynl_gen_c.py2209 except Exception:CODE
MEDIUMtools/net/ynl/pyynl/lib/ynl.py1113 print(f"Error decoding '{attr_spec.name}' from '{space}'")CODE
LOWtools/unittests/test_kdoc_parser.py94 except Exception:CODE
LOWtools/sched/root_domains_dump.py60 except Exception as e:STRING
LOWtools/sched/dl_bw_dump.py49 except Exception as e:STRING
MEDIUMtools/testing/selftests/rseq/rseq-slice-hist.py30 print(f"Error: Permission denied reading {file_path}. Try running with sudo.")CODE
MEDIUMtools/testing/selftests/rseq/rseq-slice-hist.py32 print(f"Error: {file_path} not found.")CODE
LOWtools/testing/selftests/net/lib/py/ksft.py236 except Exception:CODE
LOWtools/testing/selftests/net/lib/py/ksft.py310 except Exception:CODE
LOWtools/testing/selftests/drivers/net/netpoll_basic.py186 except Exception as exception:CODE
LOW⚡tools/testing/selftests/drivers/net/so_txtime.py119 except Exception as e:CODE
LOWtools/testing/selftests/drivers/net/so_txtime.py180 except Exception as e:CODE
LOWtools/testing/selftests/drivers/net/ring_reconfig.py218 except Exception as exc:CODE
LOWtools/testing/selftests/drivers/net/ring_reconfig.py233 except Exception as exc:CODE
LOW⚡tools/testing/selftests/drivers/net/ping.py112 except Exception as e:CODE
LOW⚡tools/testing/selftests/drivers/net/ping.py123 except Exception as e:CODE
MEDIUMtools/testing/selftests/drivers/net/ping.py63def _set_offload_checksum(cfg, netnl, on) -> None:CODE
LOWtools/testing/selftests/drivers/net/hw/rss_ctx.py798 except Exception as exc:CODE
LOWtools/testing/selftests/drivers/net/hw/rss_ctx.py940 except Exception as exc:CODE
LOWtools/testing/selftests/drivers/net/hw/tso.py281 except Exception as e:CODE
LOWtools/testing/selftests/drivers/net/hw/uso.py53 except Exception as exc:CODE
MEDIUM…testing/selftests/drivers/net/hw/devlink_port_split.py37 print("Error sending command: %s" % cmd)CODE
LOW…testing/selftests/drivers/net/hw/devlink_rate_tc_bw.py113 except Exception as exc:CODE
LOW…testing/selftests/drivers/net/hw/devlink_rate_tc_bw.py117 except Exception as exc:CODE
LOW⚡…testing/selftests/drivers/net/hw/devlink_rate_tc_bw.py265 except Exception as exc:CODE
LOW⚡…testing/selftests/drivers/net/hw/devlink_rate_tc_bw.py270 except Exception as exc:CODE
LOWtools/testing/selftests/tc-testing/tdc.py143 except Exception as ee:CODE
LOWtools/testing/selftests/tc-testing/tdc.py490 except Exception as ee:CODE
MEDIUMtools/testing/selftests/tc-testing/tdc.py271def verify_by_json(procout, res, tidx, args, pm):CODE
LOW…s/testing/selftests/x86/bugs/its_indirect_alignment.py137 except Exception as e:CODE
LOWtools/testing/selftests/x86/bugs/its_ret_alignment.py125 except Exception as e:CODE
LOWtools/testing/selftests/hid/tests/conftest.py27 except Exception:CODE
LOW…ls/testing/selftests/damon/sysfs_no_op_commit_break.py26 except Exception as e:CODE
MEDIUM…ls/testing/selftests/damon/sysfs_no_op_commit_break.py11def dump_damon_status_dict(pid):CODE
LOWtools/testing/selftests/damon/sysfs.py24 except Exception as e:CODE
MEDIUMtools/testing/selftests/damon/sysfs.py10def dump_damon_status_dict(pid):CODE
LOWtools/testing/selftests/damon/_damon_sysfs.py28 except Exception as e:CODE
LOWtools/testing/selftests/damon/_damon_sysfs.py38 except Exception as e:CODE
LOWtools/testing/kunit/kunit_kernel.py377 except Exception as e:CODE
MEDIUMtools/testing/kunit/kunit_kernel.py373def _wait_proc() -> None:CODE
LOWtools/mm/show_page_info.py49 except Exception as e:STRING
53 more matches not shown…
Redundant / Tautological Comments112 hits · 172 pts
SeverityFileLineSnippetContext
LOWDocumentation/sphinx/automarkup.py134 # Check if this document has a namespace, and if so, tryCOMMENT
LOWDocumentation/sphinx/automarkup.py167 # Check if this document has a namespace, and if so, tryCOMMENT
LOWtools/power/pm-graph/bootgraph.py377# Check if trace is available and copy to a temp fileCOMMENT
LOW…ls/power/pm-graph/config/custom-timeline-functions.cfg62# Set this to true if you intend to only use the ones defined in this configCOMMENT
LOW…ls/power/pm-graph/config/custom-timeline-functions.cfg67# Set this to true if you intend to only use the ones defined in this configCOMMENT
LOWtools/power/pm-graph/config/example.cfg56# Print results to text fileCOMMENT
LOWtools/power/pm-graph/config/example.cfg111# Set this to true if you intend to only use the ones defined in the configCOMMENT
LOWtools/power/pm-graph/config/example.cfg116# Set this to true if you intend to only use the ones defined in the configCOMMENT
LOW…ols/tracing/rtla/tests/scripts/check-osnoise-option.sh3# Check if osnoise options are enabled or disabled.COMMENT
LOWtools/net/ynl/pyynl/lib/ynl.py1425 # Check if this is a reply to our requestCOMMENT
LOWtools/net/ynl/tests/test_ynl_ethtool.sh201# Check if ynl-ethtool command is availableCOMMENT
LOWtools/net/ynl/tests/test_ynl_cli.sh305# Check if ynl command is availableCOMMENT
LOWtools/unittests/test_tokenizer.py47 # Check if logger is workingCOMMENT
LOWtools/unittests/test_tokenizer.py63 # Check if tokenizer is producing expected resultsCOMMENT
LOWtools/unittests/test_cmatch.py212# Check if the diff is logically equivalent. To simplify, the tests hereCOMMENT
LOWtools/sched/root_domains_dump.py38 # Check if we've already processed this root domain to avoid duplicatesSTRING
LOWtools/testing/selftests/cpufreq/main.sh107 # Check if CPUs are managed by cpufreq or notCOMMENT
LOWtools/testing/selftests/net/ipv6_force_forwarding.sh58 # Check if force_forwarding sysctl existsCOMMENT
LOWtools/testing/selftests/net/fcnal-test.sh88# Check if FIPS mode is enabledCOMMENT
LOWtools/testing/selftests/net/bareudp.sh335# Print the result of a testCOMMENT
LOW…testing/selftests/net/ipv6_route_update_soft_lockup.sh123 # Check if any iperf3 instances are still running. This could happenCOMMENT
LOW…testing/selftests/net/ipv6_route_update_soft_lockup.sh230# Check if we are running on a multi-core machine, skip the test otherwiseCOMMENT
LOWtools/testing/selftests/net/bpf_offload.py872# Check if iproute2 is built with libmnl (needed by extack support)COMMENT
LOWtools/testing/selftests/net/bpf_offload.py880# Check if net namespaces seem to workCOMMENT
LOWtools/testing/selftests/net/packetdrill/set_sysctls.py22# Open file for restoring sysctl valuesCOMMENT
LOWtools/testing/selftests/net/hsr/hsr_redbox.sh70 # Check if iproute2 supports adding interlink port to hsrX deviceCOMMENT
LOWtools/testing/selftests/net/openvswitch/openvswitch.sh827 # Check if psample actions can be configured.COMMENT
LOWtools/testing/selftests/net/openvswitch/openvswitch.sh931 # Check if drop reasons can be sentCOMMENT
LOWtools/testing/selftests/net/openvswitch/openvswitch.sh1238 # Check if the ct and nat actions can be configured.COMMENT
LOWtools/testing/selftests/drivers/net/hw/rss_api.py220 # Set key to randomCOMMENT
LOWtools/testing/selftests/drivers/net/hw/rss_api.py227 # Set key to random and indir tbl to something at onceCOMMENT
LOWtools/testing/selftests/drivers/net/team/options.sh198 # Set enabled to true.COMMENT
LOWtools/testing/selftests/drivers/net/team/options.sh208 # Set enabled to false.COMMENT
LOW⚡tools/testing/selftests/drivers/net/team/options.sh228 # Set enabled to true.COMMENT
LOW⚡tools/testing/selftests/drivers/net/team/options.sh232 # Set rx_enabled to false.COMMENT
LOW⚡tools/testing/selftests/drivers/net/team/options.sh240 # Set rx_enabled to true.COMMENT
LOW⚡tools/testing/selftests/drivers/net/team/options.sh258 # Set enabled to true.COMMENT
LOW⚡tools/testing/selftests/drivers/net/team/options.sh262 # Set tx_enabled to false.COMMENT
LOW⚡tools/testing/selftests/drivers/net/team/options.sh270 # Set tx_enabled to true.COMMENT
LOW…ls/testing/selftests/drivers/net/lib/sh/lib_netcons.sh261 # Check if the file existsCOMMENT
LOW…ls/testing/selftests/drivers/net/lib/sh/lib_netcons.sh373# Check if netconsole was compiled as a module, otherwise exitCOMMENT
LOW…tests/drivers/net/netconsole/netcons_fragmented_msg.sh108# Check if the message was not corruptedCOMMENT
LOW…ng/selftests/drivers/net/netconsole/netcons_sysdata.sh109 # Check if cpu=XX exists in the file and matches the one usedCOMMENT
LOW…g/selftests/drivers/platform/x86/intel/ifs/test_ifs.sh303 # Set IFS_IMAGE_NEED_RESTORE to true before corrupt the origin ifs image fileCOMMENT
LOWtools/testing/selftests/livepatch/functions.sh47# Check if we can compile the modules before loading themCOMMENT
LOWtools/testing/selftests/dt/test_unprobed_devices.sh34 # Check if node is availableCOMMENT
LOWtools/testing/selftests/ublk/test_generic_16.sh10# Check if SAFE_STOP_DEV feature is supportedCOMMENT
LOWtools/testing/selftests/rcutorture/bin/kvm.sh406 # Read file of tests and corresponding required numbers of CPUs.COMMENT
LOWtools/testing/selftests/rcutorture/bin/jitter.sh73 # Set affinity to randomly selected online CPUCOMMENT
LOW…sts/ftrace/boottime/tests/persistent-01-reserve-mem.sh13# Check if Boot 1 marker was already writtenCOMMENT
LOW…ftrace/boottime/tests/persistent-02-backup-instance.sh19# Check if BOOT1_MARKER is in boot_map/trace (indicates second boot)COMMENT
LOWtools/testing/selftests/amd-pstate/run.sh321 # Check if CPUs are managed by cpufreq or notCOMMENT
LOWtools/testing/kunit/kunit_parser.py415 # Check if line matches test result line formatCOMMENT
LOWtools/testing/ktest/ktest.pl3192 # Check if a bisect was runningCOMMENT
LOWtools/lib/python/unittest_helper.py175 # Print resultsCOMMENT
LOWtools/lib/python/kdoc/kdoc_output.py368 # Print the output with the line prefixCOMMENT
LOWtools/lib/python/kdoc/kdoc_parser.py859 # Output the result and we are done.COMMENT
LOWtools/lib/python/kdoc/kdoc_parser.py1506 # Check if it's a SYSCALL_DEFINE0COMMENT
LOWtools/perf/check-headers.sh164# Check if we have the kernel headers (tools/perf/../../include), elseCOMMENT
LOWtools/perf/pmu-events/jevents.py1468 # Check if the model matches one in _args.model.COMMENT
52 more matches not shown…
Verbosity Indicators82 hits · 132 pts
SeverityFileLineSnippetContext
LOWtools/perf/builtin-trace.c5943 * This is important because we need to check if strace-like mode isCOMMENT
LOWtools/perf/util/symbol-elf.c598 * We need to check if we have a .dynsym, so that we can handle theCOMMENT
LOWtools/perf/util/color.h28 * This variable stores the value of color.uiCOMMENT
LOWtools/perf/arch/arm64/util/arm-spe.c558 * head has numerically wrapped around. To find we need to check if we have data at theCOMMENT
LOWnet/core/dev.c8173 /* We need to check if ____napi_schedule()COMMENT
LOWnet/bridge/br_multicast.c263/* when snooping we need to check if the contexts should be usedCOMMENT
LOWnet/mptcp/ctrl.c445/* The following code block is to deal with middle box issues with MPTCP,COMMENT
LOWnet/ipv4/tcp_fastopen.c566 * The following code block is to deal with middle box issues with TFO:COMMENT
LOWnet/ipv6/route.c673 * for now, however, we need to check if itCOMMENT
LOWnet/ipv6/route.c4033 * we need to check if the last sibling has a next route or notCOMMENT
LOWdrivers/infiniband/ulp/ipoib/ipoib_ib.c1136 * not to break userspace applications, We need to check if theCOMMENT
LOWdrivers/acpi/acpica/exmisc.c159 * We need to check if the shiftcount is larger than the integer bitCOMMENT
LOWdrivers/acpi/acpica/exmisc.c170 * We need to check if the shiftcount is larger than the integer bitCOMMENT
LOWdrivers/tty/serial/imx.c1877 * particular order. One consequence is that we need to check if any ofCOMMENT
LOWdrivers/tty/serial/atmel_serial.c1637 * If the current buffer is full, we need to check ifCOMMENT
LOWdrivers/staging/media/atomisp/pci/atomisp_v4l2.c452 * So, here we need to check if there is any pendingCOMMENT
LOWdrivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c791 /* For MiniLED panel we need to check if CACP or ABM is being used */COMMENT
LOW…vers/gpu/drm/amd/display/dc/hwss/dcn42b/dcn42b_hwseq.c203 // Step 1: To find out which OPTC is running & OPTC DSC is ONCOMMENT
LOW…vers/gpu/drm/amd/display/dc/hwss/dcn42b/dcn42b_hwseq.c225 // Step 2: To power down DSC but skip DSC of running OPTCCOMMENT
LOWdrivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c802 // Step 1: To find out which OPTC is running & OPTC DSC is ONCOMMENT
LOWdrivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c823 // Step 2: To power down DSC but skip DSC of running OPTCCOMMENT
LOWdrivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c1781 // Step 1: To find out which OPTC is running & OPTC DSC is ONCOMMENT
LOWdrivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c1803 // Step 2: To power down DSC but skip DSC of running OPTCCOMMENT
LOW⚡…gpu/drm/amd/display/dc/resource/dcn60/dcn60_resource.c965 // Step 1: Assign global mcache IDs for each planeCOMMENT
LOW⚡…gpu/drm/amd/display/dc/resource/dcn60/dcn60_resource.c968 // Step 2: Build the mcache pipe configurationCOMMENT
LOWdrivers/net/fddi/skfp/ess.c20 * PURPOSE: The purpose of this function is to controlCOMMENT
LOWdrivers/net/dsa/microchip/ksz_common.c2161 * We need to check if "other" port [i] and "third" portCOMMENT
LOWdrivers/net/ethernet/intel/igc/igc_mac.c532 /* Now we need to check if the user selected RX ONLYCOMMENT
LOWdrivers/net/ethernet/intel/igb/e1000_mac.c999 /* Now we need to check if the user selected RX ONLYCOMMENT
LOWdrivers/net/ethernet/intel/igb/e1000_mac.c1154 /* Now we need to check if the user selected Rx ONLYCOMMENT
LOWdrivers/net/ethernet/intel/e1000/e1000_hw.c2144 /* Now we need to check if the user selected RxCOMMENT
LOWdrivers/net/ethernet/intel/ice/ice_vf_lib.c173 * The purpose of this function is to make sure the VF is not in reset, notCOMMENT
LOWdrivers/net/ethernet/intel/ice/ice_vlan_mode.c400 * The purpose of this function is to print that QinQ is not supported due toCOMMENT
LOWdrivers/net/ethernet/intel/ixgbe/ixgbe_common.c2276 * Now we need to check if the user selected Rx ONLYCOMMENT
LOWdrivers/net/ethernet/intel/e1000e/mac.c1108 /* Now we need to check if the user selected Rx ONLYCOMMENT
LOWdrivers/net/ethernet/intel/e1000e/mac.c1241 /* Now we need to check if the user selected Rx ONLYCOMMENT
LOWdrivers/net/wireless/realtek/rtw89/util.h28/* Before adding rtwvif to list, we need to check if it already exist, beacaseCOMMENT
LOWdrivers/net/wireless/intel/iwlwifi/mvm/sta.c721 * we need to check if the numerical value of X is LARGER than of Y.COMMENT
LOWdrivers/scsi/isci/remote_device.c822 /* we need to check if this request is still valid to continue. */COMMENT
LOWdrivers/accel/habanalabs/common/hwmon.c85 /* If f/w is using it's own enum, we need to check if the properties values are aligned.COMMENT
LOWdrivers/accel/habanalabs/gaudi2/gaudi2_coresight.c2081 /* in pldm we need to check if unit is not stubCOMMENT
LOWdrivers/accel/habanalabs/gaudi2/gaudi2_coresight.c2321 /* in pldm we need to check if unit is not stubCOMMENT
LOWdrivers/accel/habanalabs/gaudi2/gaudi2_coresight.c2359 /* in pldm we need to check if unit is not stubCOMMENT
LOWdrivers/accel/habanalabs/gaudi2/gaudi2_coresight.c2461 /* in pldm we need to check if unit is not stubCOMMENT
LOWdrivers/rtc/rtc-ac100.c167 * Thus we need to check if the parent exists beforeCOMMENT
LOWdrivers/mtd/devices/spear_smi.c596 * The purpose of this function is to ensure a memcpy_toio() with byte writesCOMMENT
LOWdrivers/iio/gyro/fxas21002c_core.c239 /* We need to check if FS_DOUBLE is enabled to offset the value */COMMENT
LOWdrivers/iio/adc/ti-ads1018.c537 * We need to check if the "drdy" pin is actually active or if it's aCOMMENT
LOWdrivers/media/platform/chips-media/coda/coda-bit.c1962 * After updating the read pointer, we need to check ifCOMMENT
LOWdrivers/media/platform/microchip/microchip-isc-base.c318 * channels. We need to check if sensor is outputting RAW BAYERCOMMENT
LOW⚡include/linux/auxiliary_bus.h117 * // Step 1:COMMENT
LOW⚡include/linux/auxiliary_bus.h123 * // Step 2:COMMENT
LOW⚡include/linux/auxiliary_bus.h127 * // Step 3:COMMENT
LOWarch/mips/include/asm/octeon/cvmx-helper-util.h140 * not a dynamic short packet. We need to check if it is aCOMMENT
LOWarch/arm/mach-omap2/prm3xxx.c221 * The purpose of this function is to clear any wake-up events latchedCOMMENT
LOWarch/arm/mach-omap2/omap-mpuss-lowpower.c214 * The purpose of this function is to manage low power programmingCOMMENT
LOWarch/arm/mach-omap1/board-ams-delta.c608 * The purpose of this function is to take care of proper initialization ofCOMMENT
LOW⚡scripts/recordmcount.pl537# Step 3: Compile the file that holds the list of call sites to mcount.COMMENT
LOW⚡scripts/recordmcount.pl544# Step 4: Do we have sections that started with local functions?COMMENT
LOW⚡scripts/recordmcount.pl559 # Step 5: set up each local function as a globalCOMMENT
22 more matches not shown…
Slop Phrases68 hits · 126 pts
SeverityFileLineSnippetContext
MEDIUMDocumentation/sound/cards/multisound.sh82# you can use isapnptools. These are described briefly here.COMMENT
MEDIUMDocumentation/sound/cards/multisound.sh84# pinnaclecfg is not required; you can use the snd-msnd-pinnacle moduleCOMMENT
MEDIUMDocumentation/sound/cards/multisound.sh192# -- OR you can use the following sequence without pinnaclecfg in non-PnP mode:COMMENT
MEDIUMDocumentation/sound/cards/multisound.sh256# trouble, you can try the setdigital.c programCOMMENT
MEDIUMDocumentation/sound/cards/multisound.sh268# When the Pinnacle is in non-PnP mode, you can use the followingCOMMENT
MEDIUMDocumentation/sound/cards/multisound.sh349# want to set it as the input source, you can use this program if youCOMMENT
LOWDocumentation/sound/cards/multisound.sh218# WARNING--probing isn't supported so try to make sure you have theCOMMENT
MEDIUM…dings/mtd/partitions/brcm,bcm947xx-cfe-partitions.yaml30 As mentioned earlier, role of some partitions may depend on extraCODE
LOWtools/include/linux/gfp_types.h22 * In case of changes, please don't forget to updateCOMMENT
MEDIUMtools/testing/selftests/zram/zram02.sh22# or you can use mem suffixes. But in some old kernels, memCOMMENT
MEDIUMtools/testing/selftests/zram/zram01.sh23# or you can use mem suffixes. But in some old kernels, memCOMMENT
MEDIUMtools/testing/selftests/x86/test_vsyscall.c379 * It's worth noting that this ABI is a bit nutty. write(2) can'tCOMMENT
LOWtools/testing/selftests/bpf/netlink_helpers.c210 /* Don't forget to skip that message. */COMMENT
MEDIUMtools/testing/ktest/config-bisect.pl318# It returns B's config values, but you can use A to see what A was.COMMENT
MEDIUMtools/perf/perf-archive.sh100# buildids file, you can use the following command:COMMENT
LOWtools/perf/trace/beauty/include/uapi/sound/asound.h103 /* Don't forget to change the following: */COMMENT
LOWtools/perf/trace/beauty/include/uapi/sound/asound.h155 /* Don't forget to change the following: */COMMENT
LOWtools/perf/trace/beauty/include/uapi/sound/asound.h162 /* Don't forget to change the following: */COMMENT
LOWnet/mac80211/mlme.c8256 * element (which carries the beacon interval). Don't forget to add aCOMMENT
LOWdrivers/misc/lattice-ecp3-config.c179 * Don't forget to release the firmware againCOMMENT
MEDIUMdrivers/mmc/host/usdhi6rol0.c1845 /* Set .max_segs to some random number. Feel free to adjust. */COMMENT
LOWdrivers/video/fbdev/macmodes.c29 * Order IS important! If you change these, don't forget to updateCOMMENT
LOWdrivers/gpu/drm/vc4/vc4_drv.h34/* Don't forget to update vc4_bo.c: bo_type_names[] when adding toCOMMENT
MEDIUMdrivers/gpu/drm/i915/i915_perf.c2812 * feature it's worth noting that clock ratio reports have to beCOMMENT
LOWdrivers/net/plip/plip.c563 * so don't forget to remove it.COMMENT
LOWdrivers/net/ethernet/xircom/xirc2ps_cs.c1076 * Note: don't forget to change the ALLOC_SKB to .. +3COMMENT
LOWdrivers/net/ethernet/toshiba/tc35815.c1238 /* Reset the hardware here. Don't forget to set the station address. */COMMENT
LOWdrivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c3859 (don't forget to mark the last one as last,CODE
LOWdrivers/net/wireless/ath/ath10k/mac.c9980 * Allow software encryption for all chips. Don't forget toCOMMENT
LOWdrivers/platform/surface/surface_gpe.c51 * Note: When changing this, don't forget to check that the MODULE_ALIAS belowCOMMENT
LOWdrivers/usb/storage/unusual_uas.h28 * and don't forget to CC: the USB development list <linux-usb@vger.kernel.org>COMMENT
LOWdrivers/usb/dwc2/hcd.c4009 * Return: a pointer to a struct dwc2_tt. Don't forget to callCOMMENT
LOWdrivers/dma/sun4i-dma.c983 * may still trigger, so don't forget to disable them.COMMENT
LOWdrivers/edac/amd64_edac.c766 pr_notice_once("Don't forget to decrease MCE polling interval in\n"CODE
MEDIUMdrivers/media/pci/cx23885/cx23885-cards.c1939 /* For documentation purposes, it's worth noting that thisCOMMENT
LOWinclude/uapi/drm/drm_mode.h72 * When adding a new stereo mode don't forget to adjust DRM_MODE_FLAGS_3D_MAXCOMMENT
LOWinclude/uapi/sound/asound.h104 /* Don't forget to change the following: */COMMENT
LOWinclude/uapi/sound/asound.h156 /* Don't forget to change the following: */COMMENT
LOWinclude/uapi/sound/asound.h163 /* Don't forget to change the following: */COMMENT
LOWinclude/linux/hmm.h45 * don't forget to update HMM_PFN_INOUT_FLAGSCOMMENT
LOWinclude/linux/gfp_types.h22 * In case of changes, please don't forget to updateCOMMENT
LOWinclude/linux/init.h38 * Don't forget to initialize data not at file scope, i.e. within a function,COMMENT
LOWinclude/linux/ipmi.h326 * Base device for the interface. Don't forget to put this whenCOMMENT
LOWinclude/sound/core.h348 * But, don't forget to clear to NULL at successful return for avoidingCOMMENT
LOWinclude/sound/pcm.h109/* If you change this don't forget to change rates[] table in pcm_native.c */COMMENT
LOWarch/m68k/include/asm/mac_via.h19 * instead (and don't forget to check rbv_present when using via2!)COMMENT
LOWarch/um/include/shared/init.h33 * Don't forget to initialize data not at file scope, i.e. within a function,COMMENT
LOWarch/x86/include/asm/perf_event_p4.h107 * with a special bit. (Don't forget to checkCOMMENT
MEDIUMarch/x86/kernel/cpu/amd.c259 * bit. It's worth noting that the A5 stepping (662) of someCOMMENT
LOWarch/arm64/kvm/nested.c847 /* Make sure we don't forget to do the laundry */COMMENT
LOWmm/memcontrol.c2844 * Don't forget to raise a MEMCG_MAX event for forced or rejectedCOMMENT
LOWmm/memcontrol.c5074 * Note: don't forget to update the 'samples/cgroup/memcg_event_listener'COMMENT
LOWfs/xfs/libxfs/xfs_format.h282 * NOTE: Don't forget to update secondary_sb_whack in xfs_repair whenCOMMENT
LOWfs/proc/task_mmu.c1082 * Don't forget to update Documentation/ on changes.COMMENT
LOWfs/btrfs/relocation.c1993 /* Don't forget to queue this reloc root for cleanup */COMMENT
LOWfs/btrfs/inode.c669 * Don't forget to free the reserved space, as for inlined extentCOMMENT
LOWfs/btrfs/fs.h247 * Note: don't forget to add new options to btrfs_show_options()COMMENT
LOWfs/ubifs/tnc.c3093 * Don't forget to update clean znode count afterCOMMENT
LOWfs/ntfs3/attrib.c911 /* Don't forget to update duplicate information in parent. */COMMENT
LOWfs/ext4/super.c4467 /* don't forget to enable journal_csum when metadata_csum is enabled. */COMMENT
8 more matches not shown…
Cross-Language Confusion25 hits · 124 pts
SeverityFileLineSnippetContext
HIGHDocumentation/sphinx/maintainers_include.py43 const cellText = (tds[j].textContent || tds[j].innerText);CODE
HIGHtools/power/pm-graph/sleepgraph.py5189 if((cpu >= 0 && dname.match("CPU_O[NF]*\\[*"+cpu+"\\]")) ||CODE
HIGHtools/power/pm-graph/sleepgraph.py5226 if(total[1] > 0 && total[2] > 0)CODE
HIGHtools/power/pm-graph/sleepgraph.py5251 if((cpu >= 0 && dname.match("CPU_O[NF]*\\[*"+cpu+"\\]")) ||CODE
HIGHtools/power/pm-graph/sleepgraph.py5406 } else if(i > idx1 && i <= idx2) {CODE
HIGHtools/power/pm-graph/sleepgraph.py5434 document.onmousemove = null;CODE
HIGHtools/power/pm-graph/sleepgraph.py5438 if(c != 42 && c != 43 && c != 45) return;CODE
HIGH⚡tools/crypto/tcrypt/tcrypt_speed_compare.py31lsmod | grep pcrypt && modprobe -r pcryptSTRING
HIGH⚡tools/crypto/tcrypt/tcrypt_speed_compare.py38lsmod | grep pcrypt && modprobe -r pcryptSTRING
HIGH⚡tools/crypto/tcrypt/tcrypt_speed_compare.py43lsmod | grep pcrypt && modprobe -r pcryptSTRING
HIGHtools/testing/selftests/drivers/net/hw/tso.py151 listen_cmd = f"socat -{ipver} -t 2 -u TCP-LISTEN:{listen_opts} /dev/null,ignoreeof"CODE
HIGHtools/testing/selftests/drivers/net/hw/tso.py214 listen_cmd = f"socat -{ipver} -t 2 -u TCP-LISTEN:{listen_opts} /dev/null,ignoreeof"CODE
HIGHtools/testing/selftests/turbostat/smi_aperf_mperf.py9# Calling it with None (null), we get handle to the our own image (python interpreter).COMMENT
HIGHtools/perf/pmu-events/jevents.py994\t\tif (!pe.name && name) {CODE
HIGHtools/perf/pmu-events/jevents.py1119\t\tif (!pm.metric_name && metric) {CODE
HIGHtools/perf/pmu-events/jevents.py1196\tif (has_last_result && last_result.cpu.cpu == cpu.cpu)CODE
HIGHtools/perf/tests/shell/lib/perf_metric_validation.py375 if "metric-unit" in result and result["metric-unit"] != "(null)" and result["metric-unit"] != "":CODE
HIGHscripts/checkkconfigsymbols.py179 undefined, defined = check_symbols(args.ignore)CODE
HIGHscripts/checkkconfigsymbols.py182 for symbol in sorted(undefined):CODE
HIGHscripts/checkkconfigsymbols.py373 return undefined, defined_symbolsCODE
HIGHscripts/sbom/tests/cmd_graph/test_savedcmd_parser.py64 cmd = r"""{ printf 'static char tomoyo_builtin_profile[] __initdata =\n'; sed -e 's/\\/\\\\/g' -e 's/\"/\\"/g' CODE
HIGHscripts/sbom/tests/cmd_graph/test_savedcmd_parser.py69 cmd = """(echo "static char tomoyo_builtin_profile[] __initdata ="; ./scripts/bin2c </dev/null; echo ";"; echo "CODE
HIGHscripts/sbom/tests/cmd_graph/test_savedcmd_parser.py184 cmd = """ld -o arch/x86/entry/vdso/vdso64.so.dbg -shared --hash-style=both --build-id=sha1 --eh-frame-hdr -BsymCODE
HIGHscripts/sbom/tests/cmd_graph/test_savedcmd_parser.py251 cmd = """OBJTREE=/workspace/linux/kernel_build rustc -Zbinary_dep_depinfo=y -Astable_features -Dnon_ascii_identsCODE
HIGHscripts/sbom/tests/cmd_graph/test_savedcmd_parser.py462 cmd = "mkdir -p drivers/gpu/drm/msm/generated && python3 ../drivers/gpu/drm/msm/registers/gen_header.py --no-valCODE
AI Slop Vocabulary43 hits · 115 pts
SeverityFileLineSnippetContext
MEDIUMDocumentation/sphinx/kerneldoc.py142 # FIXME: make this nicer and more robust against errorsCOMMENT
MEDIUMtools/tracing/rtla/tests/engine.sh4 # Count tests to allow the test harness to double-check if all wereCOMMENT
LOWtools/testing/selftests/net/ipvtap_test.sh88 # If just add/remove IP, nothing interesting will happen.COMMENT
LOWtools/testing/selftests/net/forwarding/lib.sh29: "${PING6:=ping6}" # Some distros just use ping.CODE
MEDIUMtools/testing/selftests/net/hsr/link_faults.sh251 # with access to global variables from the test harness.COMMENT
MEDIUMtools/testing/selftests/drivers/net/hw/rss_ctx.py726 # utilize context from ntuple filterCOMMENT
MEDIUMtools/testing/selftests/drivers/net/hw/rss_ctx.py766 # utilize context from ntuple filterCOMMENT
LOWtools/testing/selftests/zram/zram02.sh26# memparse() which supports mem suffixes. So here we just useCOMMENT
LOWtools/testing/selftests/zram/zram01.sh27# memparse() which supports mem suffixes. So here we just useCOMMENT
MEDIUMtools/testing/selftests/mm/ksft_kmemleak_dedup.sh84 # robust to that, or this test should be excluded from the run.COMMENT
MEDIUMtools/verification/tests/engine.sh4 # Count tests to allow the test harness to double-check if all wereCOMMENT
MEDIUMtools/arch/sparc/include/asm/barrier_64.h8 * #51. Essentially, if a memory barrier occurs soon after a mispredictedCOMMENT
LOWtools/lib/python/kdoc/c_lex.py207 # While we could just use _tokenize directly via interator,COMMENT
MEDIUMtools/perf/python/task-analyzer.py3# task-analyzer.py - comprehensive perf tasks analysisCOMMENT
MEDIUMtools/objtool/tests/run-tests.sh12# The harness checks the environment once up front and fails the run if theCOMMENT
MEDIUMtools/objtool/tests/run-tests.sh75# Sourcing the harness runs its preflight, which decides which architectureCOMMENT
MEDIUMtools/objtool/tests/lib.sh536# Only $CC (or an explicit THIN_CC override) is consulted -- the harness doesCOMMENT
LOWdrivers/gpu/drm/ci/gitlab-ci.yml188 # changed, else we'll just use the already-built containersCOMMENT
MEDIUMdrivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c197 // we want to turn off edp displays if odm is enabled and no seamless bootCOMMENT
MEDIUM…vers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c2140 // Check seamless boot supportCOMMENT
MEDIUM…vers/gpu/drm/amd/display/dc/hwss/dcn42b/dcn42b_hwseq.c135 // seamless boot is enabled or not to suppress global syncCOMMENT
MEDIUMdrivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c229 // we want to turn off edp displays if odm is enabled and no seamless bootCOMMENT
MEDIUMdrivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c733 // seamless boot is enabled or not to suppress global syncCOMMENT
MEDIUMdrivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c1711 // seamless boot is enabled or not to suppress global syncCOMMENT
MEDIUMdrivers/gpu/drm/amd/display/dc/core/dc.c2092 // or not necessary for seamless boot validation.COMMENT
MEDIUMdrivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c740 // The DML spreadsheet assumes that the two cursors utilize the same amount of bandwidth. We'llCOMMENT
MEDIUMdrivers/gpu/drm/amd/display/dc/link/link_dpms.c2074 // check for seamless bootCOMMENT
MEDIUMdrivers/gpu/nova-core/driver.rs60 // Probe the `IORESOURCE_MEM_64` flag of BAR0 as a robust way of exposingCOMMENT
MEDIUMdrivers/gpu/nova-core/gsp/cmdq.rs931 /// An OS error or robust-channel record is logged at error level and an unknown function codeCOMMENT
MEDIUMdrivers/net/ethernet/netronome/nfp/nfp_net_ctrl.h251#define NFP_NET_BPF_CAP_RELO (1 << 0) /* seamless reload */COMMENT
MEDIUMdrivers/usb/gadget/udc/pxa25x_udc.c625 // TODO experiment: how robust can fifo mode tweaking be?COMMENT
LOWinclude/sound/emu10k1.h873#define A_SPDIF_RATE_MASK 0x000000e0 /* Any other values for rates, just use 48000 */COMMENT
MEDIUMrust/pin-init/src/__internal.rs68/// This trait is only implemented via the `#[pin_data]` proc-macro. It is used to facilitateCOMMENT
MEDIUMrust/zerocopy/src/layout.rs1195 // We use Kani to prove that this method is robust to future increasesCOMMENT
MEDIUMrust/kernel/build_assert.rs11//! the list are more robust and trigger earlier in the compilation pipeline. Therefore, you shouldCOMMENT
MEDIUMrust/kernel/devres.rs149// leverage `bindgen` to take care of this depending on whether a symbol is (already) exported.COMMENT
MEDIUMrust/kernel/dma_buf/dma_fence.rs508 // To be as robust as possible for the future we guarantee that an APICOMMENT
LOWsamples/pktgen/functions.sh122 # Trick so, program can be run as normal user, will just use "sudo"COMMENT
MEDIUMarch/sparc/include/asm/barrier_64.h6 * #51. Essentially, if a memory barrier occurs soon after a mispredictedCOMMENT
LOWscripts/check_extable.sh26# __ex_table relocation to your new section is expected), simply add yourCOMMENT
MEDIUMscripts/dtc/update-dtc-source.sh21# aren't a big deal. If anyone is interested in making it more robust, theCOMMENT
MEDIUMlib/crypto/mips/poly1305-mips.pl45# The return value is placed in $a0. Following coding rules facilitateCOMMENT
MEDIUMfs/affs/amigaffs.h146#define FIBF_OWNER 0x000F /* Bits pertaining to owner */COMMENT
Fake / Example Data61 hits · 76 pts
SeverityFileLineSnippetContext
LOWtools/testing/selftests/tty/tty_tiocsti_test.c254 char dummy_data = 'F';CODE
LOWtools/testing/selftests/tty/tty_tiocsti_test.c255 struct iovec iov = { .iov_base = &dummy_data, .iov_len = 1 };CODE
LOWtools/testing/selftests/tty/tty_tiocsti_test.c278 char dummy_data;CODE
LOWtools/testing/selftests/tty/tty_tiocsti_test.c279 struct iovec iov = { .iov_base = &dummy_data, .iov_len = 1 };CODE
LOWtools/testing/selftests/bpf/uptr_test_common.h14struct user_data *dummy_data;CODE
LOWtools/testing/selftests/bpf/prog_tests/snprintf_btf.c122 "placeholder");CODE
LOW…esting/selftests/bpf/prog_tests/test_task_local_data.c170 snprintf(dummy_key_name, TLD_NAME_LEN, "dummy_value%d", i);CODE
LOW…esting/selftests/filesystems/epoll/epoll_wakeup_test.c3525 int64_t dummy_data = 99;CODE
LOW…esting/selftests/filesystems/epoll/epoll_wakeup_test.c3539 write(ctx.efd[1], &dummy_data, sizeof(dummy_data));CODE
LOWnet/sched/cls_flower.c106 struct fl_flow_key dummy_key;CODE
LOWnet/sched/cls_flower.c2818 cls_flower.rule->match.key = &tmplt->dummy_key;CODE
LOWnet/sched/cls_flower.c2868 err = fl_set_key(net, tca_opts, tb, &tmplt->dummy_key,CODE
LOWnet/sched/cls_flower.c2913 cls_flower.rule->match.key = &tmplt->dummy_key;CODE
LOWnet/sched/cls_flower.c3836 key = &tmplt->dummy_key;CODE
LOWdrivers/pci/slot.c262 * and bb is the bus number. In other words, the devfn of the 'placeholder'COMMENT
LOWdrivers/net/macsec.c4359 char dummy_key[DEFAULT_SAK_LEN] = { 0 };CODE
LOWdrivers/net/macsec.c4362 dummy_tfm = macsec_alloc_tfm(dummy_key,CODE
LOW⚡drivers/net/netdevsim/dev.c84 void *dummy_data;CODE
LOW⚡drivers/net/netdevsim/dev.c86 dummy_data = kmalloc(NSIM_DEV_DUMMY_REGION_SIZE, GFP_KERNEL);CODE
LOW⚡drivers/net/netdevsim/dev.c87 if (!dummy_data)CODE
LOW⚡drivers/net/netdevsim/dev.c90 get_random_bytes(dummy_data, NSIM_DEV_DUMMY_REGION_SIZE);CODE
LOW⚡drivers/net/netdevsim/dev.c92 *data = dummy_data;COMMENT
LOW⚡drivers/net/netdevsim/dev.c103 u8 *dummy_data;CODE
LOW⚡drivers/net/netdevsim/dev.c109 err = nsim_dev_take_snapshot(devlink, NULL, NULL, &dummy_data);CODE
LOW⚡drivers/net/netdevsim/dev.c116 kfree(dummy_data);CODE
LOW⚡drivers/net/netdevsim/dev.c120 dummy_data, id);CODE
LOW⚡drivers/net/netdevsim/dev.c124 kfree(dummy_data);CODE
LOWdrivers/i2c/i2c-core-base.c1111static const struct i2c_device_id dummy_id[] = {CODE
LOWdrivers/i2c/i2c-core-base.c1125 .id_table = dummy_id,CODE
LOW⚡drivers/spi/spi-stm32-qspi.c584 dev_dbg(qspi->dev, "tx_buf:%p tx_nbits:%d rx_buf:%p rx_nbits:%d len:%d dummy_data:%d\n",CODE
LOW⚡drivers/spi/spi-stm32-qspi.c587 transfer->len, transfer->dummy_data);CODE
LOW⚡drivers/spi/spi-stm32-qspi.c594 if (transfer->dummy_data) {CODE
LOWdrivers/spi/spi-mem.c491 xfers[xferpos].dummy_data = 1;CODE
LOW⚡drivers/spi/spi-stm32-ospi.c682 dev_dbg(ospi->dev, "tx_buf:%p tx_nbits:%d rx_buf:%p rx_nbits:%d len:%d dummy_data:%d\n",CODE
LOW⚡drivers/spi/spi-stm32-ospi.c685 transfer->len, transfer->dummy_data);CODE
LOW⚡drivers/spi/spi-stm32-ospi.c692 if (transfer->dummy_data) {CODE
LOWdrivers/spi/spi-tegra210-quad.c1435 if (xfer->dummy_data) {CODE
LOWdrivers/spi/spi-tegra210-quad.c1564 if (next_xfer->dummy_data) {CODE
LOWdrivers/spi/spi-tegra210-quad.c1669 if (xfer->dummy_data != 1)CODE
LOWdrivers/mtd/chips/map_absent.c3 * Common code to handle absent "placeholder" devicesCOMMENT
LOWdrivers/mtd/chips/map_absent.c6 * This map driver is used to allocate "placeholder" MTDCOMMENT
LOWdrivers/mfd/ocelot-spi.c159 xfers[index].dummy_data = 1;CODE
LOWinclude/linux/spi/spi.h1021 * @dummy_data: indicates transfer is dummy bytes transfer.COMMENT
LOWinclude/linux/spi/spi.h1147 unsigned dummy_data:1;CODE
LOWrust/kernel/dma_buf/dma_fence.rs689/// let fence_data = FenceData { data: c"dummy_data".try_into()? };COMMENT
LOW⚡arch/x86/kernel/umip.c261 unsigned long dummy_value;CODE
LOW⚡arch/x86/kernel/umip.c264 dummy_value = CR0_STATE;CODE
LOW⚡arch/x86/kernel/umip.c266 dummy_value = GDT_ENTRY_TSS * 8;CODE
LOW⚡arch/x86/kernel/umip.c271 dummy_value = GDT_ENTRY_LDT * 8;CODE
LOW⚡arch/x86/kernel/umip.c273 dummy_value = 0;CODE
LOW⚡arch/x86/kernel/umip.c276 dummy_value = 0;CODE
LOWarch/x86/kernel/umip.c293 memcpy(data, &dummy_value, *data_size);CODE
LOWarch/x86/kernel/umip.c351 unsigned char dummy_data[10] = { 0 };CODE
LOWarch/x86/kernel/umip.c383 if (emulate_umip_insn(&insn, umip_inst, dummy_data, &dummy_data_size,CODE
LOWarch/x86/kernel/umip.c405 memcpy(reg_addr, dummy_data, dummy_data_size);CODE
LOWarch/x86/kernel/umip.c411 nr_copied = copy_to_user(uaddr, dummy_data, dummy_data_size);CODE
LOWmm/hugetlb.c885 * may be a "placeholder" entry in the map which is of the formCOMMENT
LOWfs/ecryptfs/crypto.c1428 char dummy_key[ECRYPTFS_MAX_KEY_BYTES];CODE
LOWfs/ecryptfs/crypto.c1453 get_random_bytes(dummy_key, *key_size);CODE
LOWfs/ecryptfs/crypto.c1454 rc = crypto_skcipher_setkey(*key_tfm, dummy_key, *key_size);CODE
1 more matches not shown…
Modern Structural Boilerplate50 hits · 54 pts
SeverityFileLineSnippetContext
LOWDocumentation/sphinx/kernel_include.py105logger = logging.getLogger(__name__)CODE
LOWDocumentation/sphinx/parser_yaml.py27logger = logging.getLogger(__name__)CODE
LOWDocumentation/sphinx/kerneldoc.py57logger = logging.getLogger(__name__)CODE
LOWtools/net/sunrpc/xdrgen/xdr_parse.py44def set_xdr_annotate(set_it: bool) -> None:CODE
LOWtools/net/sunrpc/xdrgen/xdr_parse.py55def set_xdr_enum_validation(set_it: bool) -> None:CODE
LOWtools/net/ynl/pyynl/lib/__init__.py13__all__ = ["SpecAttr", "SpecAttrSet", "SpecEnumEntry", "SpecEnumSet",CODE
LOWtools/testing/selftests/net/lib/py/ynl.py30__all__ = [CODE
LOWtools/testing/selftests/net/lib/py/__init__.py23__all__ = ["KSRC",CODE
LOWtools/testing/selftests/drivers/net/shaper.py76def set_qshapers(cfg, nl_shaper) -> None:CODE
LOWtools/testing/selftests/drivers/net/shaper.py139def set_nshapers(cfg, nl_shaper) -> None:CODE
LOWtools/testing/selftests/drivers/net/shaper.py171def set_all_supported_attrs(cfg, nl_shaper) -> None:CODE
LOWtools/testing/selftests/drivers/net/shaper.py611def set_node_shaper(cfg, nl_shaper) -> None:STRING
LOW⚡tools/testing/selftests/drivers/net/napi_threaded.py26def _set_threaded_state(cfg, threaded) -> None:CODE
LOW⚡tools/testing/selftests/drivers/net/napi_threaded.py31def _setup_deferred_cleanup(cfg) -> None:CODE
LOWtools/testing/selftests/drivers/net/hds.py94def set_hds_enable(cfg, netnl) -> None:CODE
LOWtools/testing/selftests/drivers/net/hds.py112def set_hds_disable(cfg, netnl) -> None:CODE
LOWtools/testing/selftests/drivers/net/hds.py130def set_hds_thresh_zero(cfg, netnl) -> None:CODE
LOWtools/testing/selftests/drivers/net/hds.py148def set_hds_thresh_random(cfg, netnl) -> None:CODE
LOWtools/testing/selftests/drivers/net/hds.py179def set_hds_thresh_max(cfg, netnl) -> None:CODE
LOWtools/testing/selftests/drivers/net/hds.py197def set_hds_thresh_gt(cfg, netnl) -> None:CODE
LOWtools/testing/selftests/drivers/net/hds.py213def set_xdp(cfg, netnl) -> None:CODE
LOW⚡tools/testing/selftests/drivers/net/ping.py63def _set_offload_checksum(cfg, netnl, on) -> None:CODE
LOW⚡tools/testing/selftests/drivers/net/ping.py69def _set_xdp_generic_sb_on(cfg) -> None:CODE
LOW⚡tools/testing/selftests/drivers/net/ping.py78def _set_xdp_generic_mb_on(cfg) -> None:CODE
LOW⚡tools/testing/selftests/drivers/net/ping.py88def _set_xdp_native_sb_on(cfg) -> None:CODE
LOW⚡tools/testing/selftests/drivers/net/ping.py105def _set_xdp_native_mb_on(cfg) -> None:CODE
LOW⚡tools/testing/selftests/drivers/net/ping.py118def _set_xdp_offload_on(cfg) -> None:CODE
LOWtools/testing/selftests/drivers/net/ping.py142def set_interface_init(cfg) -> None:CODE
LOWtools/perf/python/ttimechart.py244 def set_comm(self, comm: Optional[str]) -> None:CODE
LOWtools/perf/python/ttimechart.py553 def update_comms(self) -> None:CODE
LOWtools/perf/python/ttimechart.py1084 def update_size(self) -> None:CODE
LOWtools/perf/python/ttimechart.py1097 def set_rows(self, rows: List[Row]) -> None:CODE
LOWtools/perf/python/ttimechart.py1127 def set_window(self, window: TimeWindow) -> None:CODE
LOWtools/perf/python/ttimechart.py1433 def update_legends(self) -> None:CODE
LOWtools/perf/python/ttimechart.py1494 def update_progress(self, data: TimechartData) -> None:CODE
LOWtools/perf/python/ttimechart.py1554 def update_views(self) -> None:CODE
LOWtools/perf/python/ttimechart.py1587 def update_summary(self) -> None:CODE
LOWtools/perf/python/ttimechart.py1639 def update_details(self) -> None:CODE
LOWtools/perf/python/treport.py633 def update_views(self) -> None:CODE
LOWtools/perf/python/treport.py667 def update_progress(self, profile: "ProfileBuilder") -> None:CODE
LOWtools/perf/python/ilist.py255 def set_searched_tree_node(self, previous: bool) -> None:CODE
LOWtools/perf/python/ilist.py285 def set_initial_focus(event: str | None) -> None:CODE
LOWtools/perf/python/ilist.py343 def update_counts(self) -> None:CODE
LOWtools/perf/python/ilist.py388 def set_selected(self, value: TreeValue) -> None:CODE
LOWtools/perf/python/task-analyzer.py97 def update_max_entries(self) -> None:CODE
LOWtools/perf/python/task-analyzer.py142 def update_pid(self, pid: int) -> None:CODE
LOWscripts/sbom/sbom/spdx_graph/__init__.py7__all__ = ["build_spdx_graphs", "SpdxIdGeneratorCollection"]CODE
LOWscripts/sbom/sbom/spdx/__init__.py7__all__ = ["JsonLdSpdxDocument", "SpdxId", "SpdxIdGenerator"]CODE
LOWscripts/sbom/sbom/cmd_graph/__init__.py7__all__ = ["CmdGraph", "CmdGraphNode", "CmdGraphNodeConfig"]CODE
LOWscripts/sbom/sbom/cmd_graph/savedcmd_parser/__init__.py6__all__ = ["parse_inputs_from_commands"]CODE
Synthetic Comment Markers7 hits · 50 pts
SeverityFileLineSnippetContext
HIGHtools/net/ynl/lib/ynl-priv.h112/* YNL specific helpers used by the auto-generated code */COMMENT
HIGHtools/net/ynl/lib/ynl.c937/* YNL specific helpers used by the auto-generated code */COMMENT
HIGHtools/include/uapi/linux/netlink.h59#define NLM_F_DUMP_FILTERED 0x20 /* Dump was filtered as requested */COMMENT
HIGHtools/time/udelay_test.sh8# at least as long as requested (as compared to ktime).COMMENT
HIGHdrivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0_2_pptable.h169 PPTable_t smc_pptable; // PPTable_t in driver_if.h -- as requested by PMFW, this offset shoCODE
HIGHinclude/uapi/linux/netlink.h67#define NLM_F_DUMP_FILTERED 0x20 /* Dump was filtered as requested */COMMENT
HIGHrust/zerocopy/src/lib.rs7429 // preserving the count as requested by the user is the behavior that weCOMMENT
Structural Annotation Overuse19 hits · 35 pts
SeverityFileLineSnippetContext
LOWtools/testing/selftests/net/ioam6.sh111# WARNING: Be careful if you modify the block below - it MUST be kept #COMMENT
LOW…vers/gpu/drm/amd/display/dc/hwss/dcn42b/dcn42b_hwseq.c203 // Step 1: To find out which OPTC is running & OPTC DSC is ONCOMMENT
LOW…vers/gpu/drm/amd/display/dc/hwss/dcn42b/dcn42b_hwseq.c225 // Step 2: To power down DSC but skip DSC of running OPTCCOMMENT
LOWdrivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c802 // Step 1: To find out which OPTC is running & OPTC DSC is ONCOMMENT
LOWdrivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c823 // Step 2: To power down DSC but skip DSC of running OPTCCOMMENT
LOWdrivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c1781 // Step 1: To find out which OPTC is running & OPTC DSC is ONCOMMENT
LOWdrivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c1803 // Step 2: To power down DSC but skip DSC of running OPTCCOMMENT
LOW⚡…gpu/drm/amd/display/dc/resource/dcn60/dcn60_resource.c965 // Step 1: Assign global mcache IDs for each planeCOMMENT
LOW⚡…gpu/drm/amd/display/dc/resource/dcn60/dcn60_resource.c968 // Step 2: Build the mcache pipe configurationCOMMENT
LOWdrivers/firewire/ohci.c2674 // NOTE: This function relies on this value, thus it is not thread-safe.COMMENT
LOW⚡scripts/recordmcount.pl537# Step 3: Compile the file that holds the list of call sites to mcount.COMMENT
LOW⚡scripts/recordmcount.pl544# Step 4: Do we have sections that started with local functions?COMMENT
LOW⚡scripts/recordmcount.pl559 # Step 5: set up each local function as a globalCOMMENT
LOW⚡scripts/recordmcount.pl564 # Step 6: Link the global version to our list.COMMENT
LOW⚡scripts/recordmcount.pl569 # Step 7: Convert the local functions back into local symbolsCOMMENT
LOW⚡scripts/recordmcount.pl581 # Step 8: Link the object with our list of call sites object.COMMENT
LOW⚡scripts/recordmcount.pl586 # Step 9: Move the result back to the original object.COMMENT
LOWscripts/recordmcount.pl395# Step 1: find all the local (static functions) and weak symbols.COMMENT
LOWscripts/recordmcount.pl448# Step 2: find the sections and mcount call sitesCOMMENT
Cross-File Repetition7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHtools/net/sunrpc/xdrgen/subcmds/definitions.py0translate an xdr specification into executable code that can be compiled for the linux kernel.STRING
HIGHtools/net/sunrpc/xdrgen/subcmds/source.py0translate an xdr specification into executable code that can be compiled for the linux kernel.STRING
HIGHtools/net/sunrpc/xdrgen/subcmds/declarations.py0translate an xdr specification into executable code that can be compiled for the linux kernel.STRING
HIGHtools/net/sunrpc/xdrgen/subcmds/lint.py0translate an xdr specification into executable code that can be compiled for the linux kernel.STRING
HIGHtools/docs/get_abi.py0parse abi documentation and produce results from it.STRING
HIGHtools/lib/python/abi/abi_parser.py0parse abi documentation and produce results from it.STRING
HIGHtools/lib/python/abi/system_symbols.py0parse abi documentation and produce results from it.STRING
Example Usage Blocks17 hits · 26 pts
SeverityFileLineSnippetContext
LOWDocumentation/arch/s390/config3270.sh5# Usage:COMMENT
LOWtools/net/sunrpc/extract.sh7# Usage:COMMENT
LOWtools/memory-model/scripts/simpletest.sh7# Usage:COMMENT
LOWtools/memory-model/scripts/checklitmus.sh7# Usage:COMMENT
LOWtools/memory-model/scripts/checkalllitmus.sh16# Usage:COMMENT
LOWtools/memory-model/scripts/hwfnseg.sh8# Usage:COMMENT
LOWtools/memory-model/scripts/runlitmus.sh15# Usage:COMMENT
LOWtools/memory-model/scripts/judgelitmus.sh21# Usage:COMMENT
LOWtools/memory-model/scripts/checktheselitmus.sh7# Usage:COMMENT
LOWtools/testing/selftests/rcutorture/bin/torture.sh336# Usage:COMMENT
LOWtools/testing/selftests/rcutorture/bin/torture.sh373# Usage:COMMENT
LOWtools/testing/selftests/bpf/gen_bpf_skel.sh7# Usage:COMMENT
LOWtools/perf/python/task-analyzer.py7# Usage:COMMENT
LOWdrivers/tty/vt/gen_ucs_fallback_table.py9# Usage:COMMENT
LOWdrivers/tty/vt/gen_ucs_recompose_table.py9# Usage:COMMENT
LOWscripts/checkstack.pl20# Usage:COMMENT
LOWscripts/checksyscalls.sh9# Usage:COMMENT
AI Structural Patterns26 hits · 24 pts
SeverityFileLineSnippetContext
LOWtools/power/pm-graph/sleepgraph.py4326CODE
LOWtools/power/pm-graph/sleepgraph.py659CODE
LOWtools/power/pm-graph/sleepgraph.py993CODE
LOWtools/cgroup/iocost_monitor.py193CODE
LOWtools/cgroup/iocost_monitor.py206CODE
LOWtools/docs/checktransupdate.py115CODE
LOWtools/docs/test_doc_build.py276CODE
LOWtools/testing/selftests/net/bpf_offload.py463CODE
LOWtools/testing/selftests/net/bpf_offload.py518CODE
LOWtools/testing/selftests/net/bpf_offload.py534CODE
LOWtools/testing/selftests/net/lib/py/utils.py46CODE
LOWtools/testing/selftests/net/lib/py/utils.py180CODE
LOWtools/testing/selftests/drivers/sdsi/sdsi_test.py51CODE
LOWtools/testing/selftests/tc-testing/tdc.py296CODE
LOWtools/testing/selftests/exec/binfmt_script.py45CODE
LOWtools/testing/selftests/hid/tests/test_wacom_generic.py310CODE
LOWtools/testing/selftests/damon/_damon_sysfs.py142CODE
LOWtools/testing/selftests/damon/_damon_sysfs.py268CODE
LOWtools/testing/selftests/damon/_damon_sysfs.py433CODE
LOWtools/writeback/wb_monitor.py78CODE
LOWtools/lib/python/kdoc/kdoc_files.py232CODE
LOWtools/lib/python/kdoc/kdoc_files.py329CODE
LOWtools/perf/pmu-events/metric.py454CODE
LOWtools/perf/tests/shell/lib/perf_metric_validation.py601CODE
LOWtools/perf/tests/shell/lib/perf_metric_validation.py38CODE
LOWscripts/gdb/linux/slab.py97CODE
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…ls/testing/selftests/net/srv6_hencap_red_l3vpn_test.sh11# In this example, hosts hs-1 and hs-2 are connected through an IPv4/IPv6 VPNCOMMENT
HIGH…/testing/selftests/net/srv6_hl2encap_red_l2vpn_test.sh10# In this example, hosts hs-1 and hs-2 are connected through an L2 VPN service.COMMENT
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHtools/testing/selftests/drivers/net/xdp.py132 Retrieves and formats statistics from an XDP map. Args: xdp_map_id: The ID of the XDP map from which tSTRING
HIGHscripts/clang-tools/gen_compile_commands.py153Extracts information from a .cmd line and creates an entry from it. Args: root_directory: The directory thaSTRING
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWdrivers/gpu/drm/amd/display/dc/mpc/dcn32/dcn32_mpc.c892 // TODO: implement movable CM locationCOMMENT
LOWdrivers/net/wireless/broadcom/b43/phy_g.c3007 //TODO: implement rev1 workaroundCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtools/unittests/test_cmatch.py398CODE