lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <1464056944-166978-1-git-send-email-wangnan0@huawei.com> Date: Tue, 24 May 2016 02:28:57 +0000 From: Wang Nan <wangnan0@...wei.com> To: <acme@...nel.org> CC: <pi3orama@....com>, <linux-kernel@...r.kernel.org>, Wang Nan <wangnan0@...wei.com>, Arnaldo Carvalho de Melo <acme@...hat.com>, He Kuang <hekuang@...wei.com>, Jiri Olsa <jolsa@...nel.org>, Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>, Namhyung Kim <namhyung@...nel.org>, "Peter Zijlstra" <peterz@...radead.org>, Zefan Li <lizefan@...wei.com> Subject: [PATCH v4 0/7] perf tools: Support overwritable ring buffer This patch set enables daemonized perf recording by utilizing overwritable backward ring buffer. With this feature one can put perf background, and dump ring buffer records by a SIGUSR2 when he/she find something unusual. For example, following command record system calls, schedule events and samples on cpu cycles continously: # perf record -g -e cycles -e raw_syscalls:*/call-graph=no/ \ -e sched:sched_switch/call-graph=no/ \ --switch-output --overwrite -a Then by sending SIGUSR2 to perf when lagging is happen, we get multiple perf.data output, each of them correspond a abnormal event, and the data size is reasonable: # ls -l ./perf.data* -rw------- 1 root root 5122165 May 13 23:51 ./perf.data.2016051323511683 -rw------- 1 root root 5135093 May 13 23:51 ./perf.data.2016051323512107 -rw------- 1 root root 5135213 May 13 23:51 ./perf.data.2016051323512215 -rw------- 1 root root 5135157 May 13 23:51 ./perf.data.2016051323512387 v1 -> v2: Totally redesign: drop the principle of 'channal', use auxiliary evlist instead. Fix missing documentation. v2 -> v3: Rename perf_evlist__toggle_paused() to perf_evlist__pause/resume. v3 -> v4: Update commit message to describe auxiliary evlist more clearly. Wang Nan (7): perf evlist: Introduce aux perf evlist perf tools: Don't poll and mmap overwritable events perf tools: Enable overwrite settings perf record: Introduce rec->overwrite_evlist for overwritable events perf record: Toggle overwrite ring buffer for reading perf tools: Don't warn about out of order event if write_backward is used perf tools: Check write_backward during evlist config tools/perf/Documentation/perf-record.txt | 14 ++ tools/perf/arch/x86/util/tsc.c | 2 + tools/perf/builtin-record.c | 283 +++++++++++++++++++++++++++---- tools/perf/perf.h | 1 + tools/perf/util/evlist.c | 52 ++++-- tools/perf/util/evlist.h | 3 + tools/perf/util/evsel.c | 27 +-- tools/perf/util/evsel.h | 15 ++ tools/perf/util/parse-events.c | 20 ++- tools/perf/util/parse-events.h | 2 + tools/perf/util/parse-events.l | 2 + tools/perf/util/record.c | 17 ++ tools/perf/util/session.c | 22 ++- 13 files changed, 399 insertions(+), 61 deletions(-) Cc: Arnaldo Carvalho de Melo <acme@...hat.com> Cc: He Kuang <hekuang@...wei.com> Cc: Jiri Olsa <jolsa@...nel.org> Cc: Masami Hiramatsu <masami.hiramatsu.pt@...achi.com> Cc: Namhyung Kim <namhyung@...nel.org> Cc: Peter Zijlstra <peterz@...radead.org> Cc: Wang Nan <wangnan0@...wei.com> Cc: Zefan Li <lizefan@...wei.com> Cc: pi3orama@....com -- 1.8.3.4
Powered by blists - more mailing lists