ACPI enumerates and lists the different DMA engines in the platform, and device scope relationships between PCI devices and which DMA engine controls them.
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
#!/bin/bash | |
verilator -Wno-STMTDLY -Wno-PINMISSING -Wno-LITENDIAN -Wno-CASEX -Wno-CASEINCOMPLETE -Wno-COMBDLY -Wno-WIDTH -Wno-UNOPTFLAT -f vlog_files.list +define+VENDOR_ALTERA +define+TOOL_QUARTUS +define+NUM_AFUS=1 +define+NLB400_MODE_0 +define+ASE_PLATFORM_MCP_SKYLAKE -I./nlb_rtl/rtl/include_files/common -I./sim_lib_verilated -I./sim_lib --top-module ccip_std_afu -cc test.c |
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
#!/bin/bash | |
./configure --with-x-toolkit=gtk3 --with-gif=no --enable-link-time-optimization --without-xim --without-sync-input --without-dbus CPPFLAGS="-fgnu89-inline" CFLAGS="-flto -O2 -march=native" LDFLAGS="-flto" |
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
#!/bin/bash | |
sudo ~/Downloads/qemu-2.9.0/x86_64-softmmu/qemu-system-x86_64 -hda backups/ubuntu15u10_amd64.img -append "root=/dev/sda1 console=hvc0 ip=dhcp rd.shell=1" -chardev stdio,id=stdio,mux=on -device virtio-serial-pci -device virtconsole,chardev=stdio -mon chardev=stdio -m 16000 -net nic,model=virtio,macaddr=52:54:00:12:34:56 -net user,hostfwd=tcp:127.0.0.1:4444-:22 -net tap,id=network0,ifname=tap0,script=no,downscript=no -display none -fsdev local,id=fs1,path=$HOME/shared,security_model=none -kernel /mnt/data/ajaraber/VMs/linux-4.8/arch/x86_64/boot/bzImage -smp 16 -runas lab -s -enable-kvm |
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
#!/bin/bash | |
autossh -M 20000 -R 9922:localhost:22 -R 9989:localhost:5900 -R 9991:cpt-swdev1:5901 -R 9992:cpt-swdev1:5902 -R 8822:cpt-swdev1:22 ubuntu01 |
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
#!/bin/bash | |
# make a copy of the relevant library | |
mkdir ~/lib | |
cp /usr/lib/x86_64-linux-gnu/libxcb.so.1 ~/lib | |
sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' ~/lib/libxcb.so.1 | |
# set the dynamic loader path to put your library first before executing VS Code | |
LD_LIBRARY_PATH=$HOME/lib code |
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
// Example program | |
#include <iostream> | |
#include <string> | |
#include <memory> | |
class singleton | |
{ | |
static std::shared_ptr<singleton> instance(int a) | |
{ | |
if (!instance_) |
Around means that the advice is executed instead of the function. You can still call the original with ad-do-it.
Just to add a small example:
(defun foo (x)
(* 2 x))
(defadvice foo (around bar activate)
(setq ad-return-value
OlderNewer