Skip to content

A Rust binding to libpcp_mmv, with safe wrappers.

Notifications You must be signed in to change notification settings

saurvs/pcp_mmv-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pcp_mmv

This is Rust binding to libpcp_mmv, with safe wrappers.

It also contains the following examples:

  • a port of the Acme example found in pcp/src/pmdas/mmv/acme.c
  • a program that starts an HTTP server on localhost:6767, and instruments the number of HTTP GET requests it recieves
  • a (Linux-only) program that instruments the number of CLOSE_WRITE notifications it recieves from inotify w.r.t an input file path, and also writes the hash of file's contents to the MMV file. nano works best to test this example.

Pre-generated bindings are provided and tracked in the repository. To generate them again, install bindgen through cargo and run ./generate-bindings.sh. On my machine (Ubuntu 16.04.1), I had to install the libclang-dev and clang packages through apt-get for bindgen to run.

This crate was writen during the community bonding period of my GSoC project in order to decide between a Rust-C FFI approach vs. a pure Rust approach with regards to writing an MMV file.

About

A Rust binding to libpcp_mmv, with safe wrappers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages