GithubHelp home page GithubHelp logo

perftool-testsuite's People

Contributors

bsalon avatar frozenstein avatar linuxqiao avatar notvalord avatar rfmvh avatar sztsian avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

perftool-testsuite's Issues

Add coverage for perf record's --switch-output option

The --switch-output command line argument for perf record allows some external control over the perf recording session. Such a test might contain a crafted tracee, that would signal perf with SIGUSR and check the perf.data* results after, i.e.

signal_perf();
do_some_load();
signal_perf();
do_some_other_load();
signal_perf();

If do_some_load() would be e.g. one third of do_some_other_load(), we might compare the records and verify that the second one brings more samples, etc. Please add this as a separate test script under base_record. TIA.

Run testsuite against under development perftools

Currently the perftools testsuite depends on PATH env to find perf command.
However, most possible use case of tests is developing phase, like adding new feature or fixing some bugs. In that case, we usually don't install until it can pass the tests.
Thus, the testsuites must run against pre-installed binaries.

So, please add an option to pass PERF_PATH or something like that to make file or run_all command so that user can give the development kernel tree, e.g.

# make PERF_PATH=$HOME/linux/tools/perf/ check

perf report --header timestamp correctness

For more information, please refer to upstream linux commit 8af19d66b956401bab1ef24049eec9421be93862. In short, perf report --header takes information about the date/time of the measurement/sampling from the perf.data file timestamp. Before the patch, it used last-modification-time, so any filesystem operation with the perf.data file clobbered the correct timestamp. Now we use creation-time, so activities as tar/untar should not affect it. Add a testcase to check that the timestamp is still the same even after tar/untar-ing the perf.data file.

How to run individual set of tests

How to run individual set of tests with out using run_all.
My main intention is to run a particular set of tests,
Example:
./run base_mem

I don't see any option with make either.

Thanks in advance.

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.