summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>2024-12-27 07:08:07 +0300
committerSteven Rostedt (Google) <rostedt@goodmis.org>2025-01-07 19:46:32 +0300
commit66fc6f521a0b91051ce6968a216a30bc52267bf8 (patch)
tree209426425ec28177e1fc6cb870a9fa9a5154cd61 /tools/perf/scripts/python/export-to-postgresql.py
parent1bd13edbbed6e7e396f1aab92b224a4775218e68 (diff)
downloadlinux-66fc6f521a0b91051ce6968a216a30bc52267bf8.tar.xz
tracing/hist: Support POLLPRI event for poll on histogram
Since POLLIN will not be flushed until the hist file is read, the user needs to repeatedly read() and poll() on the hist file for monitoring the event continuously. But the read() is somewhat redundant when the user is only monitoring for event updates. Add POLLPRI poll event on the hist file so the event returns when a histogram is updated after open(), poll() or read(). Thus it is possible to wait for the next event without having to issue a read(). Cc: Shuah Khan <shuah@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://lore.kernel.org/173527248770.464571.2536902137325258133.stgit@devnote2 Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Reviewed-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions