aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-12-03 11:34:27 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-12-03 18:48:14 +0100
commitd20ee9bd98f1a0e98c2d02da825acf3628562e8d (patch)
tree6f4cfeb81e6a6beff7ffc87e6b55ae489f77d1bf /Makefile
parenta715d760ae486407f27f62815428da011d06e8dd (diff)
tools: add fops_probe utility
fops_probe utility helps to understand what file_operations callbacks are attached to a particular file. Requries KCOV and KALLSYMS. Build with: g++ tools/fops_probe/fops_probe.cc -Wall -static -o fops_probe Then copy the binary to target machine and run as: ./fops_probe /dev/fb0 You should see output similar to: ffffffff81bcccb9 vfs_read ................ ffffffff83af85c3 fb_read ffffffff83b52af5 cirrusfb_sync ffffffff81bcd219 vfs_write ................ ffffffff83af7fe2 fb_write ffffffff83b52af5 cirrusfb_sync ffffffff81c1b745 do_vfs_ioctl ffffffff83af7ea9 fb_ioctl ffffffff81a4ea44 do_mmap ................ ffffffff83af716c fb_mmap which allows to understand what callbacks are associated with /dev/fb0.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4f26bcab8..aeb3c4ace 100644
--- a/Makefile
+++ b/Makefile
@@ -219,7 +219,8 @@ format_go:
$(GO) fmt ./...
format_cpp:
- clang-format --style=file -i executor/*.cc executor/*.h tools/kcovtrace/*.c
+ clang-format --style=file -i executor/*.cc executor/*.h \
+ tools/kcovtrace/*.c tools/kcovfuzzer/*.c tools/fops_probe/*.cc
format_sys: bin/syz-fmt
bin/syz-fmt all