Skip to content

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

Open

Description

@rfmvh

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.

Activity

  1. rfmvh commented on Sep 11, 2020

    @rfmvh
    OwnerAuthor

    Hint: A tracee is a child of perf, so calling getppid() within the tracee should give you perf's PID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions