Giter Site home page Giter Site logo

nix-sysdig's Introduction

nix-sysdig

Record/replay system calls of nix builds.

Example

$ cd nixpkgs/pkgs
# fake a failing build (to have more interesting traces)
$ git diff pkgs/development/python-modules/python-lz4/default.nix
diff --git a/pkgs/development/python-modules/python-lz4/default.nix b/pkgs/development/python-modules/python-lz4/default.nix
index a0fe6666d84..c558aad0de5 100644
--- a/pkgs/development/python-modules/python-lz4/default.nix
+++ b/pkgs/development/python-modules/python-lz4/default.nix
@@ -22,7 +22,7 @@ buildPythonPackage rec {
     sha256 = "1vjfplj37jcw1mf8l810dv76dx0raia3ylgyfy7sfsb3g17brjq6";
   };

-  buildInputs = [ setuptools_scm pkgconfig pytestrunner ];
+  buildInputs = [ setuptools_scm pkgconfig ];
   checkInputs = [ pytest psutil ];
   propagatedBuildInputs = lib.optionals (!isPy3k) [ future ];

$ nix-shell -p python3.pkgs.python-lz4 --builders ''
$ sudo nix-sysdig record python-lz4
$ sudo nix-sysdig replay ./python-lz4.scap 'fd.port = 53 and evt.type=sendto'
$ sudo nix-sysdig replay ./python-lz4.scap -- -c stderr
$ sudo nix-sysdig replay ./python-lz4.scap 'fd.name contains /etc and evt.type in (open, openat)'

nix-sysdig's People

Contributors

mic92 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.