X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=tools%2Fperf%2Fbuiltin-record.c;h=cdf58ecc04b106a5b783d4f17b69ae1ef7528f4a;hb=05484298cbfebbf8c8c55b000541a245bc286bec;hp=78a41fdbe56c250ad1857026257f4d7998430712;hpb=2fe85427e3bf65d791700d065132772fc26e4d75;p=deliverable%2Flinux.git diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 78a41fdbe56c..cdf58ecc04b1 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -953,6 +953,8 @@ const struct option record_options[] = { OPT_CALLBACK('j', "branch-filter", &record.opts.branch_stack, "branch filter mask", "branch stack filter modes", parse_branch_stack), + OPT_BOOLEAN('W', "weight", &record.opts.sample_weight, + "sample by weight (on special events only)"), OPT_END() };