Skip to content

Instantly share code, notes, and snippets.

View kraj's full-sized avatar
🙂
peace

Khem Raj kraj

🙂
peace
View GitHub Profile
@kraj
kraj / a.patch
Created January 6, 2026 02:30
a.patch
diff --git a/clang/include/clang/Basic/OffloadArch.h b/clang/include/clang/Basic/OffloadArch.h
index ea665b1f49e0..b7d6e00f628e 100644
--- a/clang/include/clang/Basic/OffloadArch.h
+++ b/clang/include/clang/Basic/OffloadArch.h
@@ -16,7 +16,7 @@ class StringRef;
namespace clang {
enum class OffloadArch {
- UNUSED,
+ UNUSED_,
@kraj
kraj / mntbyoemasterbuildtmpworkx86_64-linuxmesa-native25.3.1templog.do_compile.7145
Created January 6, 2026 01:44
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/mesa-native/25.3.1/temp/log.do_compile.7145
This file has been truncated, but you can view the full file.
DEBUG: Executing shell function do_compile
[1/2679] /mnt/b/yoe/master/build/tmp/hosttools/ccache gcc -Isrc/c11/impl/libmesa_util_c11.a.p -Isrc/c11/impl -I../sources/mesa-25.3.1/src/c11/impl -Isrc -I../sources/mesa-25.3.1/src -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="25.3.1"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=1 -DHAVE_OPENGL_ES_2=1 -DHAVE_CROCUS -DHAVE_I915 -DHAVE_IRIS -DHAVE_LLVMPIPE -DHAVE_NOUVEAU -DHAVE_R300 -DHAVE_R600 -DHAVE_RADEONSI -DHAVE_SOFTPIPE -DHAVE_SVGA -DHAVE_VIRGL -DHAVE_SWRAST -DMESA_SYSTEM_HAS_KMS_DRM=1 -DVIDEO_CODEC_VC1DEC=1 -DVIDEO_CODEC_H264DEC=1 -DVIDEO_CODEC_H264ENC=1 -DVIDEO_CODEC_H265DEC=1 -DVIDEO_CODEC_H265ENC=1 -DVIDEO_CODEC_AV1DEC=1 -DVIDEO_CODEC_AV1ENC=1 -DVIDEO_CODEC_VP9DEC=1 -DHAVE_WAYLAND_PLATFORM -DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_D
@kraj
kraj / mntbyoemasterbuildtmpworkcortexa57-yoe-linuxmenulibre2.4.0templog.do_install.111816
Created January 5, 2026 02:11
/mnt/b/yoe/master/build/tmp/work/cortexa57-yoe-linux/menulibre/2.4.0/temp/log.do_install.111816
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-core/glibc/glibc_2.43.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-devtools/clang/clang-cross_git.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-devtools/clang/compiler-rt_git.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-devtools/clang/libcxx_git.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_15.2.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-devtools/python/python3_3.13.9.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.69.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.44.4.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembe
@kraj
kraj / stdin
Last active November 20, 2025 19:37
stdin
❯ cat sort.txt
ata
at_keyboard
kraj@apollo ~/tests
❯ LC_COLLATE=en_US.UTF-8 sort sort.txt
ata
at_keyboard
kraj@apollo ~/tests
@kraj
kraj / mntbyoemasterbuildtmpworkriscv64imafdc-yoe-linuxpython3-orjson3.11.3templog.do_compile
Created November 18, 2025 17:24
/mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/python3-orjson/3.11.3/temp/log.do_compile
DEBUG: Executing shell function do_compile
* Getting build dependencies for wheel...
* Building wheel...
Running `maturin pep517 build-wheel -i /mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/python3-orjson/3.11.3/recipe-sysroot-native/usr/bin/nativepython3 --compatibility off`
📦 Including license file `LICENSE-APACHE`
📦 Including license file `LICENSE-MIT`
🍹 Building a mixed python/rust project
🔗 Found pyo3-ffi bindings
🐍 Found CPython 3.13
Compiling target-lexicon v0.13.2
@kraj
kraj / mntbyoemasterbuildtmpworkcortexa55-yoe-linuxrust1.90.0templog.do_install.19844
Created October 18, 2025 17:48
/mnt/b/yoe/master/build/tmp/work/cortexa55-yoe-linux/rust/1.90.0/temp/log.do_install.19844
This file has been truncated, but you can view the full file.
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-core/glibc/glibc_2.42.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-devtools/clang/clang-cross_git.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-devtools/clang/compiler-rt_git.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-devtools/clang/libcxx_git.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-devtools/clang/llvm_git.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_15.2.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.69.bb:do_populate_sysroot', '/mnt/b/yoe/master/sources/openembedded-core/meta/recipes-devtools/rust/libstd-rs_1.90.0.bb:do_populate_sysroot', 'virtual:native:/mnt/b/yoe/master/sources/open
// preadv_pwritev_test.c
// run like below
// strace -ff -vv -o trace.log -e trace=pread64,preadv,pwrite64,pwritev ./a.out
#define _GNU_SOURCE
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/uio.h>
<?xml version="1.0"?>
<!--
# SPDX-FileCopyrightText: Copyright (c) 2023-2024 NVIDIA CORPORATION & AFFILIATES.
# All rights reserved.
# SPDX-License-Identifier: LicenseRef-NvidiaProprietary
#
# NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
# property and proprietary rights in and to this material, related
# documentation and any modifications thereto. Any use, reproduction,
# Basic cgroup support:
CONFIG_CGROUPS=y
# Cgroups v2 (unified hierarchy):
CONFIG_CGROUP_UNIFIED_HIERARCHY=y
# CPU controller (includes cpuset in v2):
@kraj
kraj / mntbyoemastersourcespokybuildtmpworkriscv32-poky-linux-muslpython3-lxml5.4.0templog.do_package_qa.3099543
Created May 26, 2025 16:08
/mnt/b/yoe/master/sources/poky/build/tmp/work/riscv32-poky-linux-musl/python3-lxml/5.4.0/temp/log.do_package_qa.3099543
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/mnt/b/yoe/master/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.44.bb:do_populate_sysroot', 'virtual:native:/mnt/b/yoe/master/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['gettext-minimal-native', 'binutils-cross-riscv32', 'libtool-native', 'm4-native', 'texinfo-dummy-native', 'zlib-native', 'flex-native', 'gnu-config-native', 'pseudo-native', 'xz-native', 'attr-native', 'sqlite3-native']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function do_package_qa
DEBUG: Executing python function read_subpackage_metadata
DEBUG: Python function read_subpackage_metadata finished