Files
perfect/tools/sync_drop_caches.cpp
Carl Pearson d6c861719f Squashed commit of the following:
commit b96ddedf4ffbba57faaaf8bf18781a7abfb9d4c1
Author: Carl Pearson <pearson@illinois.edu>
Date:   Mon Sep 23 16:53:54 2019 -0500

    add newline to result.hpp

commit c7e9f6ff4775bf86f9af216cbe311f65bf985f63
Author: Carl Pearson <pearson@illinois.edu>
Date:   Mon Sep 23 16:53:09 2019 -0500

    add EPERM to fs operations

commit bac918fd022006cad0da899c06ac31e9db59a2fb
Author: Carl Pearson <pearson@illinois.edu>
Date:   Mon Sep 23 16:49:25 2019 -0500

    add filesystem cache interface
2019-09-23 16:54:33 -05:00

14 lines
236 B
C++

#include <iostream>
#include "perfect/drop_caches.hpp"
using namespace perfect;
int main(void) {
using namespace perfect;
PERFECT(init());
PERFECT(perfect::sync());
PERFECT(drop_caches(DropCaches_t(PAGECACHE | ENTRIES)));
}