repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/3rdparty/rga/RK3588/include/RockchipRga.h | null | null | null | null | null | null | C | 2026-05-04T18:56:47.530357 | /*
* Copyright (C) 2016 Rockchip Electronics Co., Ltd.
* Authors:
* Zhiqin Wei <wzq@rock-chips.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/3rdparty/rga/RK3588/include/GrallocOps.h | null | null | null | null | null | null | C | 2026-05-04T18:56:47.531556 | /*
* Copyright (C) 2016 Rockchip Electronics Co., Ltd.
* Authors:
* Zhiqin Wei <wzq@rock-chips.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/3rdparty/rga/RK3588/include/im2d_common.h | null | null | null | null | null | null | C | 2026-05-04T18:56:47.533121 | /*
* Copyright (C) 2022 Rockchip Electronics Co., Ltd.
* Authors:
* Cerf Yu <cerf.yu@rock-chips.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/3rdparty/rga/RK3588/include/RgaUtils.h | null | null | null | null | null | null | C | 2026-05-04T18:56:47.534386 | /*
* Copyright (C) 2016 Rockchip Electronics Co., Ltd.
* Authors:
* Zhiqin Wei <wzq@rock-chips.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/3rdparty/rga/RK3588/include/RgaApi.h | null | null | null | null | null | null | C | 2026-05-04T18:56:47.644798 | /*
* Copyright (C) 2016 Rockchip Electronics Co., Ltd.
* Authors:
* Zhiqin Wei <wzq@rock-chips.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/3rdparty/rga/RK3588/include/RgaMutex.h | null | null | null | null | null | null | C | 2026-05-04T18:56:47.645653 | /*
* Copyright (C) 2020 Rockchip Electronics Co., Ltd.
* Authors:
* PutinLee <putin.lee@rock-chips.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/3rdparty/rga/RK3588/include/RgaSingleton.h | null | null | null | null | null | null | C | 2026-05-04T18:56:47.662862 | /*
* Copyright (C) 2016 Rockchip Electronics Co., Ltd.
* Authors:
* Zhiqin Wei <wzq@rock-chips.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/3rdparty/rga/RK3588/include/im2d_expand.h | null | null | null | null | null | null | C | 2026-05-04T18:56:48.352501 | /*
* Copyright (C) 2022 Rockchip Electronics Co., Ltd.
* Authors:
* Cerf Yu <cerf.yu@rock-chips.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/3rdparty/rga/RK3588/include/im2d_single.h | null | null | null | null | null | null | C | 2026-05-04T18:56:48.353736 | /*
* Copyright (C) 2022 Rockchip Electronics Co., Ltd.
* Authors:
* Cerf Yu <cerf.yu@rock-chips.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/3rdparty/rga/RK3588/include/im2d_mpi.h | null | null | null | null | null | null | C | 2026-05-04T18:56:48.355284 | /*
* Copyright (C) 2022 Rockchip Electronics Co., Ltd.
* Authors:
* Cerf Yu <cerf.yu@rock-chips.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/3rdparty/rga/RK3588/include/im2d_version.h | null | null | null | null | null | null | C | 2026-05-04T18:56:48.553848 | /*
* Copyright (C) 2022 Rockchip Electronics Co., Ltd.
* Authors:
* Cerf Yu <cerf.yu@rock-chips.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/3rdparty/rga/RK3588/include/im2d_type.h | null | null | null | null | null | null | C | 2026-05-04T18:56:48.554462 | /*
* Copyright (C) 2022 Rockchip Electronics Co., Ltd.
* Authors:
* Cerf Yu <cerf.yu@rock-chips.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/3rdparty/rga/RK3588/include/rga.h | null | null | null | null | null | null | C | 2026-05-04T18:56:48.781504 | /*
* Copyright (C) 2016 Rockchip Electronics Co., Ltd.
* Authors:
* Zhiqin Wei <wzq@rock-chips.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/3rdparty/rga/RK3588/include/im2d_task.h | null | null | null | null | null | null | C | 2026-05-04T18:56:48.943782 | /*
* Copyright (C) 2022 Rockchip Electronics Co., Ltd.
* Authors:
* Cerf Yu <cerf.yu@rock-chips.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/rga_func.h | null | null | null | null | null | null | C | 2026-05-04T18:56:49.839142 | #ifndef __RGA_FUNC_H__
#define __RGA_FUNC_H__
#include <dlfcn.h>
#include "RgaApi.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef int(* FUNC_RGA_INIT)();
typedef void(* FUNC_RGA_DEINIT)();
typedef int(* FUNC_RGA_BLIT)(rga_info_t *, rga_info_t *, rga_info_t *);
typedef struct _rga_context{
void *rga_handle;
... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/rknn_matmul_api.h | null | null | null | null | null | null | C | 2026-05-04T18:56:49.840219 | /****************************************************************************
*
* Copyright (c) 2017 - 2018 by Rockchip Corp. All rights reserved.
*
* The material in this file is confidential and contains trade secrets
* of Rockchip Corporation. This is proprietary information owned by
* Rockchip Co... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/rknn_api.h | null | null | null | null | null | null | C | 2026-05-04T18:56:49.875256 | /****************************************************************************
*
* Copyright (c) 2017 - 2022 by Rockchip Corp. All rights reserved.
*
* The material in this file is confidential and contains trade secrets
* of Rockchip Corporation. This is proprietary information owned by
* Rockchip Corporat... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/drm_func.h | null | null | null | null | null | null | C | 2026-05-04T18:56:50.107285 | #ifndef __DRM_FUNC_H__
#define __DRM_FUNC_H__
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/fcntl.h>// open function
#include <unistd.h> // close function
#include <errno.h>
#include <sys/mman.h>
#include <linux/input.h>
#include "libdrm/drm_fourcc.h"
#include "xf86drm.h... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/postprocess.h | null | null | null | null | null | null | C | 2026-05-04T18:56:50.313057 | #ifndef _RKNN_YOLOV5_DEMO_POSTPROCESS_H_
#define _RKNN_YOLOV5_DEMO_POSTPROCESS_H_
#include <stdint.h>
#include <vector>
#define OBJ_NAME_MAX_SIZE 16
#define OBJ_NUMB_MAX_SIZE 64
#define OBJ_CLASS_NUM 80
#define NMS_THRESH 0.45
#define BOX_THRESH 0.25
#define PROP_BOX_SIZE (5 + OBJ_CLASS_NUM)
typedef struct _BOX_RECT... |
leafqycc/rknn-cpp-Multithreading | https://github.com/leafqycc/rknn-cpp-Multithreading | null | null | null | null | 729 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/preprocess.h | null | null | null | null | null | null | C | 2026-05-04T18:56:50.313700 | #ifndef _RKNN_YOLOV5_DEMO_PREPROCESS_H_
#define _RKNN_YOLOV5_DEMO_PREPROCESS_H_
#include <stdio.h>
#include "im2d.h"
#include "rga.h"
#include "opencv2/core/core.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/imgproc.hpp"
#include "postprocess.h"
void letterbox(const cv::Mat &image, cv::Mat &padded_image, BO... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/platforms/aarch64/dependency/elfutils-0.189/include/gelf.h | null | null | null | null | null | null | C | 2026-05-04T18:56:59.125737 | /* This file defines generic ELF types, structures, and macros.
Copyright (C) 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2015 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public Lice... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/platforms/aarch64/dependency/elfutils-0.189/include/elfutils/libdw.h | null | null | null | null | null | null | C | 2026-05-04T18:56:59.127155 | /* Interfaces for libdw.
Copyright (C) 2002-2010, 2013, 2014, 2016, 2018 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public License as published by the Free
Software Foundat... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/platforms/aarch64/dependency/elfutils-0.189/include/elfutils/libasm.h | null | null | null | null | null | null | C | 2026-05-04T18:56:59.128612 | /* Interface for libasm.
Copyright (C) 2002, 2005, 2008 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public License as published by the Free
Software Foundation; either versi... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/platforms/aarch64/dependency/elfutils-0.189/include/libelf.h | null | null | null | null | null | null | C | 2026-05-04T18:56:59.129712 | /* Interface for libelf.
Copyright (C) 1998-2010, 2015 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public License as published by the Free
Software Foundation; either versio... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/platforms/aarch64/dependency/elfutils-0.189/include/elfutils/version.h | null | null | null | null | null | null | C | 2026-05-04T18:56:59.137138 | /* Version information about elfutils development libraries.
Copyright (C) 2008 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public License as published by the Free
Software... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/platforms/aarch64/dependency/elfutils-0.189/include/elfutils/elf-knowledge.h | null | null | null | null | null | null | C | 2026-05-04T18:56:59.143840 | /* Accumulation of various pieces of knowledge about ELF.
Copyright (C) 2000-2012, 2014, 2016 Red Hat, Inc.
This file is part of elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2000.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU ... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/platforms/aarch64/dependency/elfutils-0.189/include/elfutils/libdwelf.h | null | null | null | null | null | null | C | 2026-05-04T18:56:59.157364 | /* Interfaces for libdwelf. DWARF ELF Low-level Functions.
Copyright (C) 2014, 2015, 2016, 2018 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public License as published by the Free
... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/platforms/aarch64/dependency/elfutils-0.189/include/dwarf.h | null | null | null | null | null | null | C | 2026-05-04T18:56:59.166289 | /* This file defines standard DWARF types, structures, and macros.
Copyright (C) 2000-2011, 2014, 2016, 2017, 2018 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public License as pub... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/platforms/aarch64/dependency/elfutils-0.189/include/elfutils/libdwfl.h | null | null | null | null | null | null | C | 2026-05-04T18:56:59.167520 | /* Interfaces for libdwfl.
Copyright (C) 2005-2010, 2013 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public License as published by the Free
Software Foundation; either vers... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/bpf_common_helper/map_helpers.h | null | null | null | null | null | null | C | 2026-05-04T18:57:00.174544 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/* Copyright (c) 2020 Anton Protopopov */
#ifndef __MAP_HELPERS_H
#define __MAP_HELPERS_H
#include <bpf/bpf.h>
int dump_hash(int map_fd, void *keys, __u32 key_size,
void *values, __u32 value_size, __u32 *count, void *invalid_key);
#endif /* __MAP_HELPE... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/bpf_common_helper/errno_helpers.c | null | null | null | null | null | null | C | 2026-05-04T18:57:00.175544 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
// Copyright (c) 2020 Anton Protopopov
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
#define warn(...) fprintf(stderr, __VA_ARGS__)
#ifdef __x86_64__
static int errno_by_name_x86_64(const char *errno_name)
{
#d... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/bpf_common_helper/errno_helpers.h | null | null | null | null | null | null | C | 2026-05-04T18:57:00.176851 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#ifndef __ERRNO_HELPERS_H
#define __ERRNO_HELPERS_H
int errno_by_name(const char *errno_name);
#endif /* __ERRNO_HELPERS_H */
|
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/platforms/aarch64/dependency/elfutils-0.189/include/nlist.h | null | null | null | null | null | null | C | 2026-05-04T18:57:00.178311 | /* Interface for nlist.
Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public License as published by the Free
Software Foundation; either ... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/bpf_common_helper/map_helpers.c | null | null | null | null | null | null | C | 2026-05-04T18:57:00.180037 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
// Copyright (c) 2020 Anton Protopopov
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include "map_helpers.h"
#define warn(...) fprintf(stderr, __VA_ARGS__)
static bool batch_map_ops = true; /* hope for the best */
static int
dump_hash_iter(int map_... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/bpf_common_helper/btf_helpers.h | null | null | null | null | null | null | C | 2026-05-04T18:57:00.181261 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#ifndef __BTF_HELPERS_H
#define __BTF_HELPERS_H
#include <bpf/libbpf.h>
int ensure_core_btf(struct bpf_object_open_opts *opts);
void cleanup_core_btf(struct bpf_object_open_opts *opts);
#endif /* __BTF_HELPERS_H */
|
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/bpf_common_helper/maps.bpf.h | null | null | null | null | null | null | C | 2026-05-04T18:57:00.182629 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
// Copyright (c) 2020 Anton Protopopov
#ifndef __MAPS_BPF_H
#define __MAPS_BPF_H
#include <bpf/bpf_helpers.h>
#include <asm-generic/errno.h>
static __always_inline void *
bpf_map_lookup_or_try_init(void *map, const void *key, const void *init)
{
void *val;
long... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/bpf_common_helper/btf_helpers.c | null | null | null | null | null | null | C | 2026-05-04T18:57:00.183550 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/utsname.h>
#include <zlib.h>
#include "trace_helpers.h"
#include "btf_helpers.h"
extern unsigned char _binary_min_core_btfs_tar_gz_start[] __attribute__((weak));
exter... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/platforms/aarch64/dependency/zlib-1.3.1/include/zconf.h | null | null | null | null | null | null | C | 2026-05-04T18:57:00.184193 | /* zconf.h -- configuration of the zlib compression library
* Copyright (C) 1995-2024 Jean-loup Gailly, Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id$ */
#ifndef ZCONF_H
#define ZCONF_H
/*
* If you *really* need a unique prefix for all types and library functi... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/platforms/aarch64/dependency/zlib-1.3.1/include/zlib.h | null | null | null | null | null | null | C | 2026-05-04T18:57:00.784558 | /* zlib.h -- interface of the 'zlib' general purpose compression library
version 1.3.1, January 22nd, 2024
Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising ... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/bpf_common_helper/syscall_helpers.h | null | null | null | null | null | null | C | 2026-05-04T18:57:01.307342 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#ifndef __SYSCALL_HELPERS_H
#define __SYSCALL_HELPERS_H
#include <stddef.h>
void init_syscall_names(void);
void free_syscall_names(void);
void list_syscalls(void);
void syscall_name(unsigned n, char *buf, size_t size);
#endif /* __SYSCALL_HELPERS_H */
|
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/component_helper/rbtree.h | null | null | null | null | null | null | C | 2026-05-04T18:57:01.334167 |
#ifndef MYTCPSTACK_RBTREE_H
#define MYTCPSTACK_RBTREE_H
/** 红黑树, 拷贝自 Linux内核 5.10, 用于epoll */
#endif //MYTCPSTACK_RBTREE_H
|
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/bpf_common_helper/trace_helpers.c | null | null | null | null | null | null | C | 2026-05-04T18:57:01.334857 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
// Copyright (c) 2020 Wenbo Zhang
//
// Based on ksyms improvements from Andrii Nakryiko, add more helpers.
// 28-Feb-2020 Wenbo Zhang Created this.
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#inc... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/fs/fs_watcher/bpf/CacheTrack.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:57:01.369599 | #include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#include "fs_watcher.h"
char LICENSE[] SEC("license") = "Dual BSD/GPL";
struct {
__uint(type, BPF_MAP_TYPE_HASH);
__uint(max_entries, 1024);
__type(key, u64); // 使用inode作为key
__type(value, s... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/bpf_common_helper/trace_helpers.h | null | null | null | null | null | null | C | 2026-05-04T18:57:01.400093 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#ifndef __TRACE_HELPERS_H
#define __TRACE_HELPERS_H
#include <stdbool.h>
#define NSEC_PER_SEC 1000000000ULL
struct ksym {
const char *name;
unsigned long addr;
};
struct ksyms;
struct ksyms *ksyms__load(void);
void ksyms__free(struct ksyms *ksyms);
const... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/component_helper/list.h | null | null | null | null | null | null | C | 2026-05-04T18:57:01.401915 | #ifndef MYTCPSTACK_LIST_H
#define MYTCPSTACK_LIST_H
/** 双向循环链表的实现,拷贝自Linux内核 5.10. list.h */
/* SPDX-License-Identifier: GPL-2.0 */
//#include <linux/types.h>
//#include <linux/stddef.h>
//#include <linux/const.h>
//#include <linux/kernel.h>
#include <stddef.h>
#include <stdbool.h>
/** 三个结构体拷贝自 include/linux/types.h ... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/fs/fs_watcher/bpf/block_rq_issue.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:57:01.478223 | #include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#include "fs_watcher.h"
char LICENSE[] SEC("license") = "Dual BSD/GPL";
struct {
__uint(type, BPF_MAP_TYPE_RINGBUF);
__uint(max_entries, 256 * 1024);
} rb SEC(".maps");
struct {
__uint(type, BPF_... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/fs/fs_watcher/bpf/disk_io_visit.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:57:01.879319 | #include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#include "fs_watcher.h"
char LICENSE[] SEC("license") = "Dual BSD/GPL";
// 定义 ringbuf,用于传输事件信息
struct {
__uint(type, BPF_MAP_TYPE_RINGBUF);
__uint(max_entries, 256 * 1024);
} rb SEC(".maps");
// 进程名与... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/fs/fs_watcher/bpf/open.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:57:01.962310 | #include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#include "fs_watcher.h"
char LICENSE[] SEC("license") = "GPL";
struct {
__uint(type, BPF_MAP_TYPE_HASH);
__uint(max_entries, 1024);
__type(key, pid_t);
__type(value, struct event_open);
} data SEC(".maps"... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/fs/fs_watcher/bpf/write.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:57:01.992854 | #include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#include "fs_watcher.h"
char LICENSE[] SEC("license") = "Dual BSD/GPL";
struct {
__uint(type, BPF_MAP_TYPE_HASH);
__uint(max_entries, 1024);
__type(key, pid_t);
__type(value, struct fs_t);
} data SEC(".ma... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/fs/fs_watcher/include/fs_watcher.h | null | null | null | null | null | null | C | 2026-05-04T18:57:02.044847 | #ifndef __FS_WATCHER_H
#define __FS_WATCHER_H
#define path_size 256
#define TASK_COMM_LEN 16
/*open*/
struct event_open {
pid_t pid; // 进程 ID
int dfd; // 目录文件描述符
char filename[256]; // 文件路径
int flags; // 打开标志
int fd; // 文件描述符
int ret; // 系统调用... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/fs/fs_watcher/include/open.h | null | null | null | null | null | null | C | 2026-05-04T18:57:02.046222 | #ifndef __OPEN_H
#define __OPEN_H
#ifndef TASK_COMM_LEN
#define TASK_COMM_LEN 16
#endif
struct fs_t {
int pid;
unsigned long long uid;
int fd;
unsigned long long ts;
char comm[TASK_COMM_LEN];
};
#endif /* __OPEN_H */ |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/fs/fs_watcher/bpf/read.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:57:02.047470 | #include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#include "fs_watcher.h"
char LICENSE[] SEC("license") = "Dual BSD/GPL";
// 手动定义文件类型宏
#define S_IFMT 0170000 // 文件类型掩码
#define S_IFREG 0100000 // 普通文件
#define S_IFCHR 0020000 // 字符设备
#define S_IFDIR 004... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/fs/fs_watcher/include/read.h | null | null | null | null | null | null | C | 2026-05-04T18:57:02.158868 | #ifndef __READ_H
#define __READ_H
struct event {
int pid;
unsigned long long duration_ns;
};
#endif /* __READ_H */ |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/fs/fs_watcher/include/write.h | null | null | null | null | null | null | C | 2026-05-04T18:57:02.511830 | #ifndef __WRITE_H
#define __WRITE_H
struct fs_t {
int pid;
unsigned long long duration_ns;
};
#endif /* __WRITE_H */ |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/fs/fs_watcher/src/open.c | null | null | null | null | null | null | C | 2026-05-04T18:57:02.607793 | #include <stdio.h>
#include <unistd.h>
#include <sys/resource.h>
#include <bpf/libbpf.h>
#include <signal.h>
#include "fs/fs_watcher/open.skel.h" //包含了 BPF 字节码和相关的管理函数
#include "fs_watcher/include/open.h"
static volatile bool exiting = false;
static void sig_handler(int sig)
{
exiting = true;
}
static int handle_e... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/fs/fs_watcher/src/fs_watcher.c | null | null | null | null | null | null | C | 2026-05-04T18:57:02.625804 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
/* Copyright (c) 2020 Facebook */
#include <signal.h>
#include <stdio.h>
#include <time.h>
#include <stdint.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/resource.h>
#include <bpf/libbpf.h>
#include <bpf/bpf.h>
#include <unistd.h>
#inc... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/fs/fs_watcher/src/write.c | null | null | null | null | null | null | C | 2026-05-04T18:57:02.671238 | #include <stdio.h>
#include <signal.h>
#include <unistd.h>
#include <sys/resource.h>
#include <time.h>
#include <bpf/libbpf.h>
#include "fs_watcher/include/write.h"
#include "fs/fs_watcher/write.skel.h"
static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args)
{
return vfprintf(stde... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/hypervisor/kvm_watcher/bpf/kvm_watcher.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:57:02.721603 | // Copyright 2023 The LMP Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://github.com/linuxkerneltravel/lmp/blob/develop/LICENSE
//
// Unless required by applicable ... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/fs/fs_watcher/src/read.c | null | null | null | null | null | null | C | 2026-05-04T18:57:02.723037 | #include <stdio.h>
#include <signal.h>
#include <time.h>
#include <bpf/libbpf.h>
#include "fs_watcher/include/read.h"
#include "fs/fs_watcher/read.skel.h"
static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args)
{
return vfprintf(stderr, format, args);
}
static volatile bool exiti... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/hypervisor/kvm_watcher/include/common.h | null | null | null | null | null | null | C | 2026-05-04T18:57:02.733747 | // Copyright 2023 The LMP Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://github.com/linuxkerneltravel/lmp/blob/develop/LICENSE
//
// Unless required by applicable ... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/hypervisor/kvm_watcher/include/container.h | null | null | null | null | null | null | C | 2026-05-04T18:57:03.136623 | // Copyright 2023 The LMP Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://github.com/linuxkerneltravel/lmp/blob/develop/LICENSE
//
// Unless required by applicable ... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/hypervisor/kvm_watcher/include/helpers/uprobe_helpers.h | null | null | null | null | null | null | C | 2026-05-04T18:57:03.192521 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/* Copyright (c) 2021 Google LLC. */
#ifndef __UPROBE_HELPERS_H
#define __UPROBE_HELPERS_H
#include <sys/types.h>
#include <unistd.h>
#include <gelf.h>
int get_pid_binary_path(pid_t pid, char *path, size_t path_sz);
int get_pid_lib_path(pid_t pid, const char *... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/hypervisor/kvm_watcher/include/helpers/trace_helpers.h | null | null | null | null | null | null | C | 2026-05-04T18:57:03.240373 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#ifndef __TRACE_HELPERS_H
#define __TRACE_HELPERS_H
#include <stdbool.h>
#define NSEC_PER_SEC 1000000000ULL
struct ksym {
const char *name;
unsigned long addr;
};
struct ksyms;
struct ksyms *ksyms__load(void);
void ksyms__free(struct ksyms *ksyms);
... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/hypervisor/kvm_watcher/include/kvm_exits.h | null | null | null | null | null | null | C | 2026-05-04T18:57:03.305775 | // Copyright 2023 The LMP Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://github.com/linuxkerneltravel/lmp/blob/develop/LICENSE
//
// Unless required by applicable ... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/hypervisor/kvm_watcher/include/kvm_ioctl.h | null | null | null | null | null | null | C | 2026-05-04T18:57:03.315611 | // Copyright 2023 The LMP Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://github.com/linuxkerneltravel/lmp/blob/develop/LICENSE
//
// Unless required by applicable ... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/hypervisor/kvm_watcher/include/kvm_hypercall.h | null | null | null | null | null | null | C | 2026-05-04T18:57:03.416409 | // Copyright 2023 The LMP Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://github.com/linuxkerneltravel/lmp/blob/develop/LICENSE
//
// Unless required by applicable ... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/bpf_common_helper/syscall_helpers.c | null | null | null | null | null | null | C | 2026-05-04T18:57:06.013800 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
// Copyright (c) 2020 Anton Protopopov
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <stdio.h>
#include <errno.h>
static const char **syscall_names;
static size_t syscall_names_size;
#define warn(...) fprintf(stderr, __VA_ARGS__)
#define MA... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/bpf_common_helper/uprobe_helpers.c | null | null | null | null | null | null | C | 2026-05-04T18:57:06.184872 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
/* Copyright (c) 2021 Google LLC. */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>... |
linuxkerneltravel/lmp | https://github.com/linuxkerneltravel/lmp | null | null | null | null | 727 | null | null | apache-2.0 | null | null | null | null | null | null | null | MagicEyes/src/backend/bpf_common_helper/uprobe_helpers.h | null | null | null | null | null | null | C | 2026-05-04T18:57:06.214945 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/* Copyright (c) 2021 Google LLC. */
#ifndef __UPROBE_HELPERS_H
#define __UPROBE_HELPERS_H
#include <sys/types.h>
#include <unistd.h>
#include <gelf.h>
int get_pid_binary_path(pid_t pid, char *path, size_t path_sz);
int get_pid_lib_path(pid_t pid, const char *... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/splinterdb/default_data_config.h | null | null | null | null | null | null | C | 2026-05-04T18:57:08.666351 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
// A default data_config suitable for simple key/value applications
// using a lexicographical sort-order (memcmp)
//
// This data_config does not support blind mutation operations, except
// plain overwrites of values.
#pragma once
#include ... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/splinterdb_iterators_example.c | null | null | null | null | null | null | C | 2026-05-04T18:57:08.667387 | // Copyright 2022-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* SplinterDB Iterators example program, using start-key for scan.
*/
#include <stdio.h>
#include <string.h>
#include "splinterdb/default_data_config.h"
#include "splinterdb/splinterdb.h"
#define DB_FILE_NAME "splinterdb_iterators_exam... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/splinterdb/splinterdb.h | null | null | null | null | null | null | C | 2026-05-04T18:57:08.676442 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* splinterdb.h --
*
* The public API for SplinterDB
*
* A data_config must be provided at the time of create/open.
* See default_data_config.h for a basic reference implementation.
*
* Each thread must call splinterdb_reg... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/splinterdb/data.h | null | null | null | null | null | null | C | 2026-05-04T18:57:08.678029 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* data.h --
*
* SplinterDB allows the application to specify the encoding of keys and
* values in order to support features like a custom sort order on keys and
* blind-write mutations.
*
* Internally, SplinterDB operates on keys and ... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/splinterdb_wide_values_example.c | null | null | null | null | null | null | C | 2026-05-04T18:57:08.679143 | // Copyright 2022-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* SplinterDB Wide values APIs example program.
*/
#include <stdio.h>
#include <string.h>
#include "splinterdb/default_data_config.h"
#include "splinterdb/splinterdb.h"
#define DB_FILE_NAME "splinterdb_wide_values_example_db"
#define D... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/splinterdb/public_util.h | null | null | null | null | null | null | C | 2026-05-04T18:57:08.686700 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "splinterdb/public_platform.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
* A slice is just a const pointer with a length. Slices do not
* manage the memory to which they point, i.e. slices do not allocate,
* free, r... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/splinterdb/platform_linux/public_platform.h | null | null | null | null | null | null | C | 2026-05-04T18:57:08.687214 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* public_platform.h --
*
* Minimal common header for both external users (e.g. splinterdb) and
* for internal use.
*/
#pragma once
#include <stdio.h>
/*
* C99 header that provides a set of typedefs that specify exact-width
... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/splinterdb_intro_example.c | null | null | null | null | null | null | C | 2026-05-04T18:57:08.705898 | // Copyright 2022-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* SplinterDB "Hello World" example program. Demonstrate use of:
* - Basic SplinterDB configuration and create() interface
* - Insert, lookup and iterator interfaces
* - Close and reopen a SplinterDB db (instance)
*/
#include <stdio.h>... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/splinterdb_custom_ipv4_addr_sortcmp_example.c | null | null | null | null | null | null | C | 2026-05-04T18:57:08.736007 | // Copyright 2022-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* ----------------------------------------------------------------------------
* SplinterDB Advanced Iterators Example Program with custom sort-comparison.
*
* What's new beyond previous splinterdb_iterators_example.c?
*
* In this prog... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/splinterdb/public_platform.h | null | null | null | null | null | null | C | 2026-05-04T18:57:08.799254 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
SplinterDB uses a platform layer to abstract away non-portable definitions
and functionality.
For a platform X, the public API headers live at
include/splinterdb/platform_X/public_platform.h
and the internal headers are at
src/platfo... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/allocator.c | null | null | null | null | null | null | C | 2026-05-04T18:57:09.247027 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* allocator.c --
*
* This file implements the abstract base behavior shared by allocators.
*/
#include "allocator.h"
#include "poison.h"
void
allocator_config_init(allocator_config *allocator_cfg,
io_config ... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/PackedArray.c | null | null | null | null | null | null | C | 2026-05-04T18:57:09.316574 | // From https://github.com/gpakosz/PackedArray
// Lightly edited to match the routing filter API
//
// clang-format off
//
// see README.md for usage instructions.
// (‑●‑●)> released under the WTFPL v2 license, by Gregory Pakosz (@gpakosz)
#ifndef PACKEDARRAY_SELF
#define PACKEDARRAY_SELF "PackedArray.c"
#endif
#in... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/batch_rwlock.h | null | null | null | null | null | null | C | 2026-05-04T18:57:09.320683 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "splinterdb/platform_linux/public_platform.h"
#include "platform_threads.h"
/*
*-----------------------------------------------------------------------------
* Batch Read/Write Locks
*
* These are generic distributed... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/PackedArray.h | null | null | null | null | null | null | C | 2026-05-04T18:57:09.321846 | // From https://github.com/gpakosz/PackedArray
// Lightly edited to match the routing filter API
#ifndef PACKEDARRAY_H
#define PACKEDARRAY_H
#include "splinterdb/public_platform.h"
/*
* -----------------------------------------------------------------------------
* PackedArray principle:
* . Compact storage of <... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/batch_rwlock.c | null | null | null | null | null | null | C | 2026-05-04T18:57:09.323383 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
#include "batch_rwlock.h"
#include "platform_sleep.h"
#include "poison.h"
/*
*-----------------------------------------------------------------------------
* Batch Read/Write Locks
*
* These are generic distributed reader/writer locks with... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/btree_private.h | null | null | null | null | null | null | C | 2026-05-04T18:57:09.359675 | // Copyright 2021-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* btree_private.h --
*
* This file contains the private interfaces for dynamic b-trees/memtables.
* These definitions are provided here so that they can be shared by the
* source and test modules.
*/
#pragma once
#include "splinterdb/... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/clockcache.h | null | null | null | null | null | null | C | 2026-05-04T18:57:09.384212 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* clockcache.h --
*
* This file contains interface for a concurrent clock cache.
*/
#pragma once
#include "platform_buffer.h"
#include "platform_threads.h"
#include "allocator.h"
#include "cache.h"
#include "platform_io.h"
// #def... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/cache.h | null | null | null | null | null | null | C | 2026-05-04T18:57:09.414116 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* cache.h --
*
* This file contains the abstract interface for a cache.
*/
#pragma once
#include "allocator.h"
#include "async.h"
typedef struct page_handle {
char *data;
uint64 disk_addr;
} page_handle;
typedef struct cac... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/allocator.h | null | null | null | null | null | null | C | 2026-05-04T18:57:09.433658 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* allocator.h --
*
* This file contains the abstract interface for an allocator.
*/
#pragma once
#include "platform_log.h"
#include "platform_io.h"
typedef uint64 allocator_root_id;
#define INVALID_ALLOCATOR_ROOT_ID (0)
#define A... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/btree.h | null | null | null | null | null | null | C | 2026-05-04T18:57:09.491506 | // Copyright 2021-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* btree.h --
*
* This file contains the public interfaces for dynamic b-trees/memtables.
*/
#pragma once
#include "platform_hash.h"
#include "platform_typed_alloc.h"
#include "async.h"
#include "mini_allocator.h"
#include "iterator... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/core.c | null | null | null | null | null | null | C | 2026-05-04T18:57:09.848955 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* core.c --
*
* This file contains the implementation for SplinterDB.
*/
#include "core.h"
#include "data_internal.h"
#include "platform_sleep.h"
#include "platform_time.h"
#include "platform_util.h"
#include "poison.h"
#define LAT... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/core.h | null | null | null | null | null | null | C | 2026-05-04T18:57:09.912224 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* core.h --
*
* This file contains the interface for SplinterDB.
*/
#pragma once
#include "splinterdb/data.h"
#include "memtable.h"
#include "log.h"
#include "trunk.h"
#include "histogram.h"
/*
* Upper-bound on most number of bra... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/default_data_config.c | null | null | null | null | null | null | C | 2026-05-04T18:57:09.941976 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
// A default data_config suitable for simple key/value applications
// using a lexicographical sort-order (memcmp)
//
// This data_config does not support blind mutation operations
#include "splinterdb/default_data_config.h"
#include "util.h"
... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/data_internal.h | null | null | null | null | null | null | C | 2026-05-04T18:57:09.943381 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* data_internal.h --
*
* A slice-based interface to the datatype definitions
*/
#pragma once
#include "splinterdb/data.h"
#include "util.h"
/*
* KEYS
*
* Structures for passing around and manipulating keys in memory.
* These f... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/data_internal.c | null | null | null | null | null | null | C | 2026-05-04T18:57:09.962849 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
#include "data_internal.h"
#include "poison.h"
message_type
merge_accumulator_message_class(const merge_accumulator *ma)
{
return ma->type;
}
void *
merge_accumulator_data(const merge_accumulator *ma)
{
return writable_buffer_data(&ma->... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/histogram.c | null | null | null | null | null | null | C | 2026-05-04T18:57:10.009759 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* histogram.c --
*
* This file contains the implementation for histogram data collection.
*/
#include "histogram.h"
#include "platform_typed_alloc.h"
#include "platform_log.h"
#include "poison.h"
platform_status
histogram_create(pl... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/histogram.h | null | null | null | null | null | null | C | 2026-05-04T18:57:10.011589 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* histogram.h --
*
* This file contains the interface for histogram data collection.
*/
#pragma once
#include "splinterdb/platform_linux/public_platform.h"
#include "platform_heap.h"
#include "platform_assert.h"
#include "platform... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/iterator.h | null | null | null | null | null | null | C | 2026-05-04T18:57:10.012646 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "splinterdb/splinterdb.h"
#include "data_internal.h"
#include "vector.h"
typedef struct iterator iterator;
typedef void (*iterator_curr_fn)(iterator *itor, key *curr_key, message *msg);
typedef bool32 (*iterator_bound_f... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/lookup_result.h | null | null | null | null | null | null | C | 2026-05-04T18:57:10.083281 | // Copyright 2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "splinterdb/splinterdb.h"
#include "data_internal.h"
#include "platform_assert.h"
typedef struct lookup_result {
const data_config *data_cfg;
splinterdb_lookup_flags flags;
merge_accumulator value;
} looku... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/log.h | null | null | null | null | null | null | C | 2026-05-04T18:57:10.152255 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* log.h --
*
* This file contains the abstract interface for a write-ahead log.
*/
#pragma once
#include "cache.h"
#include "data_internal.h"
typedef struct log_handle log_handle;
typedef struct log_iterator log_iterator;
typede... |
vmware/splinterdb | https://github.com/vmware/splinterdb | null | null | null | null | 726 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/memtable.h | null | null | null | null | null | null | C | 2026-05-04T18:57:10.527479 | // Copyright 2018-2026 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
/*
* memtable.h --
*
* This file contains the interface for the splinter memtable.
*/
#pragma once
#include "platform_mutex.h"
#include "task.h"
#include "cache.h"
#include "btree.h"
#include "batch_rwlock.h"
#define MAX_MEMTABLES ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.