ftrace Questions
1
I enabled ftrace event tracing for sys_enter_openat syscall. The respective output format given at events/syscalls/sys_enter_openat/format is
print fmt: "dfd: 0x%08lx, filename: 0x%08lx, flags: 0...
Weeper asked 31/3, 2019 at 16:53
2
For example, to monitor all mkdir calls made, the best I could come up with was:
#!/bin/sh
set -eux
d=debug/tracing
mkdir -p debug
if ! mountpoint -q debug; then
mount -t debugfs nodev debug
fi...
Injure asked 11/10, 2018 at 16:9
1
Solved
What are the use-cases for using tracepoint events when kprobe events support for ftrace is available in Linux kernel? It seems everything that is possible to be done using 'tracepoint events' is p...
Campstool asked 10/8, 2017 at 15:50
1
I am trying to use trace-cmd to gather more information about a kernel crash that I am seeing. Unfortunately, kernel crashes with "kernel panic - not syncing" message (i.e. socket and file buffers ...
Geminate asked 26/9, 2017 at 18:53
1
I have been playing with ftrace recently to monitor some behavior characteristics of my system. I've been handling switching the trace on/off via a small script. After running the script, my system...
Leftwich asked 31/5, 2016 at 11:1
7
Solved
How do I use ftrace() (or anything else) to trace a specific, user-defined function in the Linux kernel? I'm trying to create and run some microbenchmarks, so I'd like to have the time it takes cer...
Mislike asked 8/10, 2014 at 6:57
2
Solved
The goal is to examine arguments passed to specific system calls (e.g. exec, open, etc.) by any process.
From the official documentation, no capability to log function arguments is described (look...
Galatians asked 22/12, 2014 at 18:55
1
Apologies for the longish post, I'm having trouble formulating it in a shorter way. Also, maybe this is more appropriate for Unix & Linux Stack Exchange, but I'll try here at SO first, as there...
Caterer asked 7/2, 2014 at 13:30
2
Solved
1
Solved
I want to trace a function during kernel boot process with ftrace function_graph to understand what it does, but it is not available in available_filter_functions.
I tried to export it with EXPORT...
2
Performance counters for Linux are a new kernel-based subsystem that provide a framework for all things performance analysis. It covers hardware level (CPU/PMU, Performance Monitoring Unit) feature...
Acclivity asked 8/5, 2010 at 13:11
1
Solved
I just read that the 2.6.27 kernel has a new module called ftrace which sounds a lot like suns dtrace utility. I'm having some trouble googling for documentation, I was wondering if anyone else had...
1
© 2022 - 2024 — McMap. All rights reserved.