Skip to content

Instantly share code, notes, and snippets.

View kraj's full-sized avatar
🙂
peace

Khem Raj kraj

🙂
peace
View GitHub Profile
// 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]>
---
From caecc48349a5ec299db3cac52be8bd87ab3d950e Mon Sep 17 00:00:00 2001
From: Khem Raj <[email protected]>
Date: Mon, 31 Mar 2025 16:50:32 -0700
Subject: [PATCH] Disable int-conversion and implicit functon decl warnings as
errors
Makes GCC-15 a bit less fussy
Signed-off-by: Khem Raj <[email protected]>
---
@kraj
kraj / logs2024-10-24_144539qemux86-64_yoe-musl-systemd-wayland_meta-python-image-ptest-all.log
Created October 25, 2024 04:04
logs/2024-10-24_144539/qemux86-64_yoe-musl-systemd-wayland_meta-python-image-ptest-all.log
This file has been truncated, but you can view the full file.
WARNING: Published ports are discarded when using host network mode
NOTE: Started PRServer with DBfile: /mnt/b/yoe/master/cache/prserv.sqlite3, Address: 127.0.0.1:43241, PID: 110
Loading cache...done.
Loaded 5440 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "2.9.1"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
This file has been truncated, but you can view the full file.
WARNING: Published ports are discarded when using host network mode
NOTE: Started PRServer with DBfile: /mnt/b/yoe/master/cache/prserv.sqlite3, Address: 127.0.0.1:43241, PID: 110
Loading cache...done.
Loaded 5440 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "2.9.1"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"