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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/GCC/ARM_CM23/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:12.880862 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/GCC/ARM_CM33/portasm.c | null | null | null | null | null | null | C | 2026-05-04T18:29:12.882130 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2024 Arm Limited and/or its affiliates
* <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a c... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/GCC/ARM_CM33_NTZ/portasm.c | null | null | null | null | null | null | C | 2026-05-04T18:29:13.565661 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2024, 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining ... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/GCC/ARM_CM33/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:13.737311 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/GCC/ARM_CM35P/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:13.750444 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/GCC/ARM_STAR_MC3/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:13.751661 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright (c) 2026 Arm Technology (China) Co., Ltd.All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* P... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/IAR/ARM_CM23/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:13.756657 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/GCC/ARM_CM33_NTZ/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:13.764181 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/GCC/ARM_CM55/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:13.765778 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/GCC/ARM_CM52/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:13.766799 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright (c) 2025 Arm Technology (China) Co., Ltd.All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* P... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/IAR/ARM_CM23_NTZ/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:13.804947 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/GCC/ARM_CM85/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:13.917457 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/IAR/ARM_CM33/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:14.154019 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/IAR/ARM_CM33_NTZ/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:15.447654 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/IAR/ARM_STAR_MC3/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:15.449218 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright (c) 2026 Arm Technology (China) Co., Ltd.All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* P... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portasm.h | null | null | null | null | null | null | C | 2026-05-04T18:29:15.449672 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portmacrocommon.h | null | null | null | null | null | null | C | 2026-05-04T18:29:15.450385 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2024, 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining ... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/IAR/ARM_CM85/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:16.129662 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/IAR/ARM_CM35P/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:16.130567 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/IAR/ARM_CM52/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:16.131162 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright (c) 2025 Arm Technology (China) Co., Ltd.All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* P... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/non_secure/portable/IAR/ARM_CM55/portmacro.h | null | null | null | null | null | null | C | 2026-05-04T18:29:17.115514 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
FreeRTOS/FreeRTOS-Kernel | https://github.com/FreeRTOS/FreeRTOS-Kernel | null | null | null | null | 4,092 | null | null | mit | null | null | null | null | null | null | null | portable/ARMv8M/secure/context/portable/GCC/ARM_CM23/secure_context_port.c | null | null | null | null | null | null | C | 2026-05-04T18:29:24.702696 | /*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/11-bootstrap/bootstrap.c | null | null | null | null | null | null | C | 2026-05-04T18:29:27.443737 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
/* Copyright (c) 2020 Facebook */
#include <argp.h>
#include <signal.h>
#include <stdio.h>
#include <time.h>
#include <sys/resource.h>
#include <bpf/libbpf.h>
#include "bootstrap.h"
#include "bootstrap.skel.h"
static struct env {
bool verbose;
long ... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/10-hardirqs/hardirqs.h | null | null | null | null | null | null | C | 2026-05-04T18:29:27.445723 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#ifndef __HARDIRQS_H
#define __HARDIRQS_H
#define MAX_SLOTS 20
struct info {
__u64 count;
__u32 slots[MAX_SLOTS];
};
#endif /* __HARDIRQS_H */
|
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/10-hardirqs/softirqs.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:27.448550 | // SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2020 Wenbo Zhang
#include <vmlinux.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include "softirqs.h"
#include "bits.bpf.h"
#include "maps.bpf.h"
const volatile bool targ_dist = false;
const volatile bool targ_ns = false;
struct {
__uint(type, BPF_... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/10-hardirqs/hardirqs.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:27.449542 | // SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2020 Wenbo Zhang
#include <vmlinux.h>
#include <bpf/bpf_core_read.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include "hardirqs.h"
#include "bits.bpf.h"
#include "maps.bpf.h"
#define MAX_ENTRIES 256
const volatile bool filter_cg = false;
const vol... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/1-helloworld/minimal.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:27.450741 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#define BPF_NO_GLOBAL_DATA
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
typedef unsigned int u32;
typedef int pid_t;
const pid_t pid_filter = 0;
char LICENSE[] SEC("license") = "Dual BSD/GPL";
SEC("tp/syscalls/sys_enter_write... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/10-hardirqs/maps.bpf.h | null | null | null | null | null | null | C | 2026-05-04T18:29:27.451767 | // 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... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/11-bootstrap/bootstrap.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:27.452751 | // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* Copyright (c) 2020 Facebook */
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#include "bootstrap.h"
char LICENSE[] SEC("license") = "Dual BSD/GPL";
struct {
__uint(type, BPF_MAP_TYPE_HASH... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/11-bootstrap/bootstrap.h | null | null | null | null | null | null | C | 2026-05-04T18:29:27.603429 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/* Copyright (c) 2020 Facebook */
#ifndef __BOOTSTRAP_H
#define __BOOTSTRAP_H
#define TASK_COMM_LEN 16
#define MAX_FILENAME_LEN 127
struct event {
int pid;
int ppid;
unsigned exit_code;
unsigned long long duration_ns;
char comm[TASK_COMM_LEN]... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/10-hardirqs/softirqs.h | null | null | null | null | null | null | C | 2026-05-04T18:29:27.604000 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#ifndef __SOFTIRQS_H
#define __SOFTIRQS_H
#define MAX_SLOTS 20
struct hist {
__u32 slots[MAX_SLOTS];
};
#endif /* __SOFTIRQS_H */
|
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/10-hardirqs/bits.bpf.h | null | null | null | null | null | null | C | 2026-05-04T18:29:27.606264 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#ifndef __BITS_BPF_H
#define __BITS_BPF_H
#define READ_ONCE(x) (*(volatile typeof(x) *)&(x))
#define WRITE_ONCE(x, val) ((*(volatile typeof(x) *)&(x)) = val)
static __always_inline u64 log2(u32 v)
{
u32 shift, r;
r = (v > 0xFFFF) << 4; v >>= r;
shift = (v ... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/12-profile/src/bpf/profile.h | null | null | null | null | null | null | C | 2026-05-04T18:29:28.265736 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/* Copyright (c) 2022 Meta Platforms, Inc. */
#ifndef __PROFILE_H_
#define __PROFILE_H_
#ifndef TASK_COMM_LEN
#define TASK_COMM_LEN 16
#endif
#ifndef MAX_STACK_DEPTH
#define MAX_STACK_DEPTH 128
#endif
typedef __u64 stack_trace_t[MAX_STACK_DEPTH];
struct stac... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/12-profile/src/bpf/profile.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:28.274669 | // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* Copyright (c) 2022 Meta Platforms, Inc. */
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#include "profile.h"
char LICENSE[] SEC("license") = "Dual BSD/GPL";
struct {
__uint(type, BPF_MAP_TYPE_RING... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/14-tcpstates/maps.bpf.h | null | null | null | null | null | null | C | 2026-05-04T18:29:28.275218 | // 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... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/13-tcpconnlat/tcpconnlat.h | null | null | null | null | null | null | C | 2026-05-04T18:29:28.304088 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#ifndef __TCPCONNLAT_H
#define __TCPCONNLAT_H
// #include <inttypes.h>
typedef unsigned char __u8;
typedef unsigned short __u16;
typedef unsigned int __u32;
typedef unsigned long long __u64;
#define TASK_COMM_LEN 16
struct event {
union {
__u32 sa... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/13-tcpconnlat/tcpconnlat.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:28.334443 | // SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2020 Wenbo Zhang
#include <vmlinux.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_core_read.h>
#include <bpf/bpf_tracing.h>
#include "tcpconnlat.h"
#define AF_INET 2
#define AF_INET6 10
const volatile __u64 targ_min_us = 0;
const volatile pid_t targ_tgid = ... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/14-tcpstates/bits.bpf.h | null | null | null | null | null | null | C | 2026-05-04T18:29:28.334980 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#ifndef __BITS_BPF_H
#define __BITS_BPF_H
#define READ_ONCE(x) (*(volatile typeof(x) *)&(x))
#define WRITE_ONCE(x, val) ((*(volatile typeof(x) *)&(x)) = val)
static __always_inline u64 log2(u32 v)
{
u32 shift, r;
r = (v > 0xFFFF) << 4; v >>= r;
shift = (v ... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/13-tcpconnlat/tcpconnlat.c | null | null | null | null | null | null | C | 2026-05-04T18:29:28.470660 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
// Copyright (c) 2020 Wenbo Zhang
//
// Based on tcpconnlat(8) from BCC by Brendan Gregg.
// 11-Jul-2020 Wenbo Zhang Created this.
#include "tcpconnlat.h"
#include <argp.h>
#include <arpa/inet.h>
#include <bpf/bpf.h>
#include <bpf/btf.h>
#include <bpf/libbpf.h>... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/14-tcpstates/tcpstates.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:28.472597 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
/* Copyright (c) 2021 Hengqi Chen */
#include <vmlinux.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#include "tcpstates.h"
#define MAX_ENTRIES 10240
#define AF_INET 2
#define AF_INET6 10
const volatile bool filter_b... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/14-tcpstates/tcprtt.h | null | null | null | null | null | null | C | 2026-05-04T18:29:28.488315 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#ifndef __TCPRTT_H
#define __TCPRTT_H
#define MAX_SLOTS 27
struct hist {
unsigned long long latency;
unsigned long long cnt;
unsigned int slots[MAX_SLOTS];
};
#endif /* __TCPRTT_H */
|
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/14-tcpstates/tcprtt.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:28.786626 | // SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2021 Wenbo Zhang
#include <vmlinux.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_core_read.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_endian.h>
#include "tcprtt.h"
#include "bits.bpf.h"
#include "maps.bpf.h"
char LICENSE[] SEC("license") = "Dual BSD/GPL";... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/16-memleak/core_fixes.bpf.h | null | null | null | null | null | null | C | 2026-05-04T18:29:29.051671 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/* Copyright (c) 2021 Hengqi Chen */
#ifndef __CORE_FIXES_BPF_H
#define __CORE_FIXES_BPF_H
#include <vmlinux.h>
#include <bpf/bpf_core_read.h>
/**
* commit 2f064a59a1 ("sched: Change task_struct::state") changes
* the name of task_struct::state to task_stru... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/14-tcpstates/tcpstates.c | null | null | null | null | null | null | C | 2026-05-04T18:29:29.058244 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
/*
* tcpstates Trace TCP session state changes with durations.
* Copyright (c) 2021 Hengqi Chen
*
* Based on tcpstates(8) from BCC by Brendan Gregg.
* 18-Dec-2021 Hengqi Chen Created this.
*/
#include <argp.h>
#include <arpa/inet.h>
#include <bpf/bpf.... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/15-javagc/javagc.h | null | null | null | null | null | null | C | 2026-05-04T18:29:29.062401 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/* Copyright (c) 2022 Chen Tao */
#ifndef __JAVAGC_H
#define __JAVAGC_H
struct data_t {
__u32 cpu;
__u32 pid;
__u64 ts;
};
#endif /* __JAVAGC_H */
|
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/14-tcpstates/tcpstates.h | null | null | null | null | null | null | C | 2026-05-04T18:29:29.065431 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
/* Copyright (c) 2021 Hengqi Chen */
#ifndef __TCPSTATES_H
#define __TCPSTATES_H
#define TASK_COMM_LEN 16
struct event {
unsigned __int128 saddr;
unsigned __int128 daddr;
__u64 skaddr;
__u64 ts_us;
__u64 delta_us;
__u32 pid;
int oldstate;
int newstate;
_... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/15-javagc/javagc.c | null | null | null | null | null | null | C | 2026-05-04T18:29:29.095166 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/*
* Copyright (c) 2022 Chen Tao
* Based on ugc from BCC by Sasha Goldshtein
* Create: Wed Jun 29 16:00:19 2022
*/
#include <stdio.h>
#include <ctype.h>
#include <argp.h>
#include <signal.h>
#include <unistd.h>
#include <time.h>
#include <sys/resource.h>
#in... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/15-javagc/javagc.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:29.124625 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/* Copyright (c) 2022 Chen Tao */
#include <vmlinux.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_core_read.h>
#include <bpf/usdt.bpf.h>
#include "javagc.h"
struct {
__uint(type, BPF_MAP_TYPE_HASH);
__uint(max_entries, 100);
__type(key, uint32_t);
__typ... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/16-memleak/maps.bpf.h | null | null | null | null | null | null | C | 2026-05-04T18:29:29.164901 | // 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... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/16-memleak/memleak.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:29.187531 | // SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2023 Meta Platforms, Inc. and affiliates.
#include <vmlinux.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include "maps.bpf.h"
#include "memleak.h"
#include "core_fixes.bpf.h"
const volatile size_t min_size = 0;
const volatile size_t max_size = -1;
... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/16-memleak/memleak.c | null | null | null | null | null | null | C | 2026-05-04T18:29:29.277641 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
// Copyright (c) 2023 Meta Platforms, Inc. and affiliates.
//
// Based on memleak(8) from BCC by Sasha Goldshtein and others.
// 1-Mar-2023 JP Kobryn Created this.
#include <argp.h>
#include <errno.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/16-memleak/memleak.h | null | null | null | null | null | null | C | 2026-05-04T18:29:29.707021 | #ifndef __MEMLEAK_H
#define __MEMLEAK_H
#define ALLOCS_MAX_ENTRIES 1000000
#define COMBINED_ALLOCS_MAX_ENTRIES 10240
struct alloc_info {
__u64 size;
__u64 timestamp_ns;
int stack_id;
};
union combined_alloc_info {
struct {
__u64 total_size : 40;
__u64 number_of_allocs : 24;
};
__u64 bits;
};
#endif /* __M... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/17-biopattern/biopattern.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:30.083836 | // SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2020 Wenbo Zhang
#include <vmlinux.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include "biopattern.h"
#include "maps.bpf.h"
#include "core_fixes.bpf.h"
const volatile bool filter_dev = false;
const volatile __u32 targ_dev = 0;
struct {
__uint(typ... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/17-biopattern/biopattern.h | null | null | null | null | null | null | C | 2026-05-04T18:29:30.084499 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
#ifndef __BIOPATTERN_H
#define __BIOPATTERN_H
#define DISK_NAME_LEN 32
struct counter {
__u64 last_sector;
__u64 bytes;
__u32 sequential;
__u32 random;
};
#endif /* __BIOPATTERN_H */
|
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/16-memleak/trace_helpers.h | null | null | null | null | null | null | C | 2026-05-04T18:29:30.140516 | /* 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... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/17-biopattern/biopattern.c | null | null | null | null | null | null | C | 2026-05-04T18:29:30.198138 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
// Copyright (c) 2020 Wenbo Zhang
//
// Based on biopattern(8) from BPF-Perf-Tools-Book by Brendan Gregg.
// 17-Jun-2020 Wenbo Zhang Created this.
#include <argp.h>
#include <signal.h>
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#include <bpf/libbp... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/16-memleak/test_memleak.c | null | null | null | null | null | null | C | 2026-05-04T18:29:30.239097 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
// Test program for memleak - intentionally leaks memory for testing
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
void leak_small() {
malloc(1024);
}
void leak_large() {
malloc(8192);
}
void leak_with_loop() {
for (int i = 0; i < 5; i++... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/17-biopattern/maps.bpf.h | null | null | null | null | null | null | C | 2026-05-04T18:29:30.279188 | // 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... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/16-memleak/trace_helpers.c | null | null | null | null | null | null | C | 2026-05-04T18:29:30.309413 | /* 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... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/17-biopattern/trace_helpers.h | null | null | null | null | null | null | C | 2026-05-04T18:29:30.366532 | /* 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... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/17-biopattern/trace_helpers.c | null | null | null | null | null | null | C | 2026-05-04T18:29:30.393337 | /* 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... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/2-kprobe-unlink/kprobe-link.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:30.700208 | // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* Copyright (c) 2021 Sartura */
#define BPF_NO_GLOBAL_DATA
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
char LICENSE[] SEC("license") = "Dual BSD/GPL";
SEC("kprobe/do_unlinkat")
int BPF_KPROBE(do_unli... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/20-tc/tc.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:30.795418 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
/* Copyright (c) 2022 Hengqi Chen */
#include <vmlinux.h>
#include <bpf/bpf_endian.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#define TC_ACT_OK 0
#define ETH_P_IP 0x0800 /* Internet Protocol packet */
/// @tchook {"ifindex":1, "attach_point":"BP... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/19-lsm-connect/lsm-connect.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:30.795877 | #include "vmlinux.h"
#include <bpf/bpf_core_read.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
char LICENSE[] SEC("license") = "GPL";
#define EPERM 1
#define AF_INET 2
const __u32 blockme = 16843009; // 1.1.1.1 -> int
SEC("lsm/socket_connect")
int BPF_PROG(restrict_connect, struct socket *sock, struc... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/21-xdp/xdp.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:30.854206 | #include "vmlinux.h"
#include <bpf/bpf_helpers.h>
/// @ifindex 1
/// @flags 0
/// @xdpopts {"old_prog_fd":0}
SEC("xdp")
int xdp_pass(struct xdp_md* ctx) {
void* data = (void*)(long)ctx->data;
void* data_end = (void*)(long)ctx->data_end;
int pkt_sz = data_end - data;
bpf_printk("packet size is %d", pkt... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/23-http/accept.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:30.903502 | #include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_endian.h>
#include <bpf/bpf_core_read.h>
#include "accept.h"
struct conn_id_t
{
u32 pid;
int fd;
__u64 tsid;
};
struct conn_info_t
{
struct conn_id_t conn_id;
__s64 wr_bytes;
__s64 rd_bytes;
bool is_http;
};
// A struct d... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/23-http/accept.h | null | null | null | null | null | null | C | 2026-05-04T18:29:30.968076 | #ifndef BPF_HTTP_ACCEPT_TRACE_H
#define BPF_HTTP_ACCEPT_TRACE_H
#define MAX_MSG_SIZE 256
struct socket_data_event_t
{
unsigned long long timestamp_ns;
unsigned int pid;
int fd;
bool is_connection;
unsigned int msg_size;
unsigned long long pos;
char msg[MAX_MSG_SIZE];
};
#endif // BPF_HTTP_ACCEPT_TRACE_... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/23-http/sockfilter.c | null | null | null | null | null | null | C | 2026-05-04T18:29:31.016582 | // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* Copyright (c) 2022 Jacky Yin */
#include <argp.h>
#include <arpa/inet.h>
#include <assert.h>
#include <bpf/libbpf.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <linux/in.h>
#include <net/if.h>
#include <signal.h>
#include <stdio.h>
#include <... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/23-http/sockfilter.h | null | null | null | null | null | null | C | 2026-05-04T18:29:31.519166 | // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* Copyright (c) 2022 Jacky Yin */
#ifndef __SOCKFILTER_H
#define __SOCKFILTER_H
#define MAX_BUF_SIZE 64
struct so_event {
__be32 src_addr;
__be32 dst_addr;
union {
__be32 ports;
__be16 port16[2];
};
__u32 ip_proto;
__u32 pkt_type;
__u32 ifindex;
__u32 p... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/24-hide/pidhide.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:31.613771 | // SPDX-License-Identifier: BSD-3-Clause
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#include "pidhide.h"
char LICENSE[] SEC("license") = "Dual BSD/GPL";
// Ringbuffer Map to pass messages from kernel to user
struct
{
__uint(type, BPF_MAP_TYPE_RING... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/23-http/sockfilter.bpf.c | null | null | null | null | null | null | C | 2026-05-04T18:29:31.973238 | // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* Copyright (c) 2022 Jacky Yin */
#include <stddef.h>
#include <linux/bpf.h>
#include <linux/if_ether.h>
#include <linux/ip.h>
#include <linux/in.h>
#include <linux/socket.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_endian.h>
#include "sockfilter.h"
#define IP... |
eunomia-bpf/bpf-developer-tutorial | https://github.com/eunomia-bpf/bpf-developer-tutorial | null | null | null | null | 4,082 | null | null | mit | null | null | null | null | null | null | null | src/17-biopattern/core_fixes.bpf.h | null | null | null | null | null | null | C | 2026-05-04T18:29:35.278269 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/* Copyright (c) 2021 Hengqi Chen */
#ifndef __CORE_FIXES_BPF_H
#define __CORE_FIXES_BPF_H
#include <vmlinux.h>
#include <bpf/bpf_core_read.h>
/**
* commit 2f064a59a1 ("sched: Change task_struct::state") changes
* the name of task_struct::state to task_stru... |
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | middleware/qiradb/Trace/Trace.h | null | null | null | null | null | null | C | 2026-05-04T18:29:38.090811 | #ifndef TRACE_H
#define TRACE_H
#include <vector>
#include <map>
#if __cplusplus == 201103L
#include <unordered_map>
#else
//#define USE_BOOST
#ifdef USE_BOOST
#include <boost/unordered_map.hpp>
#define unordered_map boost::unordered_map
#else
#define unordered_map map
#endif
#endif
#include <set... |
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | extra/qemu_mods/disas.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.093839 | /* General "disassemble this chunk" code. Used for debugging. */
#include "config.h"
#include "disas/bfd.h"
#include "elf.h"
#include <errno.h>
#include "cpu.h"
#include "disas/disas.h"
typedef struct CPUDebug {
struct disassemble_info info;
CPUArchState *env;
} CPUDebug;
/* Filled in by elfload.c. Simplis... |
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/argtest.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.095572 | #include <stdio.h>
int main(int argc, char *argv[]) {
int i;
for (i = 0; i < argc; i++) {
printf("%d: %s\n", i, argv[i]);
}
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/call_mem.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.097685 | int quad(int x)
{
return x*4;
}
int (*quad_ptr)(int);
int main()
{
quad_ptr = &quad;
return (*quad_ptr)(3);
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/cfgifloop.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.098739 | int main(int argc) {
int i, j;
for (i = 0; i < 6; i++) {
if (argc==1) {
for (j = 0; j < 6; j++) {
printf("%d %d\n", i, j);
if (j == 4) break;
}
} else {
printf("cats %d\n", i);
}
}
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | extra/qemu_mods/qemu.h | null | null | null | null | null | null | C | 2026-05-04T18:29:38.099918 | #ifndef QEMU_H
#define QEMU_H
#include <signal.h>
#include <string.h>
#include "cpu.h"
#include "exec/cpu_ldst.h"
#undef DEBUG_REMAP
#ifdef DEBUG_REMAP
#include <stdlib.h>
#endif /* DEBUG_REMAP */
#include "exec/user/abitypes.h"
#include "exec/user/thunk.h"
#include "syscall_defs.h"
#include "syscall.h"
#include "... |
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | extra/qemu_mods/tci.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.101324 | /*
* Tiny Code Interpreter for QEMU
*
* Copyright (c) 2009, 2011 Stefan Weil
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any ... |
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | extra/qemu_mods/strace.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.111464 | #include <stdio.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <sys/sem.h>
#include <sys/shm.h>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/mount.h>
#include <sys/mman.h>
#include <unistd.h>
#include <sched.h>
#include "qemu.h"
#undef TARGET_ABI_FMT_lx
#ifdef TARGET_ABI32
#define TARGET_ABI_FMT... |
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | ida/libwebsockets.h | null | null | null | null | null | null | C | 2026-05-04T18:29:38.159388 | /*
* libwebsockets - small server side websockets and web server implementation
*
* Copyright (C) 2010-2015 Andy Green <andy@warmcat.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software F... |
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/heaptest.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.782637 | #include <stdio.h>
int main() {
char *a = malloc(0x100);
char *b = malloc(0x100);
memset(a, 0, 0x400);
//read(0, a, 0x100);
free(b);
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/heapfunn.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.784263 | #include <stdio.h>
#include <stdlib.h>
#define NUMBUFS 10
char *bufs[NUMBUFS];
int main() {
unsigned int bufnum, size, haxx, i;
int ret;
for (i = 0; i < NUMBUFS; i++) bufs[i] = NULL;
printf("exploit me bro\n"); fflush(stdout);
while (1) {
ret = read(0, &bufnum, sizeof(bufnum)); if (ret <= 0) break;
... |
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/echo.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.786311 | #include <stdio.h>
int main() {
char buf[0x100];
printf("swag is king\n");
fflush(stdout);
fprintf(stderr, "error is king\n");
fflush(stderr);
while (1) {
int a = read(0, buf, 0x100);
if (a <= 0) break;
write(1, buf, a);
}
return -1;
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/loop.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.787188 | #include <stdio.h>
int main() {
int i;
for (i = 0; i < 5; i++) {
printf("%d\n", i);
}
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/demo.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.808500 | int test(int a) {
a += 3;
a *= 2;
return a;
}
int main() {
printf("hello world\n");
int i;
for (i = 0; i < 5; i++) {
printf("%d\n", test(i));
}
return 0;
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/forktest.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.809961 | #include <stdio.h>
int main() {
printf("FORK TEST\n");
fflush(stdout);
fork();
printf("hi %d\n", getpid());
/*if (fork() == 0) {
printf("hello child\n");
} else {
printf("world parent\n");
}*/
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/changetest.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.812003 | #include <stdio.h>
int main(int argc, char *argv[]) {
int a = atoi(argv[1])+27;
printf("got %d\n", a);
if (a == 37) {
printf("WINNER\n");
} else {
printf("LOSER\n");
}
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/functest.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.820380 | int a() {
return 27;
}
int b() {
return 52;
}
int main() {
int i = a() + b();
if (i > 0) {
printf("%d\n", i);
} else {
printf("TEH FUCK\n");
}
return 0;
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/forloop.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.821502 | #include <stdio.h>
volatile int k = 0;
void swag() {
k++;
}
int main(int argc, char *argv[]) {
int i;
int j = atoi(argv[1]);
for (i = 0; i < j; i++) {
swag();
}
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/loophaxx.c | null | null | null | null | null | null | C | 2026-05-04T18:29:38.863374 | #include <stdio.h>
int print(int i) {
printf("%d\n", i);
}
int main() {
int i;
for (i = 0; i < 5; i++) {
print(i);
}
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/procselfmaps.c | null | null | null | null | null | null | C | 2026-05-04T18:29:39.824546 | #include <stdio.h>
char buf[0x1000];
int main() {
FILE *f = fopen("/proc/self/maps", "rb");
buf[fread(buf, 1, 0x1000, f)] = '\0';
fclose(f);
printf("%s\n", buf);
return 0;
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_manual/algo.c | null | null | null | null | null | null | C | 2026-05-04T18:29:39.825745 | int _start() {
main();
asm("movl $1,%%eax\n" \
"xorl %%ebx,%%ebx\n" \
"int $0x80" : );
}
int bubble_sort(int *dat, int len) {
int ret = 0;
int i, j;
for (i = 0; i < len; i++) {
for (j = i; j < len; j++) {
if (dat[j] < dat[i]) {
ret++;
dat[i] ^= dat[j];
dat[j] ^= ... |
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/switchtest.c | null | null | null | null | null | null | C | 2026-05-04T18:29:39.838705 | int main(int argc, char *argv[]) {
switch(argc) {
case 1:
printf("1 args\n");
break;
case 2:
printf("2 args\n");
break;
case 3:
printf("3 args\n");
break;
case 10:
printf("10 args\n");
break;
case 47:
printf("47 args\n");
break;
}
ret... |
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/stackframetest.c | null | null | null | null | null | null | C | 2026-05-04T18:29:39.871627 | #include <stdio.h>
int stacked(int input) {
int plus_2 = input + 2;
int times_5 = input * 5;
return plus_2 + times_5;
}
int main() {
int i;
for (i = 1; i < 4; i++) printf("%d %d\n", i, stacked(i));
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_manual/doubleshell.c | null | null | null | null | null | null | C | 2026-05-04T18:29:39.873548 | #include <sys/mman.h>
#include <stdio.h>
int main() {
int (*sc)();
char *ptr = mmap(0, 0x1000, PROT_EXEC | PROT_WRITE | PROT_READ, MAP_ANON | MAP_PRIVATE, -1, 0);
sc = ptr;
ptr[0] = 0x31;
ptr[1] = 0xc0;
ptr[2] = 0x40;
ptr[3] = 0xc3;
printf("%d\n", sc());
ptr[2] = 0xc3;
printf("%d\n", sc());
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/test64.c | null | null | null | null | null | null | C | 2026-05-04T18:29:39.901520 | #include <stdio.h>
int main() {
volatile long a = 0xFFFFFFFFFFFFFFFF;
a--;
a *= 2;
printf("%ld\n", a);
return a;
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_auto/source-autogen/slicingtest.c | null | null | null | null | null | null | C | 2026-05-04T18:29:39.932809 | #include <stdio.h>
int main(int argc, char *argv[]) {
int i = atoi(argv[1]);
int j = atoi(argv[2]);
int k = atoi(argv[3]);
int l = i + j;
int m = i + k;
int n = j + k;
printf("%d %d %d\n", l, m, n);
}
|
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_manual/realworld/zpipe.c | null | null | null | null | null | null | C | 2026-05-04T18:29:40.949920 | /* zpipe.c: example of proper use of zlib's inflate() and deflate()
Not copyrighted -- provided to the public domain
Version 1.4 11 December 2005 Mark Adler */
/* Version history:
1.0 30 Oct 2004 First version
1.1 8 Nov 2004 Add void casting for unused return values
Use switch s... |
geohot/qira | https://github.com/geohot/qira | null | null | null | null | 4,065 | null | null | mit | null | null | null | null | null | null | null | tests_manual/vimplugin/main.c | null | null | null | null | null | null | C | 2026-05-04T18:29:41.024080 | #include <stdio.h>
#include "swag.h"
int main() {
int i;
int j = 1;
int k = 1;
int l = 1;
for (i = 1; i < 10; i++) {
j *= i;
k += 1;
l += i;
}
swag();
swag2();
printf("%d %d %d\n", j, k, l);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.