This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/arm64 6.4.0-rc3 Kernel Configuration | |
# | |
CONFIG_CC_VERSION_TEXT="gcc (GCC) 13.1.1 20230511 (Red Hat 13.1.1-2)" | |
CONFIG_CC_IS_GCC=y | |
CONFIG_GCC_VERSION=130101 | |
CONFIG_CLANG_VERSION=0 | |
CONFIG_AS_IS_GNU=y | |
CONFIG_AS_VERSION=23900 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env drgn | |
"""List all active bpf_links and its owners""" | |
from drgn.helpers import enum_type_to_class | |
from drgn.helpers.linux.fs import for_each_file | |
from drgn.helpers.linux.pid import for_each_task | |
from drgn.helpers.linux import cgroup_path | |
from drgn import FaultError, cast, container_of | |
BpfProgType = enum_type_to_class(prog.type("enum bpf_prog_type"), "BpfProgType") | |
BpfAttachType = enum_type_to_class( prog.type("enum bpf_attach_type"), "BpfAttachType") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env drgn | |
"""List all active bpf_links and its owners""" | |
from drgn.helpers import enum_type_to_class | |
from drgn.helpers.linux.fs import for_each_file | |
from drgn.helpers.linux.pid import for_each_task | |
from drgn.helpers.linux import cgroup_path | |
from drgn import FaultError, cast, container_of | |
BpfProgType = enum_type_to_class(prog.type("enum bpf_prog_type"), "BpfProgType") | |
BpfAttachType = enum_type_to_class( prog.type("enum bpf_attach_type"), "BpfAttachType") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From e4172808f4c4389cf8a86c2753e4a42894798c0a Mon Sep 17 00:00:00 2001 | |
From: Andrii Nakryiko <[email protected]> | |
Date: Tue, 25 Feb 2020 10:41:33 -0800 | |
Subject: [PATCH bpf-next] bpf: use more reliable BTF_TYPE_EMIT to preserve | |
btf_trace_xxx typedefs | |
BTF_TYPE_EMIT has more reliable mechanism to ensure compiler preserve | |
requested type information. It's already used by struct_ops mechanisms with | |
great reliability. Switch raw tracepoints to use the same mechanism. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#define FOR(i,f,n) for(int i=f; i<n; ++i) | |
int N, M, K, L, S, V; | |
int main() | |
{ | |
//freopen("in.txt", "r", stdin); | |
//freopen("out.txt", "w", stdout); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Concurrent; | |
using System.Text; | |
using System.Threading; | |
using EventStore.ClientAPI; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
namespace EventStoreEventDispatcher | |
{ |