Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
FILE="/proc/interrupts"
output=$(awk 'NR==1 {
core_count = NF
for (i = 1; i <= core_count; i++)
names[i-1] = $i
next
}
#!/usr/bin/env bash
cat /proc/modules | cut -f 1 -d " " | while read module; do \
echo "Module: $module"; \
if [ -d "/sys/module/$module/parameters" ]; then \
ls /sys/module/$module/parameters/ | while read parameter; do \
echo -n "Parameter: $parameter --> "; \
cat /sys/module/$module/parameters/$parameter; \
done; \
fi; \
@faicker
faicker / dropstat.sh
Created September 29, 2017 07:36
linux kernel packet drop stat
#!/usr/bin/env bash
function print() {
for nic in ${@}; do
echo "$nic:"
echo " ifconfig:"
ifconfig $nic | grep drop | sed 's/^\s\+//'
echo " ethtool:"
ethtool -S $nic | grep -E '(err|drop|rx_no_dma_resources)' | grep -v ': 0$' | sed 's/^\s\+//'
echo " tc:"
@faicker
faicker / README.md
Last active May 31, 2022 17:01 — forked from oznu/README.md
QEMU + Ubuntu ARM aarch64

QEMU + Ubuntu ARM aarch64

These are the steps I used to get Ubuntu ARM aarch64 running with QEMU latest 5.0.0

Get Ubuntu Image and QEMU EFI:

wget https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-arm64-uefi1.img
wget https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/QEMU_EFI.fd