{
  "ml": {
    "v": "4",
    "fs": [
      {
        "id": 0,
        "prob": 0.9361863732337952,
        "class": 0
      }
    ],
    "prob": 0.9361864,
    "class": 0,
    "version": "v16.16",
    "thresholds": [
      0.9815004,
      0.99404883
    ],
    "analyzed_at": "2026-04-30T04:26:10Z"
  },
  "path": "ntb_hw_amd.c",
  "raw": {
    "v": "4",
    "fs": [
      {
        "f": "O₂(DyEr₂)",
        "x": 2,
        "id": 0,
        "is": [
          "MALLOC_DEFINE",
          "PCI_DEV",
          "PCI_DESCR",
          "PCI_DEV",
          "PCI_DESCR",
          "PCI_DEV",
          "PCI_DESCR",
          "SYSCTL_UINT",
          "bus_space_read_4",
          "bus_space_read_4",
          "bus_space_write_4",
          "bus_space_write_4",
          "device_get_softc",
          "amd_ntb_printf",
          "device_get_softc",
          "amd_ntb_printf",
          "device_get_softc",
          "amd_ntb_printf",
          "device_get_softc",
          "amd_ntb_peer_port_number",
          "amd_ntb_printf",
          "amd_ntb_printf",
          "NTB_LNK_STA_ACTIVE",
          "amd_link_is_up",
          "NTB_LNK_STA_SPEED",
          "amd_link_is_up",
          "NTB_LNK_STA_WIDTH",
          "device_get_softc",
          "amd_ntb_link_sta_speed",
          "amd_ntb_link_sta_width",
          "amd_link_is_up",
          "device_get_softc",
          "amd_ntb_printf",
          "amd_init_side_info",
          "amd_ntb_reg_write",
          "amd_ntb_printf",
          "amd_ntb_reg_read",
          "amd_ntb_printf",
          "amd_ntb_reg_write",
          "device_get_softc",
          "amd_ntb_printf",
          "amd_deinit_side_info",
          "amd_ntb_reg_write",
          "amd_ntb_printf",
          "amd_ntb_reg_read",
          "amd_ntb_printf",
          "amd_ntb_reg_write",
          "device_get_softc",
          "device_get_softc",
          "device_get_softc",
          "amd_ntb_printf",
          "amd_ntb_printf",
          "amd_ntb_peer_reg_write",
          "amd_ntb_printf",
          "amd_ntb_peer_reg_read",
          "amd_ntb_reg_write",
          "amd_ntb_printf",
          "amd_ntb_peer_reg_read",
          "amd_ntb_reg_write",
          "amd_ntb_printf",
          "amd_ntb_peer_reg_read",
          "device_get_softc",
          "amd_ntb_printf",
          "amd_ntb_mw_set_trans",
          "device_get_softc",
          "pmap_change_attr",
          "device_get_softc",
          "amd_ntb_printf",
          "device_get_softc",
          "amd_ntb_printf",
          "device_get_softc",
          "amd_ntb_printf",
          "device_get_softc",
          "amd_ntb_printf",
          "device_get_softc",
          "amd_ntb_reg_read",
          "amd_ntb_printf",
          "device_get_softc",
          "amd_ntb_printf",
          "amd_ntb_reg_write",
          "device_get_softc",
          "DB_MASK_LOCK",
          "amd_ntb_printf",
          "amd_ntb_reg_write",
          "DB_MASK_UNLOCK",
          "device_get_softc",
          "DB_MASK_LOCK",
          "amd_ntb_printf",
          "amd_ntb_reg_write",
          "DB_MASK_UNLOCK",
          "device_get_softc",
          "amd_ntb_printf",
          "amd_ntb_reg_write",
          "device_get_softc",
          "amd_ntb_printf",
          "device_get_softc",
          "amd_ntb_printf",
          "amd_ntb_reg_read",
          "amd_ntb_printf",
          "device_get_softc",
          "amd_ntb_printf",
          "amd_ntb_reg_write",
          "amd_ntb_printf",
          "amd_ntb_spad_write",
          "device_get_softc",
          "amd_ntb_printf",
          "amd_ntb_reg_read",
          "device_get_softc",
          "amd_ntb_reg_write",
          "sbuf_new_for_sysctl",
          "sbuf_printf",
          "sbuf_printf",
          "sbuf_printf",
          "amd_link_is_up",
          "sbuf_printf",
          "sbuf_printf",
          "sbuf_printf",
          "NTB_LNK_STA_SPEED",
          "sbuf_printf",
          "NTB_LNK_STA_WIDTH",
          "sbuf_printf",
          "sbuf_printf",
          "sbuf_printf",
          "sbuf_printf",
          "sbuf_printf",
          "sbuf_printf",
          "amd_ntb_reg_read",
          "sbuf_printf",
          "amd_ntb_reg_read",
          "sbuf_printf",
          "sbuf_printf",
          "amd_ntb_peer_reg_read",
          "sbuf_printf",
          "amd_ntb_peer_reg_read",
          "sbuf_printf",
          "amd_ntb_peer_reg_read",
          "sbuf_printf",
          "amd_ntb_reg_read",
          "sbuf_printf",
          "amd_ntb_reg_read",
          "sbuf_printf",
          "amd_ntb_reg_read",
          "sbuf_finish",
          "sbuf_delete",
          "device_get_sysctl_ctx",
          "SYSCTL_CHILDREN",
          "device_get_sysctl_tree",
          "SYSCTL_ADD_PROC",
          "amd_ntb_peer_reg_read",
          "pci_read_config",
          "amd_ntb_poll_link",
          "ntb_link_event",
          "amd_link_is_up",
          "callout_reset",
          "callout_reset",
          "ntb_db_event",
          "amd_ntb_interrupt",
          "amd_ntb_interrupt",
          "amd_ntb_reg_read",
          "amd_ntb_reg_write",
          "amd_ntb_reg_read",
          "amd_ntb_reg_read",
          "amd_ntb_reg_write",
          "amd_ntb_reg_read",
          "bus_alloc_resource_any",
          "bus_setup_intr",
          "bus_setup_intr",
          "malloc",
          "pci_release_msi",
          "free",
          "amd_ntb_create_msix_vec",
          "pci_msix_count",
          "MIN",
          "pci_alloc_msix",
          "free",
          "pci_release_msi",
          "pci_alloc_msi",
          "amd_ntb_setup_isr",
          "amd_ntb_free_msix_vec",
          "amd_ntb_reg_write",
          "bus_teardown_intr",
          "bus_release_resource",
          "rman_get_rid",
          "amd_ntb_free_msix_vec",
          "amd_ntb_reg_read",
          "mtx_init",
          "callout_init",
          "callout_reset",
          "amd_ntb_reg_write",
          "amd_ntb_get_topo",
          "amd_ntb_init_dev",
          "amd_ntb_init_isr",
          "PCI_RID2BAR",
          "rman_get_bustag",
          "rman_get_bushandle",
          "rman_get_start",
          "rman_get_size",
          "rman_get_virtual",
          "bus_alloc_resource_any",
          "save_bar_parameters",
          "print_map_success",
          "PCIR_BAR",
          "map_bar",
          "PCIR_BAR",
          "map_bar",
          "PCIR_BAR",
          "map_bar",
          "PCIR_BAR",
          "map_bar",
          "bus_release_resource",
          "device_get_softc",
          "PCI_MATCH",
          "device_set_desc",
          "device_get_softc",
          "pci_enable_busmaster",
          "amd_ntb_map_pci_bars",
          "amd_ntb_init",
          "amd_init_side_info",
          "amd_ntb_spad_clear",
          "amd_ntb_sysctl_init",
          "ntb_register_device",
          "amd_ntb_detach",
          "device_get_softc",
          "ntb_unregister_device",
          "amd_deinit_side_info",
          "callout_drain",
          "amd_ntb_deinit_isr",
          "mtx_destroy",
          "pci_disable_busmaster",
          "amd_ntb_unmap_pci_bars",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "DEVMETHOD",
          "MODULE_DEPEND",
          "MODULE_VERSION",
          "PCI_PNP_INFO"
        ],
        "ms": {
          "text": {
            "tab_count": 954.0,
            "digit_ratio": 0.02,
            "space_count": 2963.0,
            "total_lines": 1313.0,
            "char_entropy": 5.43,
            "mixed_indent": true,
            "unique_chars": 93.0,
            "import_density": 20.18,
            "string_density": 0.15,
            "avg_line_length": 24.75,
            "max_line_length": 81.0,
            "empty_line_ratio": 0.2,
            "last_line_length": 27.0,
            "most_common_char": "_",
            "whitespace_ratio": 0.15,
            "most_common_ratio": 0.07,
            "identifier_density": 1.09,
            "line_length_stddev": 23.1,
            "normalized_import_count": 7.31,
            "normalized_string_count": 5.52,
            "repeated_char_sequences": 1.0,
            "suspicious_comment_ratio": 0.2,
            "max_inline_whitespace_run": 4.0,
            "normalized_function_count": 1.57,
            "trailing_whitespace_lines": 1.0,
            "imports_to_functions_ratio": 4.65,
            "strings_to_functions_ratio": 3.51,
            "suspicious_identifier_ratio": 0.01,
            "normalized_unique_identifiers": 27.51,
            "identifiers_to_functions_ratio": 5.0
          },
          "imports": {
            "total": 265.0,
            "unique_modules": 89.0,
            "third_party_count": 265.0,
            "third_party_ratio": 1.0
          },
          "strings": {
            "total": 200.0,
            "avg_length": 22.95,
            "max_length": 59.0,
            "avg_entropy": 3.63,
            "total_bytes": 4591.0,
            "entropy_stddev": 0.63
          },
          "comments": {
            "chars": 3932.0,
            "lines": 115.0,
            "total": 30.0,
            "to_code_ratio": 0.1,
            "high_entropy_comments": 6.0
          },
          "functions": {
            "total": 57.0,
            "length_stddev": 14.23,
            "avg_name_length": 53.47,
            "no_params_count": 57.0,
            "avg_length_lines": 18.49,
            "max_length_lines": 79.0,
            "min_length_lines": 6.0,
            "high_entropy_names": 57.0,
            "density_per_100_lines": 4.34,
            "code_in_functions_ratio": 0.8
          },
          "identifiers": {
            "total": 1433.0,
            "avg_length": 13.49,
            "max_length": 24.0,
            "min_length": 1.0,
            "avg_entropy": 3.02,
            "reuse_ratio": 0.2,
            "unique_count": 285.0,
            "length_stddev": 5.73,
            "has_digit_ratio": 0.08,
            "sequential_names": 2.0,
            "single_char_count": 1.0,
            "single_char_ratio": 0.0,
            "high_entropy_count": 55.0,
            "high_entropy_ratio": 0.19,
            "all_lowercase_ratio": 0.68,
            "all_uppercase_ratio": 0.24,
            "numeric_suffix_count": 12.0,
            "double_underscore_count": 2.0,
            "underscore_prefix_count": 3.0
          }
        },
        "ss": [
          [
            2428,
            "\u003csys/param.h\u003e"
          ],
          [
            2451,
            "\u003csys/kernel.h\u003e"
          ],
          [
            2475,
            "\u003csys/systm.h\u003e"
          ],
          [
            2498,
            "\u003csys/bus.h\u003e"
          ],
          [
            2519,
            "\u003csys/lock.h\u003e"
          ],
          [
            2541,
            "\u003csys/malloc.h\u003e"
          ],
          [
            2565,
            "\u003csys/module.h\u003e"
          ],
          [
            2589,
            "\u003csys/mutex.h\u003e"
          ],
          [
            2612,
            "\u003csys/rman.h\u003e"
          ],
          [
            2634,
            "\u003csys/sbuf.h\u003e"
          ],
          [
            2656,
            "\u003csys/sysctl.h\u003e"
          ],
          [
            2681,
            "\u003cvm/vm.h\u003e"
          ],
          [
            2700,
            "\u003cvm/pmap.h\u003e"
          ],
          [
            2722,
            "\u003cmachine/bus.h\u003e"
          ],
          [
            2748,
            "\u003cdev/pci/pcireg.h\u003e"
          ],
          [
            2776,
            "\u003cdev/pci/pcivar.h\u003e"
          ],
          [
            2805,
            "ntb_hw_amd.h"
          ],
          [
            2806,
            "ntb_hw_amd.h"
          ],
          [
            2829,
            "dev/ntb/ntb.h"
          ],
          [
            2830,
            "dev/ntb/ntb.h"
          ],
          [
            2871,
            "amd_ntb_hw"
          ],
          [
            2872,
            "amd_ntb_hw"
          ],
          [
            2885,
            "amd_ntb_hw driver memory allocations"
          ],
          [
            2886,
            "amd_ntb_hw driver memory allocations"
          ],
          [
            3217,
            "AMD Non-Transparent Bridge"
          ],
          [
            3218,
            "AMD Non-Transparent Bridge"
          ],
          [
            3462,
            "AMD Non-Transparent Bridge"
          ],
          [
            3463,
            "AMD Non-Transparent Bridge"
          ],
          [
            3725,
            "Hygon Non-Transparent Bridge"
          ],
          [
            3726,
            "Hygon Non-Transparent Bridge"
          ],
          [
            3943,
            "AMD Non-Transparent Bridge"
          ],
          [
            3944,
            "AMD Non-Transparent Bridge"
          ],
          [
            4101,
            "AMD Non-Transparent Bridge"
          ],
          [
            4102,
            "AMD Non-Transparent Bridge"
          ],
          [
            4263,
            "Hygon Non-Transparent Bridge"
          ],
          [
            4264,
            "Hygon Non-Transparent Bridge"
          ],
          [
            4436,
            "amd_ntb_hw log level -- higher is verbose"
          ],
          [
            4437,
            "amd_ntb_hw log level -- higher is verbose"
          ],
          [
            5293,
            "%s: conn_type %d\\n"
          ],
          [
            5294,
            "%s: conn_type %d"
          ],
          [
            5636,
            "%s: peer cnt %d\\n"
          ],
          [
            5637,
            "%s: peer cnt %d"
          ],
          [
            5851,
            "%s: pidx %d conn type %d\\n"
          ],
          [
            5852,
            "%s: pidx %d conn type %d"
          ],
          [
            6352,
            "%s: port %d peer_port %d\\n"
          ],
          [
            6353,
            "%s: port %d peer_port %d"
          ],
          [
            6627,
            "%s: peer_sta 0x%x cntl_sta 0x%x\\n"
          ],
          [
            6628,
            "%s: peer_sta 0x%x cntl_sta 0x%x"
          ],
          [
            7656,
            "%s: int_mask 0x%x conn_type %d\\n"
          ],
          [
            7657,
            "%s: int_mask 0x%x conn_type %d"
          ],
          [
            7970,
            "%s: Enabling Link.\\n"
          ],
          [
            7971,
            "%s: Enabling Link."
          ],
          [
            8115,
            "%s: ntb_ctl 0x%x\\n"
          ],
          [
            8116,
            "%s: ntb_ctl 0x%x"
          ],
          [
            8362,
            "%s: int_mask 0x%x conn_type %d\\n"
          ],
          [
            8363,
            "%s: int_mask 0x%x conn_type %d"
          ],
          [
            8678,
            "%s: Disabling Link.\\n"
          ],
          [
            8679,
            "%s: Disabling Link."
          ],
          [
            8825,
            "%s: ntb_ctl 0x%x\\n"
          ],
          [
            8826,
            "%s: ntb_ctl 0x%x"
          ],
          [
            10525,
            "%s: size 0x%jx greater than mw_size 0x%jx\\n"
          ],
          [
            10526,
            "%s: size 0x%jx greater than mw_size 0x%jx"
          ],
          [
            10675,
            "%s: mw %d mw_size 0x%jx size 0x%jx base %p\\n"
          ],
          [
            10676,
            "%s: mw %d mw_size 0x%jx size 0x%jx base %p"
          ],
          [
            11073,
            "%s: mw %d xlat_off 0x%x cur_val 0x%jx addr %p\\n"
          ],
          [
            11074,
            "%s: mw %d xlat_off 0x%x cur_val 0x%jx addr %p"
          ],
          [
            11578,
            "%s: limit_off 0x%x cur_val 0x%x limit 0x%x\\n"
          ],
          [
            11579,
            "%s: limit_off 0x%x cur_val 0x%x limit 0x%x"
          ],
          [
            11830,
            "%s: limit_off 0x%x cur_val 0x%jx limit 0x%jx\\n"
          ],
          [
            11831,
            "%s: limit_off 0x%x cur_val 0x%jx limit 0x%jx"
          ],
          [
            12153,
            "%s: mw_idx %d\\n"
          ],
          [
            12154,
            "%s: mw_idx %d"
          ],
          [
            13024,
            "%s: mw_idx %d\\n"
          ],
          [
            13025,
            "%s: mw_idx %d"
          ],
          [
            13407,
            "%s: db_count 0x%x\\n"
          ],
          [
            13408,
            "%s: db_count 0x%x"
          ],
          [
            13634,
            "%s: db_valid_mask 0x%x\\n"
          ],
          [
            13635,
            "%s: db_valid_mask 0x%x"
          ],
          [
            13876,
            "%s: vector %d db_count 0x%x db_valid_mask 0x%x\\n"
          ],
          [
            13877,
            "%s: vector %d db_count 0x%x db_valid_mask 0x%x"
          ],
          [
            14321,
            "%s: dbstat_off 0x%jx\\n"
          ],
          [
            14322,
            "%s: dbstat_off 0x%jx"
          ],
          [
            14531,
            "%s: db_bits 0x%jx\\n"
          ],
          [
            14532,
            "%s: db_bits 0x%jx"
          ],
          [
            14796,
            "%s: db_mask 0x%x db_bits 0x%jx\\n"
          ],
          [
            14797,
            "%s: db_mask 0x%x db_bits 0x%jx"
          ],
          [
            15139,
            "%s: db_mask 0x%x db_bits 0x%jx\\n"
          ],
          [
            15140,
            "%s: db_mask 0x%x db_bits 0x%jx"
          ],
          [
            15461,
            "%s: db_bits 0x%jx\\n"
          ],
          [
            15462,
            "%s: db_bits 0x%jx"
          ],
          [
            15727,
            "%s: spad_count 0x%x\\n"
          ],
          [
            15728,
            "%s: spad_count 0x%x"
          ],
          [
            15984,
            "%s: idx %d\\n"
          ],
          [
            15985,
            "%s: idx %d"
          ],
          [
            16190,
            "%s: offset 0x%x val 0x%x\\n"
          ],
          [
            16191,
            "%s: offset 0x%x val 0x%x"
          ],
          [
            16430,
            "%s: idx %d\\n"
          ],
          [
            16431,
            "%s: idx %d"
          ],
          [
            16635,
            "%s: offset 0x%x val 0x%x\\n"
          ],
          [
            16636,
            "%s: offset 0x%x val 0x%x"
          ],
          [
            17035,
            "%s: idx %d\\n"
          ],
          [
            17036,
            "%s: idx %d"
          ],
          [
            17241,
            "%s: offset 0x%x val 0x%x\\n"
          ],
          [
            17242,
            "%s: offset 0x%x val 0x%x"
          ],
          [
            17486,
            "%s: idx %d\\n"
          ],
          [
            17487,
            "%s: idx %d"
          ],
          [
            17691,
            "%s: offset 0x%x val 0x%x\\n"
          ],
          [
            17692,
            "%s: offset 0x%x val 0x%x"
          ],
          [
            18019,
            "NTB AMD Hardware info:\\n\\n"
          ],
          [
            18020,
            "NTB AMD Hardware info:"
          ],
          [
            18067,
            "AMD NTB side: %s\\n"
          ],
          [
            18068,
            "AMD NTB side: %s"
          ],
          [
            18128,
            "PRIMARY"
          ],
          [
            18129,
            "PRIMARY"
          ],
          [
            18140,
            "SECONDARY"
          ],
          [
            18141,
            "SECONDARY"
          ],
          [
            18171,
            "AMD LNK STA: 0x%#06x\\n"
          ],
          [
            18172,
            "AMD LNK STA: 0x%#06x"
          ],
          [
            18258,
            "AMD Link Status: Down\\n"
          ],
          [
            18259,
            "AMD Link Status: Down"
          ],
          [
            18312,
            "AMD Link Status: Up\\n"
          ],
          [
            18313,
            "AMD Link Status: Up"
          ],
          [
            18356,
            "AMD Link Speed: PCI-E Gen %u\\n"
          ],
          [
            18357,
            "AMD Link Speed: PCI-E Gen %u"
          ],
          [
            18448,
            "AMD Link Width: PCI-E Width %u\\n"
          ],
          [
            18449,
            "AMD Link Width: PCI-E Width %u"
          ],
          [
            18545,
            "AMD Memory window count: %d\\n"
          ],
          [
            18546,
            "AMD Memory window count: %d"
          ],
          [
            18625,
            "AMD Spad count: %d\\n"
          ],
          [
            18626,
            "AMD Spad count: %d"
          ],
          [
            18689,
            "AMD Doorbell count: %d\\n"
          ],
          [
            18690,
            "AMD Doorbell count: %d"
          ],
          [
            18764,
            "AMD MSI-X vec count: %d\\n\\n"
          ],
          [
            18765,
            "AMD MSI-X vec count: %d"
          ],
          [
            18839,
            "AMD Doorbell valid mask: 0x%x\\n"
          ],
          [
            18840,
            "AMD Doorbell valid mask: 0x%x"
          ],
          [
            18917,
            "AMD Doorbell Mask: 0x%x\\n"
          ],
          [
            18918,
            "AMD Doorbell Mask: 0x%x"
          ],
          [
            19009,
            "AMD Doorbell: 0x%x\\n"
          ],
          [
            19010,
            "AMD Doorbell: 0x%x"
          ],
          [
            19096,
            "AMD NTB Incoming XLAT: \\n"
          ],
          [
            19097,
            "AMD NTB Incoming XLAT: "
          ],
          [
            19143,
            "AMD XLAT1: 0x%jx\\n"
          ],
          [
            19144,
            "AMD XLAT1: 0x%jx"
          ],
          [
            19235,
            "AMD XLAT23: 0x%jx\\n"
          ],
          [
            19236,
            "AMD XLAT23: 0x%jx"
          ],
          [
            19329,
            "AMD XLAT45: 0x%jx\\n"
          ],
          [
            19330,
            "AMD XLAT45: 0x%jx"
          ],
          [
            19423,
            "AMD LMT1: 0x%x\\n"
          ],
          [
            19424,
            "AMD LMT1: 0x%x"
          ],
          [
            19507,
            "AMD LMT23: 0x%jx\\n"
          ],
          [
            19508,
            "AMD LMT23: 0x%jx"
          ],
          [
            19594,
            "AMD LMT45: 0x%jx\\n"
          ],
          [
            19595,
            "AMD LMT45: 0x%jx"
          ],
          [
            19999,
            "info"
          ],
          [
            20000,
            "info"
          ],
          [
            20096,
            "A"
          ],
          [
            20097,
            "A"
          ],
          [
            20101,
            "AMD NTB HW Information"
          ],
          [
            20102,
            "AMD NTB HW Information"
          ],
          [
            20473,
            "%s: SIDEINFO reg_val = 0x%x cntl_sta 0x%x\\n"
          ],
          [
            20474,
            "%s: SIDEINFO reg_val = 0x%x cntl_sta 0x%x"
          ],
          [
            20669,
            "%s: LINK_STATUS stat = 0x%x lnk_sta 0x%x.\\n"
          ],
          [
            20670,
            "%s: LINK_STATUS stat = 0x%x lnk_sta 0x%x."
          ],
          [
            21304,
            "Invalid vector %d\\n"
          ],
          [
            21305,
            "Invalid vector %d"
          ],
          [
            22693,
            "bus_alloc_resource IRQ failed\\n"
          ],
          [
            22694,
            "bus_alloc_resource IRQ failed"
          ],
          [
            23214,
            "bus_setup_intr %d failed\\n"
          ],
          [
            23215,
            "bus_setup_intr %d failed"
          ],
          [
            24140,
            "Error creating msix vectors: %d\\n"
          ],
          [
            24141,
            "Error creating msix vectors: %d"
          ],
          [
            24526,
            "No minimum msix: supported %d db %d\\n"
          ],
          [
            24527,
            "No minimum msix: supported %d db %d"
          ],
          [
            24799,
            "Error allocating msix vectors: %d\\n"
          ],
          [
            24800,
            "Error allocating msix vectors: %d"
          ],
          [
            24950,
            "Allocated only %d MSI-X\\n"
          ],
          [
            24951,
            "Allocated only %d MSI-X"
          ],
          [
            25359,
            "Error allocating msix vectors: %d\\n"
          ],
          [
            25360,
            "Error allocating msix vectors: %d"
          ],
          [
            25617,
            "%s: db %d msix %d msi %d intx %d\\n"
          ],
          [
            25618,
            "%s: db %d msix %d msi %d intx %d"
          ],
          [
            25828,
            "Error setting up isr: %d\\n"
          ],
          [
            25829,
            "Error setting up isr: %d"
          ],
          [
            26896,
            "amd ntb db bits"
          ],
          [
            26897,
            "amd ntb db bits"
          ],
          [
            27334,
            "Unsupported AMD NTB topology %d\\n"
          ],
          [
            27335,
            "Unsupported AMD NTB topology %d"
          ],
          [
            27655,
            "AMD NTB Side: %s\\n"
          ],
          [
            27656,
            "AMD NTB Side: %s"
          ],
          [
            27716,
            "PRIMARY"
          ],
          [
            27717,
            "PRIMARY"
          ],
          [
            27728,
            "SECONDARY"
          ],
          [
            27729,
            "SECONDARY"
          ],
          [
            28011,
            "Mapped BAR%d v:[%p-%p] p:[0x%jx-0x%jx] (0x%jx bytes) (%s)\\n"
          ],
          [
            28012,
            "Mapped BAR%d v:[%p-%p] p:[0x%jx-0x%jx] (0x%jx bytes) (%s)"
          ],
          [
            28947,
            "mmr"
          ],
          [
            28948,
            "mmr"
          ],
          [
            30125,
            "unable to allocate pci resource\\n"
          ],
          [
            30126,
            "unable to allocate pci resource"
          ]
        ],
        "sz": 33807,
        "ts": [
          {
            "a": "T1082",
            "c": 0.6000000238418579,
            "d": "Query or modify kernel state via sysctl",
            "e": [
              "sbuf_new_for_sysctl",
              "device_get_sysctl_ctx",
              "device_get_sysctl_tree",
              "amd_ntb_sysctl_init",
              "amd_ntb_sysctl_init(struct amd_ntb_softc *ntb)"
            ],
            "i": "micro-behaviors/os/sysinfo/config::sysctl",
            "l": 2,
            "m": "E1082"
          },
          {
            "c": 0.800000011920929,
            "d": "Architecture detection macros (x86/arm)",
            "e": [
              "#ifdef __i386__"
            ],
            "i": "objectives/discovery/host/software::arch-macro-detection-1",
            "l": 3
          },
          {
            "c": 0.8500000238418579,
            "d": "FreeBSD sysctl interface header",
            "e": [
              "sys/sysctl.h"
            ],
            "i": "objectives/evasion/kernel-hide/lkm::sys-sysctl-header",
            "l": 2
          },
          {
            "c": 0.8999999761581421,
            "d": "Sysctl handler function signature",
            "e": [
              "SYSCTL_HANDLER_ARGS"
            ],
            "i": "objectives/evasion/kernel-hide/lkm::sysctl-handler-args",
            "l": 1
          },
          {
            "a": "T1014",
            "c": 0.949999988079071,
            "d": "FreeBSD kernel module header include",
            "e": [
              "sys/module.h"
            ],
            "i": "objectives/evasion/kernel-hide/lkm::sys-module-header",
            "l": 3
          },
          {
            "c": 0.6000000238418579,
            "d": "Kernel error code return",
            "e": [
              "return (-EINVAL);",
              "return (-EINVAL);",
              "return (-EINVAL);",
              "return (-EINVAL);"
            ],
            "i": "objectives/evasion/kernel-hide/lkm/internals::error-code-return",
            "l": 1
          }
        ],
        "sha": "bb5739765ba8219ffb155936d20b36ec8552cb267332bf7a34fa768f36f98c8a",
        "path": "/data/samples/good/freebsd/usr/src/sys/dev/ntb/ntb_hw/ntb_hw_amd.c",
        "type": "c"
      }
    ],
    "tv": "f6eaa"
  }
}