aboutsummaryrefslogtreecommitdiff
path: root/include/trace/swap.h
blob: bd035a7204e5d18a2ef8f9a363055fde3199b529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _TRACE_SWAP_H
#define _TRACE_SWAP_H

#include <linux/swap.h>
#include <linux/tracepoint.h>

DECLARE_TRACE(swap_in,
	TP_PROTO(struct page *page, swp_entry_t entry),
		TP_ARGS(page, entry));
DECLARE_TRACE(swap_out,
	TP_PROTO(struct page *page),
		TP_ARGS(page));
DECLARE_TRACE(swap_file_open,
	TP_PROTO(struct file *file, char *filename),
		TP_ARGS(file, filename));
DECLARE_TRACE(swap_file_close,
	TP_PROTO(struct file *file),
		TP_ARGS(file));

#endif