Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 257207 | Differences between
and this patch

Collapse All | Expand All

(-)a/fs/open.c (+3 lines)
Lines 30-35 Link Here
30
#include <linux/audit.h>
30
#include <linux/audit.h>
31
#include <linux/falloc.h>
31
#include <linux/falloc.h>
32
32
33
#include <trace/fs.h>
34
33
int vfs_statfs(struct dentry *dentry, struct kstatfs *buf)
35
int vfs_statfs(struct dentry *dentry, struct kstatfs *buf)
34
{
36
{
35
	int retval = -ENODEV;
37
	int retval = -ENODEV;
Lines 1039-1044 long do_sys_open(int dfd, const char __user *filename, int flags, int mode) Link Here
1039
			} else {
1041
			} else {
1040
				fsnotify_open(f->f_path.dentry);
1042
				fsnotify_open(f->f_path.dentry);
1041
				fd_install(fd, f);
1043
				fd_install(fd, f);
1044
				trace_do_sys_open(f, flags, mode, fd);
1042
			}
1045
			}
1043
		}
1046
		}
1044
		putname(tmp);
1047
		putname(tmp);
(-)a/kernel/trace/Kconfig (+9 lines)
Lines 119-124 config CONTEXT_SWITCH_TRACER Link Here
119
	  This tracer gets called from the context switch and records
119
	  This tracer gets called from the context switch and records
120
	  all switching of tasks.
120
	  all switching of tasks.
121
121
122
config OPEN_TRACER
123
	bool "Trace open() calls"
124
	depends on DEBUG_KERNEL
125
	select TRACING
126
	select MARKERS
127
	help
128
	  This tracer records open() syscalls. These calls are made when
129
	  files are accessed on disk.
130
122
config BOOT_TRACER
131
config BOOT_TRACER
123
	bool "Trace boot initcalls"
132
	bool "Trace boot initcalls"
124
	depends on DEBUG_KERNEL
133
	depends on DEBUG_KERNEL
(-)a/kernel/trace/Makefile (+1 lines)
Lines 15-20 obj-$(CONFIG_RING_BUFFER) += ring_buffer.o Link Here
15
15
16
obj-$(CONFIG_TRACING) += trace.o
16
obj-$(CONFIG_TRACING) += trace.o
17
obj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o
17
obj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o
18
obj-$(CONFIG_OPEN_TRACER) += trace_open.o
18
obj-$(CONFIG_SYSPROF_TRACER) += trace_sysprof.o
19
obj-$(CONFIG_SYSPROF_TRACER) += trace_sysprof.o
19
obj-$(CONFIG_FUNCTION_TRACER) += trace_functions.o
20
obj-$(CONFIG_FUNCTION_TRACER) += trace_functions.o
20
obj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o
21
obj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o
(-)a/kernel/trace/trace.h (+1 lines)
Lines 22-27 enum trace_type { Link Here
22
	TRACE_MMIO_RW,
22
	TRACE_MMIO_RW,
23
	TRACE_MMIO_MAP,
23
	TRACE_MMIO_MAP,
24
	TRACE_BOOT,
24
	TRACE_BOOT,
25
	TRACE_OPEN,
25
26
26
	__TRACE_LAST_TYPE
27
	__TRACE_LAST_TYPE
27
};
28
};

Return to bug 257207