原创 編譯安裝systemtap

編譯內核 以前的配置cp /boot/config-`uname -r` .config Software-source 換源 sudo apt-get update sudo apt-get install build-essentia

原创 linux內核進程命名空間-應用層與內核層

///clone_vm.c part 1 #define _GNU_SOURCE #include<sched.h> #include<sys/wait.h> #include<string.h>   #include<sys/types

原创 linux內核進程命名空間函數分析

struct  pid 與 struct task_struct 都是全局的(內核的),struct  pid 的 level 爲最高的命名空間層次(全局的命名空間層次爲0),  task_struct.pid  爲全局的pid,find

原创 Linux內核本身和進程的區別 內核線程、用戶進程、用戶線程

轉https://blog.csdn.net/adudurant/article/details/23135661 Linux內核本身和進程的區別 內核線程、用戶進程、用戶線程 這個概念是很多人都混淆的了,我也是,剛開始無法理解OS時,把

原创 netlink實例

#include <linux/module.h>   #include <linux/netlink.h>   #include <net/netlink.h>   #include <net/net_namespace.h>   #d

原创 numpy sum

現在對於數據的處理更多的還是numpy。沒有axis參數表示全部相加,axis=0表示按列相加,axis=1表示按照行的方向相加 [python] view plain copy  print? >>> impo

原创 python num

python的 numpy當中 現在對於數據的處理更多的還是numpy。沒有axis參數表示全部相加,axis=0表示按列相加,axis=1表示按照行的方向相加 [python] view plain copy  pr