Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.
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
## Common | |
```` | |
export OPT=/opt | |
export BUILDS=/some/where/mini_linux | |
mkdir -p $BUILDS | |
```` | |
## Linux kernel |
export CXXFLAGS="-g3 -O0 -pg"
make clean -j4
./configure
make -j -C erts/emulator debug
make -j4
make -j -C erts/emulator debug
make -j4 -C debug
export ERL_TOP=`pwd`
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 bash ftrace_task_cpu_migrate.sh | |
echo 0 > /sys/kernel/debug/tracing/tracing_on | |
sleep 1 | |
echo "tracing_off" | |
echo 0 > /sys/kernel/debug/tracing/events/enable | |
sleep 1 |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <netinet/tcp.h> | |
#include <sys/socket.h> | |
#include <sys/types.h> | |
#include <netinet/in.h> |
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
#include <stdio.h> /* fprintf() */ | |
#include <stdlib.h> /* exit() */ | |
#include <sys/types.h> /* socket(), wait4() */ | |
#include <sys/socket.h> /* socket() */ | |
#include <netinet/in.h> /* struct sockaddr_in */ | |
#include <sys/resource.h> /* wait4() */ | |
#include <sys/wait.h> /* wait4() */ | |
#include <pthread.h> /* pthread_create */ | |
#include <netdb.h> /* getnameinfo() */ | |
#include <string.h> /* strlen() */ |
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
/* Compile with: g++ -Wall –Werror -o shell shell.c */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> |
-
Install QEMU On Windows
- https://community.chocolatey.org/packages/Qemu
- You can Do this anyware Linux Or Mac. Because QEMU Support Crossplatform :)
-
ubuntu-20.04.4-preinstalled-server-riscv64+unleashed.img
-
fw_jump.elf
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
import urllib | |
import shutil | |
import re | |
from pathlib import Path | |
from bs4 import BeautifulSoup | |
# target page containing links to the image files | |
target_page = 'http://example.ca/image_links.php' | |
# local path |
Edit Makefile.
# SPDX-License-Identifier: GPL-2.0
KERNEL_PATH ?= /lib/modules/$(shell uname -r)/build
obj-m += lkdtm.o
lkdtm-objs += core.o
lkdtm-objs += bugs.o
NewerOlder