Skip to content

Instantly share code, notes, and snippets.

View ikitayama's full-sized avatar
🏠
Working from home

Itaru Kitayama ikitayama

🏠
Working from home
  • Fujitsu
  • Kobe
  • 12:56 (UTC +09:00)
  • LinkedIn in/itaru
View GitHub Profile

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

spack list
$ spack find
==> 909 installed packages
-- linux-centos7-thunderx2 / gcc@9.2.0 --------------------------
cmake@3.18.1 gmp@6.1.2 mpc@1.1.0 ncurses@6.2 zlib@1.2.11
gcc@10.1.0 isl@0.21 mpfr@4.0.2 openssl@1.1.1g zstd@1.4.5
-- linux-centos7-thunderx2 / gcc@10.1.0 -------------------------
bzip2@1.0.8 libbsd@0.10.0 ncurses@6.2 sqlite@3.31.1
Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)":
clang version 11.0.0 (https://github.com/llvm/llvm-project 3d8149c2a1228609fd7d7c91a04681304a2f0ca9)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/users/itaru.kitayama/opt/clang/stable/bin
Determining if the include file malloc/malloc.h exists failed with the following output:
Change Dir: /slurm/scratch/5663/202007080943/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_40e2d/fast && /usr/bin/gmake -f CMakeFiles/cmTC_40e2d.dir/build.make CMakeFiles/cmTC_40e2d.dir/build
gmake[1]: Entering directory '/slurm/scratch/5663/202007080943/CMakeFiles/CMakeTmp'
@ikitayama
ikitayama / gist:26f46c74fd012e2c6a018852eaac04d0
Created April 24, 2017 01:22
Count the number of times f1() called
Enabling DyninstAPI inst debug
Enabling DyninstAPI relocation debug
Enabling DyninstAPI ast debug
Enabling DyninstAPI inferior malloc debugging
[281472996003008]dynProcess.C[765]: adding heap at 0xffff95e70000 to 0xffff95ef0000, name DYNINSTstaticHeap_512K_lowmemHeap_1
[281472996003008]dynProcess.C[779]: Adding heap from 0xffff95e70000 - 0xffff95ef0000 (524288 bytes, type 4096) from mapped object libdyninstAPI_RT.so.9.3.1
[281472996003008]dynProcess.C[765]: adding heap at 0xffff95ef0000 to 0xffff96ef0000, name DYNINSTstaticHeap_16M_anyHeap_1
@ikitayama
ikitayama / gist:46f8a0cd02006064e537ca5913294d0b
Created April 17, 2017 01:39
Log of the test_stack_2 test
Commencing test(s) ...
Sun Apr 16 20:36:05 CDT 2017
Linux r2-a21 4.11.0-rc1+ #2 SMP Fri Mar 24 02:22:02 CDT 2017 aarch64 aarch64 aarch64 GNU/Linux
TESTDIR=/home/itaru.kitayama/validations/testsuite
[Tests with test_stack_2.dyn_g++_64_none_none]
-rwxr-xr-x 1 itaru.kitayama itaru.kitayama 72256 Mar 18 06:36 test_stack_2.dyn_g++_64_none_none*
linux-vdso.so.1 (0x0000ffffb6fa0000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x0000ffffb6dc0000)
libm.so.6 => /lib64/libm.so.6 (0x0000ffffb6cf0000)
#0 EmitterAARCH64::emitCall (this=0xffffb7f99040 <AddressSpace::getEmitter()::emitter64Dyn>, op=callOp, gen=...,
operands=std::vector of length 3, capacity 4 = {...}, noCost=false, callee=0x6a13300)
at /home/itaru.kitayama/projects/dyninst/dyninstAPI/src/emit-aarch64.C:82
#1 0x0000ffffb7e6272c in AstCallNode::generateCode_phase2 (this=0x6a13270, gen=..., noCost=<optimized out>, retReg=@0xffffffffe69c: 4294967295)
at /home/itaru.kitayama/projects/dyninst/dyninstAPI/src/ast.C:2136
#2 0x0000ffffb7e5ebb0 in AstNode::generateCode (this=0x6a13270, gen=..., noCost=<optimized out>, retAddr=@0xffffffffe6a0: 0,
retReg=@0xffffffffe69c: 4294967295) at /home/itaru.kitayama/projects/dyninst/dyninstAPI/src/ast.C:736
#3 0x0000ffffb7ebe6fc in AstNode::generateCode (retReg=@0xffffffffe70c: 0, noCost=false, gen=..., this=<optimized out>)
at /home/itaru.kitayama/projects/dyninst/dyninstAPI/src/ast.h:282
[process.C:6874-U] - User wants to write memory to remote addr 0xffffb6def260 from buffer 0x0x2bf27b0 of size 4
[process.C:1569-U] - Writing to remote memory ffffb6def260 from 0x2bf27b0, size = 4 on 10024/10024
[response.C:304-U] - Waiting for async event 134, complete
[process.C:6874-U] - User wants to write memory to remote addr 0xffffb6def274 from buffer 0x0x4121670 of size 4
[process.C:1569-U] - Writing to remote memory ffffb6def274 from 0x4121670, size = 4 on 10024/10024
[response.C:304-U] - Waiting for async event 135, complete
[process.C:6874-U] - User wants to write memory to remote addr 0xffffb6def270 from buffer 0x0x3653860 of size 4
[process.C:1569-U] - Writing to remote memory ffffb6def270 from 0x3653860, size = 4 on 10024/10024
[response.C:304-U] - Waiting for async event 136, complete
#0 EmitterAARCH64::emitCall (this=0xffffb7f99040 <AddressSpace::getEmitter()::emitter64Dyn>, op=callOp, gen=...,
operands=std::vector of length 3, capacity 4 = {...}, noCost=false, callee=0x4cc5bb0)
at /home/itaru.kitayama/projects/dyninst/dyninstAPI/src/emit-aarch64.C:82
#1 0x0000ffffb7e6272c in AstCallNode::generateCode_phase2 (this=0x4cc5b20, gen=..., noCost=<optimized out>,
retReg=@0xffffffffe6ac: 4294967295) at /home/itaru.kitayama/projects/dyninst/dyninstAPI/src/ast.C:2136
#2 0x0000ffffb7e5ebb0 in AstNode::generateCode (this=0x4cc5b20, gen=..., noCost=<optimized out>, retAddr=@0xffffffffe6b0: 0,
retReg=@0xffffffffe6ac: 4294967295) at /home/itaru.kitayama/projects/dyninst/dyninstAPI/src/ast.C:736
#3 0x0000ffffb7ebe6fc in AstNode::generateCode (retReg=@0xffffffffe71c: 0, noCost=false, gen=..., this=<optimized out>)
at /home/itaru.kitayama/projects/dyninst/dyninstAPI/src/ast.h:282
#4 PCProcess::postIRPC (this=this@entry=0x5b4110, action=..., userData=userData@entry=0x0,
#4 0x0000ffffb7f114d0 in insnCodeGen::generateBranchViaTrap (gen=...,
from=from@entry=18446744073709551615, to=to@entry=281473750941032,
isCall=isCall@entry=true)
at /home/itaru.kitayama/projects/dyninst/dyninstAPI/src/codegen-aarch64.C:203
#5 0x0000ffffb7f11af4 in insnCodeGen::generateLongBranch (gen=...,
from=from@entry=18446744073709551615, to=to@entry=281473750941032,
isCall=isCall@entry=true)
at /home/itaru.kitayama/projects/dyninst/dyninstAPI/src/codegen-aarch64.C:164
#6 0x0000ffffb7f11d40 in insnCodeGen::generateBranch (gen=...,
from=18446744073709551615, to=281473750941032, link=link@entry=true)