aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2020-03-26 11:37:11 -0700
committerDavid S. Miller <[email protected]>2020-03-26 19:39:26 -0700
commitcf80faee79f98c0608a86e9006af57a99ffad650 (patch)
tree6d17125b463f634844a5f02773037b96d63dba1b /scripts/gcc-plugins/cyc_complexity_plugin.c
parent6d82f67e2586cf6b090061ad301ae5f13fa1a0ee (diff)
devlink: add function to take snapshot while locked
A future change is going to add a new devlink command to request a snapshot on demand. This function will want to call the devlink_region_snapshot_create function while already holding the devlink instance lock. Extract the logic of this function into a static function prefixed by `__` to indicate that it is an internal helper function. Modify the original function to be implemented in terms of the new locked function. Signed-off-by: Jacob Keller <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Reviewed-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions