-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
115 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash -eux | ||
|
||
cat /etc/apt/sources.list | ||
|
||
sudo apt-get clean | ||
sudo apt-get update | ||
|
||
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list | ||
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list | ||
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C8CAB6595FDFF622 | ||
sudo apt-get clean | ||
sudo apt-get update | ||
|
||
sudo apt-get install -y linux-image-$(uname -r)-dbgsym |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash -eux | ||
|
||
sudo apt update | ||
sudo apt install python3.$(python3 --version | cut -d . -f 2)-dev | ||
|
||
# | ||
# Debug statements | ||
# | ||
echo $(which python3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash -eu | ||
|
||
scmds=( | ||
# Test `stacks` | ||
"stacks" | ||
|
||
# Test `dmesg` | ||
# ==== | ||
# Commented out until we fix: | ||
# https://github.com/delphix/sdb/issues/336 | ||
# ==== | ||
# "dmesg" | ||
|
||
# Test `lxlist` | ||
"addr modules | lxlist module list | member name" | ||
|
||
# Test `slabs` and `percpu` | ||
"slabs | filter \"obj.name == 'kmalloc-8'\" | member cpu_slab | percpu 0 1" | ||
|
||
# Test `pid` | ||
"pid 1" | ||
|
||
# Test `find_task` | ||
"find_task 1 2" | ||
|
||
# Test `threads` | ||
"threads" | ||
|
||
# Test `walk` and `slub_cache` walker | ||
"slabs | filter \"obj.name == 'TCP'\" | walk" | ||
|
||
# Test `rbtree` walker | ||
"addr vmap_area_root | rbtree vmap_area rb_node" | ||
|
||
# Test `fget` | ||
"find_task 1 | fget 1 4" | ||
) | ||
|
||
for ((i = 0; i < ${#scmds[@]}; i++)); do | ||
sudo /usr/local/bin/sdb -e "${scmds[$i]}" | ||
done |