Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP][FEATS] add custom kernel and kernel logging #13

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
.ipynb_checkpoints
.metals
bak
.idea
.idea
*.swp
22 changes: 13 additions & 9 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
[submodule "memory-tracking/kafka/source"]
path = memory-tracking/kafka/source
url = [email protected]:rayandrews/custom-kafka.git

[submodule "memory-tracking/cassandra/source"]
path = memory-tracking/cassandra/source
url = [email protected]:rayandrews/custom-cassandra.git
path = memory-tracking/cassandra/source
url = https://github.com/rayandrews/custom-cassandra.git
[submodule "memory-tracking/kafka/source"]
path = memory-tracking/kafka/source
url = https://github.com/rayandrews/custom-kafka.git
[submodule "memory-tracking/hdfs/source"]
path = memory-tracking/hdfs/source
url = git@github.com:rayandrews/custom-hadoop.git
path = memory-tracking/hdfs/source
url = https://github.com/rayandrews/custom-hadoop.git
[submodule "memory-tracking/hbase/source"]
path = memory-tracking/hbase/source
url = [email protected]:rayandrews/custom-hbase.git
path = memory-tracking/hbase/source
url = https://github.com/rayandrews/custom-hbase.git
[submodule "custom-kernel/source"]
path = custom-kernel/source
url = https://github.com/rayandrews/custom-kernel.git
21 changes: 21 additions & 0 deletions custom-kernel/install-dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi

echo "Installing Dependencies"

sudo apt-get install build-essential libncurses-dev bison flex libssl-dev libelf-dev coreutils software-properties-common -y

sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y

sudo apt-get install gcc g++ gcc-7 g++-7

sudo update-alternatives --remove-all gcc

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7

echo "Finish installing dependencies"



24 changes: 24 additions & 0 deletions custom-kernel/install-kernel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi

echo "Compiling Linux Kernel"

make -j $(nproc)

echo "Installing kernel modules"

sudo make modules_install

echo "Install linux kernel"

sudo make install

echo "Update initramfs and grub (if exist)"

sudo update-initramfs -c -k 5.2.8

sudo update-grub

echo "Done installing Linux Kernel, Have fun :)"
18 changes: 18 additions & 0 deletions custom-kernel/prepare-config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## This sources has been taken mostly from this site
## https://www.cyberciti.biz/tips/compiling-linux-kernel-26.html
## All credits belong to nixCraft

#!/bin/bash

DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi

cd ./source

echo "Preparing Configurations"

make menuconfig

cp -v /boot/config-$(uname -r) .config

echo "Done preparing configurations"
1 change: 1 addition & 0 deletions custom-kernel/source
Submodule source added at 304d41
4 changes: 2 additions & 2 deletions madvise-ksm-c/src/with_madvise.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ int main(int argc, char *argv[])

while (1)
{
p_s();
// p_s();
}

return 0;
}
}