Skip to content

Instantly share code, notes, and snippets.

Marti Bolivar mbolivar

Block or report user

Report or block mbolivar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c5d36baf581fc47a6d51257164adfe78
Bluetooth monitor ver 5.50
= Note: Linux version 5.1.8-arch1-1-ARCH (x86_64) 0.845379
= Note: Bluetooth subsystem version 2.22 0.845381
= New Index: DC:8B:28:2D:87:9A (Primary,USB,hci0) [hci0] 0.845382
= Open Index: DC:8B:28:2D:87:9A [hci0] 0.845383
= Index Info: DC:8B:28:2D:87:9A (Intel Corp.) [hci0] 0.845383
@ MGMT Open: bluetoothd (privileged) version 1.14 {0x0001} 0.845384
@ MGMT Open: btmon (privileged) version 1.14 {0x0002} 0.848556
@ RAW Open: mcumgr (privileged) version 2.22 {0x0003} 65.263344
< HCI Command: Reset (0x03|0x0003) plen 0 #1 [hci0] 65.263406
View btmon.txt
Bluetooth monitor ver 5.50
= Note: Linux version 5.1.8-arch1-1-ARCH (x86_64) 0.049146
= Note: Bluetooth subsystem version 2.22 0.049148
= New Index: DC:8B:28:2D:87:9A (Primary,USB,hci0) [hci0] 0.049149
= Open Index: DC:8B:28:2D:87:9A [hci0] 0.049149
= Index Info: DC:8B:28:2D:87:9A (Intel Corp.) [hci0] 0.049150
@ MGMT Open: bluetoothd (privileged) version 1.14 {0x0001} 0.049151
@ MGMT Open: btmon (privileged) version 1.14 {0x0002} 0.049762
@ RAW Open: mcumgr (privileged) version 2.22 {0x0003} 5.610374
< HCI Command: Reset (0x03|0x0003) plen 0 #1 [hci0] 5.610436
View analyze-mcuboot-img.py
#!/usr/bin/env python3
# Copyright (c) 2018 Foundries.io
#
# SPDX-License-Identifier: Apache-2.0
import argparse
from collections import namedtuple
import struct
View zephyr-pr12879-testresults
(west) plop: ~/src/zephyr/zephyr/scripts/west_commands (pr12879) mbolivar
$ PYTHONPATH=$(west list --format="{abspath}" west)/src:$PWD py.test
==================================================================== test session starts =====================================================================
platform linux -- Python 3.6.7, pytest-4.1.1, py-1.7.0, pluggy-0.8.1
rootdir: /home/mbolivar/src/zephyr/zephyr/scripts/west_commands, inifile:
collected 45 items
tests/test_imports.py . [ 2%]
tests/test_nrfjprog.py ................................ [ 73%]
tests/test_pyocd.py FFFFFFFFFFFF
View sfsd
manifest:
defaults:
...
remotes:
...
zephyr:
revision: ...
View linker relaxation on rv32m1 toolchain
--------------------
$ cat reloc.c
long global_symbol;
int _start(void) { return global_symbol; }
--------------------
$ cat reloc-weak.c
__attribute__((weak)) long global_symbol;
View gist:b1c6c2d39d42ea7e1b8118be543d7913
diff -urN build-seq/html/api/bluetooth.html build-pll/html/api/bluetooth.html
--- build-seq/html/api/bluetooth.html 2018-10-11 09:18:50.546963746 -0600
+++ build-pll/html/api/bluetooth.html 2018-10-11 09:12:15.376291227 -0600
@@ -95,35 +95,50 @@
<li class="toctree-l1"><a class="reference internal" href="../contribute/contribute.html">Contributing to the Zephyr Project</a></li>
<li class="toctree-l1"><a class="reference internal" href="../kernel/kernel.html">Zephyr Kernel Primer</a></li>
<li class="toctree-l1"><a class="reference internal" href="../security/security.html">Zephyr Project Security</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../application/index.html">Developer Guides</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../boards/boards.html">Supported Boards</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../devices/index.html">Device and Driver Support</a></li>
View gist:22c0bff7dcaf95533d5e2605473f38a9
sanity-out/qemu_x86/tests/benchmarks/timing_info/benchmark.timing.default_kernel/handler.log
sanity-out/qemu_x86/tests/benchmarks/timing_info/benchmark.timing.userspace/handler.log
sanity-out/qemu_x86/tests/benchmarks/latency_measure/benchmark.latency/handler.log
sanity-out/qemu_x86/tests/benchmarks/boot_time/benchmark.boot_time/handler.log
sanity-out/qemu_x86/tests/benchmarks/sys_kernel/benchmark.kernel/handler.log
View gist:4bf39c4ce99de896808f5d4d149d5b22
$ find sanity-out/ -name handler.log
sanity-out/qemu_x86/tests/benchmarks/timing_info/benchmark.timing.default_kernel/handler.log
sanity-out/qemu_x86/tests/benchmarks/timing_info/benchmark.timing.userspace/handler.log
sanity-out/qemu_x86/tests/benchmarks/latency_measure/benchmark.latency/handler.log
sanity-out/qemu_x86/tests/benchmarks/boot_time/benchmark.boot_time/handler.log
sanity-out/qemu_x86/tests/benchmarks/sys_kernel/benchmark.kernel/handler.log
View Zephyr benchmark timing with userspace, frdm_k64f, v1.13.0-rc1
# Run userspace-enabled benchmark timing tests:
$ sanitycheck --device-testing --device-serial /dev/ttyACM0 -p frdm_k64f --test tests/benchmarks/timing_info/benchmark.timing.userspace
# Print the results
$ cat sanity-out/frdm_k64f/tests/benchmarks/timing_info/benchmark.timing.userspace/handler.log
***** Booting Zephyr OS v1.13.0-rc1 *****
starting test - Time Measurement
Timing Results: Clock Frequency: 120 MHz
Context switch : 860 cycles , 7166 ns
Interrupt latency : 0 cycles , 0 ns
You can’t perform that action at this time.