Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@anakryiko
anakryiko / bpf-next-arm64.config
Created July 14, 2023 15:35
Bootable ARM64 (aarch64) Kconfig for bpf-next
#
# 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
From e4172808f4c4389cf8a86c2753e4a42894798c0a Mon Sep 17 00:00:00 2001
From: Andrii Nakryiko <andriin@fb.com>
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.
@anakryiko
anakryiko / gist:5561673
Created May 11, 2013 22:41
Russian Code Cup 2013 Qualification 2, problem C
#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);
using System;
using System.Collections.Concurrent;
using System.Text;
using System.Threading;
using EventStore.ClientAPI;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace EventStoreEventDispatcher
{