aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2009-07-05 07:39:18 +0200
committerIngo Molnar <[email protected]>2009-07-05 10:30:21 +0200
commitbe9038859e56f729cc9d3b070a35fb8829a73696 (patch)
treee258cec23a938ba1d1a9a38119420171c52f31c0 /net/lapb/lapb_subr.c
parent91b4eaea93f5be95f4477554399680a53aff2343 (diff)
perf report: Use a modifiable string for default callchain options
If the user doesn't provide options to tune his callchain output (ie: if he uses -c without arguments) then the default value passed in the OPT_CALLBACK_DEFAULT() macro is used. But it's parsed later by strtok() which will replace comma separators to a zero. This may segfault as we are using a read-only string. Use a modifiable one instead, and also fix the "100%" default minimum threshold value by turning it into a 0 (output every callchains) as it was intended in the origin. Signed-off-by: Frederic Weisbecker <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Anton Blanchard <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions