Skip to content

Instantly share code, notes, and snippets.

View julian-klode's full-sized avatar

Julian Andres Klode julian-klode

View GitHub Profile
@julian-klode
julian-klode / perf-5.log
Last active February 10, 2026 20:06
perf_event_open() only works for group of up to 5 items on kernel 6.18, Ryzen 6850U; 6 seems to pass but is all 0s.
execve("./a.out", ["./a.out"], 0x7ffe6b19fd00 /* 86 vars */) = 0
brk(NULL) = 0x5bc7cb51f000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x724d0aa3e000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=121541, ...}) = 0
mmap(NULL, 121541, PROT_READ, MAP_PRIVATE, 3, 0) = 0x724d0aa20000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\247\2\0\0\0\0\0"..., 832) = 832
# Script to compare apt performance logs
#
# Copyright (C) 2026 Julian Andres Klode <jak@debian.org>
#
# SPDX-License-Identifier: GPL-2.0+
import sys
import typing
import pandas as pd
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@julian-klode
julian-klode / apt-cli-version.md
Last active October 6, 2025 20:46
APT CLI versioning mechanism

APT 3.1.x introduces a new behavior versioning mechanism, providing primarily stable command-line interfaces for scripting.

Version specification

The CLI version can be specified using --cli-version A[.B][.C].

If the B component is missing, the highest even B currently supported is selected. For example, --cli-version 3 will select 3.2 but not 3.3 in APT 3.3.x, as odd versions are development series.

If the C component is missing, all possible values are allowed.

/*
* APT daemon - Listing packages
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <memory>
#include <optional>
#include <string>
#include <variant>