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
@edwintorok
edwintorok / -
Created September 5, 2015 21:17
This file has been truncated, but you can view the full file.
execve("/home/edwin/.opam/4.02.3+alias/build/irmin.0.9.9/test.native", ["/home/edwin/.opam/4.02.3+alias/build/irmin.0.9.9/test.native", "test", "HTTP.MEM.raw"], [/* 45 vars */]) = 0
brk(0) = 0x22c3000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f382ef8f000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/tls/x86_64", 0x7ffd18f9dbb0) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/tls", 0x7ffd18f9dbb0) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
This file has been truncated, but you can view the full file.
execve("_build/lib_test/test.native", ["_build/lib_test/test.native", "test", "HTTP.MEM.raw"], [/* 45 vars */]) = 0
brk(0) = 0x28e1000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6f695c6000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/tls/x86_64", 0x7ffeddcb7180) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/tls", 0x7ffeddcb7180) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
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
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
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;
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,