Skip to content

Instantly share code, notes, and snippets.

View sgraham's full-sized avatar

Scott Graham sgraham

View GitHub Profile
[netsvc-denials scottmg@around /work/fuchsia]$ readelf -d out/default/system_log_ptr_unittest
Dynamic section at offset 0x23e8 contains 33 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libfostr_shared.so]
0x0000000000000001 (NEEDED) Shared library: [libfxl_logging.so]
0x0000000000000001 (NEEDED) Shared library: [libcrypto.so]
0x0000000000000001 (NEEDED) Shared library: [libssl.so]
0x0000000000000001 (NEEDED) Shared library: [libminizip.so]
0x0000000000000001 (NEEDED) Shared library: [libz.so]
[netsvc-denials scottmg@around /work/fuchsia]$ readelf -d out/default/kernel_log_ptr_integration_test
Dynamic section at offset 0x2358 contains 33 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libfxl_logging.so]
0x0000000000000001 (NEEDED) Shared library: [libfostr_shared.so]
0x0000000000000001 (NEEDED) Shared library: [libcrypto.so]
0x0000000000000001 (NEEDED) Shared library: [libssl.so]
0x0000000000000001 (NEEDED) Shared library: [libminizip.so]
0x0000000000000001 (NEEDED) Shared library: [libz.so]
/work/fuchsia/out/default]$ /work/fuchsia/prebuilt/third_party/clang/linux-x64/bin/iwyu_tool.py -p /work/fuchsia/compile_commands.json ../../src/developer/feedback/feedback_agent/annotations.cc -o clang
../../src/developer/feedback/feedback_agent/annotations.h:1:1: error: add the following line
#include <iosfwd> // for string
../../src/developer/feedback/feedback_agent/annotations.h:1:1: error: add the following line
namespace fit { template <typename Continuation> class promise_impl; }
../../src/developer/feedback/feedback_agent/annotations.h:1:1: error: add the following line
namespace fuchsia { namespace feedback { class Annotation; } }
../../src/developer/feedback/feedback_agent/annotations.h:1:1: error: add the following line
namespace sys { class ServiceDirectory; }
../../src/developer/feedback/feedback_agent/annotations.h:1:1: error: add the following line
$ runtests -t linenoise-test-test
------------------------------------------------
RUNNING TEST: /system/test/sys/linenoise-test-test
[==========] Flag Values:
--gtest_random_seed = 1567206112
[==========]
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
$ runtests -t linenoise-test-test
------------------------------------------------
RUNNING TEST: /system/test/sys/linenoise-test-test
[==========] Flag Values:
--gtest_random_seed = 1567205953
[==========]
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[00002.140] 01028:01045> LogDispatcher created: koid=1046, process=1028 (userboot)
[00002.206] 01069:01072> dynlink created logger koid=1046
[00002.225] 01069:01072> LogDispatcher created: koid=1125, process=1069 (bin/bootsvc)
[00002.314] 01147:01163> LogDispatcher created: koid=1166, process=1147 (bin/component_manager)
[00002.314] 01147:01163> dynlink created logger koid=1166
[00002.321] 01147:01163> LogDispatcher created: koid=1202, process=1147 (bin/component_manager)
[00002.329] 01278:01280> LogDispatcher created: koid=1292, process=1278 (devcoordinator.cm)
[00002.329] 01278:01280> dynlink created logger koid=1292
[00002.338] 01278:01280> LogDispatcher created: koid=1392, process=1278 (devcoordinator.cm)
[00002.340] 01407:01434> LogDispatcher created: koid=1450, process=1407 (svchost)
$ run kcounter_inspect_integration_test
Found fuchsia-pkg://fuchsia.com/kcounter_inspect_tests#meta/kcounter_inspect_integration_test.cmx, executing.
[==========] Running 2 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 2 tests from KcounterInspectIntegrationTest
[ RUN ] KcounterInspectIntegrationTest.FidlConnection
[ OK ] KcounterInspectIntegrationTest.FidlConnection (0 ms)
[ RUN ] KcounterInspectIntegrationTest.InspectReading
[ OK ] KcounterInspectIntegrationTest.InspectReading (1 ms)
[----------] 2 tests from KcounterInspectIntegrationTest (5 ms total)
map ,ac ggO// Copyright 2019 The Fuchsia Authors. All rights reserved.<CR>Use of this source code is governed by a BSD-style license that can be<CR>found in the LICENSE file.<CR><esc>ddO<esc>
function! HeaderGuard()
python << endpython
import vim
name = vim.current.buffer.name
before, sep, main_name = name.rpartition('fuchsia' + os.path.sep)
guard_name = main_name.upper().replace(os.path.sep, '_').replace('.', '_') + '_'
vim.current.buffer.append('#ifndef ' + guard_name + '\n')
vim.current.buffer.append('#define ' + guard_name + '\n')
0x000000: 20 00 00 00 49 4e 53 50 c0 01 00 00 00 00 00 00 ...INSP........
0x000010: 30 00 00 00 20 00 00 00 08 00 00 00 00 00 00 00 0... ...........
0x000020: 90 08 00 00 00 00 00 00 6b 63 6f 75 6e 74 65 72 ........kcounter
0x000030: 30 01 00 00 40 00 00 00 01 00 00 00 00 00 00 00 0...@...........
0x000040: 90 07 00 00 00 00 00 00 63 68 61 6e 6e 65 6c 00 ........channel.
0x000050: 40 03 00 00 60 00 00 00 40 65 00 00 00 00 00 00 @...`...@e......
0x000060: 91 10 00 00 00 00 00 00 63 68 61 6e 6e 65 6c 2e ........channel.
0x000070: 6d 65 73 73 61 67 65 73 00 00 00 00 00 00 00 00 messages........
0x000080: 30 01 00 00 a0 00 00 00 0e 00 00 00 00 00 00 00 0...............
0x000090: 40 08 00 00 c0 00 00 00 00 00 00 00 00 00 00 00 @...............
ZIRCON KERNEL PANIC
UPTIME: 39125ms
BUILDID git-a39cbcf869e2f2f837e0a5c12b07a44ceea5c3dc-dirty
dso: id=9ea5087423926eaad478ed8b6118633c4e23fbc0 base=0xffffffff00100000 name=zircon.elf
stopping other cpus
panic (caller 0xffffffff0022b7e8 frame 0xffffff9f7c59fca0): DEBUG ASSERT FAILED at (../../zircon/kernel/kernel/sched.cpp:804):
arch_num_spinlocks_held() == 1
platform_halt suggested_action 0 reason 2
Halting...
BUILDID git-a39cbcf869e2f2f837e0a5c12b07a44ceea5c3dc-dirty