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 / 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
#../git/common/connection.c:154:55: error: comparison of integers of different signs: 'unsigned long' and 'long' [-Werror,-Wsign-compare]
#  154 |         for (cmsg = CMSG_FIRSTHDR(msg); cmsg != NULL; cmsg = CMSG_NXTHDR(msg, cmsg)) {
#      |                                                              ^~~~~~~~~~~~~~~~~~~~~~
#/mnt/b/yoe/master/sources/poky/build/tmp/work/riscv64-poky-linux-musl/seatd/0.9.1/recipe-sysroot/usr/include/sys/socket.h:358:44: note: expanded from macro 'CMSG_NXTHDR'
#  358 |         __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@kraj
kraj / gist:acf51cef63668d22ba780f419305d9d7
Created May 12, 2025 05:44
findutils test failure on musl
--- exp
+++ err
@@ -1 +1 @@
-find: invalid user name or UID argument to -user: '4294967296'
+find: invalid user name or UID argument to -user: ‘4294967296’
--- exp
+++ err
@@ -1 +1 @@
-find: invalid group name or GID argument to -group: '4294967296'
+find: invalid group name or GID argument to -group: ‘4294967296’
From f4d87a5dccf89926e69826e1b9bd7591f8a03c7d Mon Sep 17 00:00:00 2001
From: Khem Raj <[email protected]>
Date: Mon, 31 Mar 2025 16:52:12 -0700
Subject: [PATCH] tegra_virt_storage: Add check for
NV_BLOCK_DEVICE_OPERATIONS_OPEN_HAS_GENDISK_ARG
This matches the disk or device selections few lines above
Signed-off-by: Khem Raj <[email protected]>
---