summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2024-12-16 23:41:08 +0300
committerChristian Brauner <brauner@kernel.org>2024-12-21 00:34:06 +0300
commite61bfaad8fd86ac84eac633e0bbaac47a5dfd358 (patch)
treecf5f8815355898524a1e2d1eaefd43a2ad4cd409 /tools/perf/scripts/python/task-analyzer.py
parent9e705016eb8f3d4a58f2000e560ea2c7517e081b (diff)
downloadlinux-e61bfaad8fd86ac84eac633e0bbaac47a5dfd358.tar.xz
netfs: Add functions to build/clean a buffer in a folio_queue
Add two netfslib functions to build up or clean up a buffer in a folio_queue. The first, netfs_alloc_folioq_buffer() will add folios to a buffer, extending up at least to the given size. If it can, it will add multipage folios. The folios are optionally have the mapping set and will have the index set according to the distance from the front of the folio queue. The second function will free up a folio queue and put any folios in the queue that have the first mark set. The netfs_folio tracepoint is also altered to cope with folios that have a NULL mapping, and the folios being added/put will have trace lines emitted and will be accounted in the stats. Signed-off-by: David Howells <dhowells@redhat.com> Link: https://lore.kernel.org/r/20241216204124.3752367-19-dhowells@redhat.com cc: Jeff Layton <jlayton@kernel.org> cc: Marc Dionne <marc.dionne@auristor.com> cc: netfs@lists.linux.dev cc: linux-afs@lists.infradead.org cc: linux-fsdevel@vger.kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions