ubuntu@ip-172-31-11-97:~$ cat run.sh
set -x
sudo rm -rf /var/www/data
VER=1
./local/bin/strace -ff -s 500 -o strace.out ./usr/bin/sourcexr ./sourcexr_config
-rw-rw-r-- 1 ubuntu ubuntu 548401960 Apr 30 03:35 strace.out.30942
-rw-rw-r-- 1 ubuntu ubuntu 14595384 Apr 30 03:35 strace.out.30943
-rw-rw-r-- 1 ubuntu ubuntu 15171192 Apr 30 03:35 strace.out.30944
-rw-rw-r-- 1 ubuntu ubuntu 19335209 Apr 30 03:35 strace.out.30945
-rw-rw-r-- 1 ubuntu ubuntu 746783766 Apr 30 03:32 strace.out.30946
327 write(1, "Processing /home/ubuntu/data/leveldb/db/log_reader.cc\n", 54) = 54
328 brk(0x2630000) = 0x2630000
329 pread64(5, "// Copyright (c) 2011 The LevelDB Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file. See the AUTHORS file for names of contrib#
330 close(5) = 0
331 stat("/home/ubuntu/data/leveldb/db/db", 0x7fff622f71d0) = -1 ENOENT (No such file or directory)
332 stat("/home/ubuntu/data/leveldb/db/module.map", 0x7fff622f6af0) = -1 ENOENT (No such file or directory)
333 stat("/home/ubuntu/data/leveldb/module.map", 0x7fff622f6af0) = -1 ENOENT (No such file or directory)
334 open("/home/ubuntu/data/leveldb/db/log_reader.h", O_RDONLY) = 5
335 fstat(5, {st_mode=S_IFREG|0664, st_size=3773, ...}) = 0
336 pread64(5, "// Copyright (c) 2011 The LevelDB Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file. See the AUTHORS file for names of contrib#
337 close(5) = 0
338 open("/home/ubuntu/data/leveldb/stdint.h", O_RDONLY) = -1 ENOENT (No such file or directory)
339 stat("/home/ubuntu/data/leveldb/include/module.map", 0x7fff622f6af0) = -1 ENOENT (No such file or directory)
340 open("/home/ubuntu/data/leveldb/include/stdint.h", O_RDONLY) = -1 ENOENT (No such file or directory)
341 stat("/home/ubuntu/data/leveldb/include/leveldb/module.map", 0x7fff622f6af0) = -1 ENOENT (No such file or directory)
342 open("/home/ubuntu/data/leveldb/include/leveldb/stdint.h", O_RDONLY) = -1 ENOENT (No such file or directory)
343 stat("/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/module.map", 0x7fff622f6af0) = -1 ENOENT (No such file or directory)
344 open("/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/stdint.h", O_RDONLY) = -1 ENOENT (No such file or directory)
345 stat("/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu/module.map", 0x7fff622f6af0) = -1 ENOENT (No such file or directory)
346 open("/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu/stdint.h", O_RDONLY) = -1 ENOENT (No such file or directory)
347 stat("/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward/module.map", 0x7fff622f6af0) = -1 ENOENT (No such file or directory)
348 open("/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward/stdint.h", O_RDONLY) = -1 ENOENT (No such file or directory)
349 stat("/usr/local/include/module.map", 0x7fff622f6af0) = -1 ENOENT (No such file or directory)
350 open("/usr/local/include/stdint.h", O_RDONLY) = -1 ENOENT (No such file or directory)
351 stat("/home/ubuntu/usr/bin/../share/sourcexr/clang/include/module.map", {st_mode=S_IFREG|0644, st_size=2651, ...}) = 0
352 open("/home/ubuntu/usr/bin/../share/sourcexr/clang/include/module.map", O_RDONLY) = 5
353 pread64(5, "module _Builtin_intrinsics [system] {\n explicit module altivec {\n requires altivec\n header \"altivec.h\"\n }\n\n explicit module arm {\n requires arm\n\n explicit module neon {\n requires #
354 close(5)
1
2 # Sample config file for SourceXR
3
4 # some global variables for all projects
5 # Parse all files whose extension is cpp or cc
6 file_pattern = '.*\\.cpp$|.*\\.cc|.*\\.c$'
7
8 # Exclude hidden files
9 exclude_pattern = '^\..*|\.o$|ae_select.c|ae_kqueue.c|ae_evport.c|ae_epoll.c|test.c|zone.c|rehashing.c'
10
11 # Exclude SCM files
12 exclude_directory_pattern = '.git|examples|jemalloc/test'
13
14 # Output directory (where generated files will be put)
15 output_dir = '/var/www/data'
16
17 # Projects to be generated
18 projects = {
19
20 'leveldb': { # project configuration
21
22 # use global settings
23 'file_pattern': file_pattern,
24 'exclude_pattern': exclude_pattern,
25 'exclude_directory_pattern': exclude_directory_pattern,
26
27 # base source directory
28 'base_dir': '/home/ubuntu/data/leveldb',
29
30 # Parameters to be specified to clang (-I, etc)
31 'clang_args': [ '-I/usr/include/dir' ,
32 › › › '-I/home/ubuntu/data/leveldb',
33 › › › '-I/home/ubuntu/data/leveldb/include',
34 › › › '-I/home/ubuntu/data/leveldb/include/leveldb',
35 › › ]
36
37 },
38
39 }
40
41 # If compilation should be stopped if clang reports an error
42 abort_on_error = False
43
44 # License file
45 license_file = '/home/ubuntu/data/license'