summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGabriel Krisman Bertazi <krisman@collabora.com>2021-10-25 16:27:20 -0300
committerJan Kara <jack@suse.cz>2021-10-27 12:33:14 +0200
commitb9928e80dda84b349ba8de01780b9bef2fc36ffa (patch)
tree55a61f01f5ae72db67bd5f5afa06273ab0d8a7e5 /tools/perf/scripts/python/export-to-postgresql.py
parentcc53b55f697fe5aa98bdbfdfe67c6401da242155 (diff)
fanotify: Fold event size calculation to its own function
Every time this function is invoked, it is immediately added to FAN_EVENT_METADATA_LEN, since there is no need to just calculate the length of info records. This minor clean up folds the rest of the calculation into the function, which now operates in terms of events, returning the size of the entire event, including metadata. Link: https://lore.kernel.org/r/20211025192746.66445-6-krisman@collabora.com Reviewed-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions