並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 3 件 / 3件

新着順 人気順

systemcallの検索結果1 - 3 件 / 3件

  • fizzbuzz systemcall in FreeBSD - Shohei Yoshida's Diary

    Linuxは知らないですが、FreeBSDはわりと簡単システムコールが 追加できるので、紹介します。 試した環境 FreeBSD 8.3-Release i386 コード #include <sys/param.h> #include <sys/proc.h> #include <sys/module.h> #include <sys/sysproto.h> #include <sys/sysent.h> #include <sys/kernel.h> #include <sys/systm.h> struct fizzbuzz_args { int a_number; char *a_buf; }; static int fizzbuzz(struct thread *td, struct fizzbuzz_args *uap) { int num = uap->a_number, le

      fizzbuzz systemcall in FreeBSD - Shohei Yoshida's Diary
    • Kernel Systemcall Tracer for Linux

      The development of this program is partly supported by IPA (Information-Technology Promotion Agency, Japan). What is kstrax? kstrax(Kernel Systemcall Tracer for Linux) is the tool which records systemcall information in the kernel space. kstrax also analyzes and displays the information in the user space. It can trace all systemcalls executed on the system without any change of the kernel source c

      • SharedLibraryを用いたSystemCallのHook — かないノート

        SharedLibraryを用いたSystemCallのHook¶ dlsym/dlopenを用いた動的なSharedLibraryのLoad undefined symbol: dlsym と怒られる場合は、コンパイル時に-ldlを入れてください。 概要¶ LD_PRELOADを利用すると、shared libの関数をhookできる。 ただし、本来の関数名を他のアドレスに向けてしまうため、処理後に本来の関数をCALLするには、hookした関数内から元の関数を呼び出す必要がある。 この手法を実現するにあたって必要な要素となる、dlsymを使った動的なSharedLibraryのLoad方法について述べる。

        1