-
Notifications
You must be signed in to change notification settings - Fork 4
/
EPTScan.h
39 lines (30 loc) · 854 Bytes
/
EPTScan.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* SPDX-License-Identifier: GPL-2.0
*
* Copyright (c) 2018 Intel Corporation
*
* Authors: Fengguang Wu <[email protected]>
*/
#ifndef AEP_EPT_SCAN_H
#define AEP_EPT_SCAN_H
#include <string>
#include "ProcIdlePages.h"
class EPTScan: public ProcIdlePages
{
public:
void prepare_walks(int max_walks);
int walk_multi(int nr, float interval);
void gather_walk_stats(unsigned long& young_bytes,
unsigned long& top_bytes,
unsigned long& all_bytes);
static void reset_sys_refs_count(int nr_walks);
void count_refs();
static int save_counts(std::string filename);
private:
bool should_stop();
void count_refs_one(ProcIdleRefs& prc);
private:
static std::vector<unsigned long> sys_refs_count[MAX_ACCESSED + 1];
};
#endif
// vim:set ts=2 sw=2 et: