Skip to content

Instantly share code, notes, and snippets.

View edwintorok's full-sized avatar
💭
I may be slow to respond.

Török Edwin edwintorok

💭
I may be slow to respond.
View GitHub Profile
arch/x86/kernel/acpi/sleep.c:101:14: error: member reference base type 'unsigned long' is not a structure or union
stack_start.sp = temp_stack + sizeof(temp_stack);
~~~~~~~~~~~ ^
1 error generated.
make[5]: *** [arch/x86/kernel/acpi/sleep.o] Error 1
#
# Automatically generated make config: don't edit
# Linux/x86_64 2.6.38.2 Kernel Configuration
# Wed Apr 13 15:58:00 2011
#
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
diff --git a/fs/xfs/quota/xfs_dquot.c b/fs/xfs/quota/xfs_dquot.c
index d22aa31..8f593fb 100644
--- a/fs/xfs/quota/xfs_dquot.c
+++ b/fs/xfs/quota/xfs_dquot.c
@@ -470,7 +470,8 @@ xfs_qm_dqtobp(
xfs_dqid_t id = be32_to_cpu(dqp->q_core.d_id);
xfs_trans_t *tp = (tpp ? *tpp : NULL);
- dqp->q_fileoffset = (xfs_fileoff_t)id / mp->m_quotainfo->qi_dqperchunk;
+ dqp->q_fileoffset = (xfs_fileoff_t)id;
Events: 85K cycles
4.18% clang [.] llvm::StringMapImpl::LookupBucketFor(llvm::StringRef) ↑
3.36% clang [.] clang::Lexer::LexTokenInternal(clang::Token&) ▮
1.91% clang [.] clang::SourceManager::getFileIDSlow(unsigned int) const ▒
1.83% clang [.] clang::Lexer::LexIdentifier(clang::Token&, char const*) ▒
1.67% clang [.] clang::TokenLexer::Lex(clang::Token&) ▒
1.44% clang [.] llvm::SmallPtrSetImpl::insert_imp(void const*)
Remote debugging using localhost:1234
__const_udelay (xloops=<value optimized out>) at arch/x86/lib/delay.c:120
120 xloops *= 4;
(gdb) bt
#0 __const_udelay (xloops=<value optimized out>) at arch/x86/lib/delay.c:120
#1 0xc1043c7a in panic (fmt=<value optimized out>) at kernel/panic.c:152
#2 0xc10472ca in do_exit (code=<value optimized out>) at kernel/exit.c:915
#3 0xc100627d in oops_end (flags=<value optimized out>, regs=Unhandled dwarf expression opcode 0x2
) at arch/x86/kernel/dumpstack.c:260
#4 0xc1024ee7 in no_context (regs=<value optimized out>, error_code=<value optimized out>) at arch/x86/mm/fault.c:672
asm volatile("movzwl %2, %0\n\t"
"cmpb %h0,%b0\n\t"
"leal 0x100(%" REG_PTR_MODE "0), %1\n\t"
"jne 1f\n\t"
LOCK_PREFIX "cmpxchgw %w1,%2\n\t"
"1:"
"sete %b1\n\t"
"movzbl %b1,%0\n\t"
: "=&a" (tmp), "=&q" (new), "+m" (lock->slock)
:
# Events: 407K cycles
#
# Overhead Command Shared Object
@edwintorok
edwintorok / upack_pathscale_bug.c
Created June 16, 2011 14:09
upack_pathscale_bug.c
/*
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Michal 'GiM' Spadlinski
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
@edwintorok
edwintorok / foo.i
Created March 12, 2013 13:02
nixos gcc testcase
# 1 "/tmp/nix-build-unionfs-fuse-0.26.drv-4/unionfs-fuse-0.26/src/unionfs.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/tmp/nix-build-unionfs-fuse-0.26.drv-4/unionfs-fuse-0.26/src/unionfs.c"
# 18 "/tmp/nix-build-unionfs-fuse-0.26.drv-4/unionfs-fuse-0.26/src/unionfs.c"
# 1 "/nix/store/i7w0vzkhv1c1ci5xa9v5qr17vzy1p6hr-fuse-2.9.2/include/fuse.h" 1
# 9 "/nix/store/i7w0vzkhv1c1ci5xa9v5qr17vzy1p6hr-fuse-2.9.2/include/fuse.h"
# 1 "/nix/store/i7w0vzkhv1c1ci5xa9v5qr17vzy1p6hr-fuse-2.9.2/include/fuse/fuse.h" 1
# 26 "/nix/store/i7w0vzkhv1c1ci5xa9v5qr17vzy1p6hr-fuse-2.9.2/include/fuse/fuse.h"
# 1 "/nix/store/i7w0vzkhv1c1ci5xa9v5qr17vzy1p6hr-fuse-2.9.2/include/fuse/fuse_common.h" 1
#!/usr/bin/aspcud $in $out $pref -removed,-notuptodate,-new
preamble:
property: installed-root: bool = [false], reinstall: bool = [false], buildessential: bool = [false], essential: bool = [false], sourceversion: int = [1], sourcenumber: string = [""], source: string = [""], number: string, recommends: vpkgformula = [true!]
package: oasis2opam
version: 43
depends: ocamlfind , oasis-mirage >= 38 | oasis < 52 , oasis-mirage >= 38 | oasis >= 38 , oasis
conflicts: oasis2opam
number: 0.3.4
source: oasis2opam