@@ -5305,7 +5305,7 @@ static void remove_direct_functions_hash(struct ftrace_hash *hash, unsigned long
53055305}
53065306
53075307/**
5308- * register_ftrace_direct_multi - Call a custom trampoline directly
5308+ * register_ftrace_direct - Call a custom trampoline directly
53095309 * for multiple functions registered in @ops
53105310 * @ops: The address of the struct ftrace_ops object
53115311 * @addr: The address of the trampoline to call at @ops functions
@@ -5326,7 +5326,7 @@ static void remove_direct_functions_hash(struct ftrace_hash *hash, unsigned long
53265326 * -ENODEV - @ip does not point to a ftrace nop location (or not supported)
53275327 * -ENOMEM - There was an allocation failure.
53285328 */
5329- int register_ftrace_direct_multi (struct ftrace_ops * ops , unsigned long addr )
5329+ int register_ftrace_direct (struct ftrace_ops * ops , unsigned long addr )
53305330{
53315331 struct ftrace_hash * hash , * free_hash = NULL ;
53325332 struct ftrace_func_entry * entry , * new ;
@@ -5384,11 +5384,11 @@ int register_ftrace_direct_multi(struct ftrace_ops *ops, unsigned long addr)
53845384 }
53855385 return err ;
53865386}
5387- EXPORT_SYMBOL_GPL (register_ftrace_direct_multi );
5387+ EXPORT_SYMBOL_GPL (register_ftrace_direct );
53885388
53895389/**
5390- * unregister_ftrace_direct_multi - Remove calls to custom trampoline
5391- * previously registered by register_ftrace_direct_multi for @ops object.
5390+ * unregister_ftrace_direct - Remove calls to custom trampoline
5391+ * previously registered by register_ftrace_direct for @ops object.
53925392 * @ops: The address of the struct ftrace_ops object
53935393 *
53945394 * This is used to remove a direct calls to @addr from the nop locations
@@ -5399,8 +5399,8 @@ EXPORT_SYMBOL_GPL(register_ftrace_direct_multi);
53995399 * 0 on success
54005400 * -EINVAL - The @ops object was not properly registered.
54015401 */
5402- int unregister_ftrace_direct_multi (struct ftrace_ops * ops , unsigned long addr ,
5403- bool free_filters )
5402+ int unregister_ftrace_direct (struct ftrace_ops * ops , unsigned long addr ,
5403+ bool free_filters )
54045404{
54055405 struct ftrace_hash * hash = ops -> func_hash -> filter_hash ;
54065406 int err ;
@@ -5423,10 +5423,10 @@ int unregister_ftrace_direct_multi(struct ftrace_ops *ops, unsigned long addr,
54235423 ftrace_free_filter (ops );
54245424 return err ;
54255425}
5426- EXPORT_SYMBOL_GPL (unregister_ftrace_direct_multi );
5426+ EXPORT_SYMBOL_GPL (unregister_ftrace_direct );
54275427
54285428static int
5429- __modify_ftrace_direct_multi (struct ftrace_ops * ops , unsigned long addr )
5429+ __modify_ftrace_direct (struct ftrace_ops * ops , unsigned long addr )
54305430{
54315431 struct ftrace_hash * hash ;
54325432 struct ftrace_func_entry * entry , * iter ;
@@ -5473,7 +5473,7 @@ __modify_ftrace_direct_multi(struct ftrace_ops *ops, unsigned long addr)
54735473}
54745474
54755475/**
5476- * modify_ftrace_direct_multi_nolock - Modify an existing direct 'multi' call
5476+ * modify_ftrace_direct_nolock - Modify an existing direct 'multi' call
54775477 * to call something else
54785478 * @ops: The address of the struct ftrace_ops object
54795479 * @addr: The address of the new trampoline to call at @ops functions
@@ -5490,19 +5490,19 @@ __modify_ftrace_direct_multi(struct ftrace_ops *ops, unsigned long addr)
54905490 * Returns: zero on success. Non zero on error, which includes:
54915491 * -EINVAL - The @ops object was not properly registered.
54925492 */
5493- int modify_ftrace_direct_multi_nolock (struct ftrace_ops * ops , unsigned long addr )
5493+ int modify_ftrace_direct_nolock (struct ftrace_ops * ops , unsigned long addr )
54945494{
54955495 if (check_direct_multi (ops ))
54965496 return - EINVAL ;
54975497 if (!(ops -> flags & FTRACE_OPS_FL_ENABLED ))
54985498 return - EINVAL ;
54995499
5500- return __modify_ftrace_direct_multi (ops , addr );
5500+ return __modify_ftrace_direct (ops , addr );
55015501}
5502- EXPORT_SYMBOL_GPL (modify_ftrace_direct_multi_nolock );
5502+ EXPORT_SYMBOL_GPL (modify_ftrace_direct_nolock );
55035503
55045504/**
5505- * modify_ftrace_direct_multi - Modify an existing direct 'multi' call
5505+ * modify_ftrace_direct - Modify an existing direct 'multi' call
55065506 * to call something else
55075507 * @ops: The address of the struct ftrace_ops object
55085508 * @addr: The address of the new trampoline to call at @ops functions
@@ -5516,7 +5516,7 @@ EXPORT_SYMBOL_GPL(modify_ftrace_direct_multi_nolock);
55165516 * Returns: zero on success. Non zero on error, which includes:
55175517 * -EINVAL - The @ops object was not properly registered.
55185518 */
5519- int modify_ftrace_direct_multi (struct ftrace_ops * ops , unsigned long addr )
5519+ int modify_ftrace_direct (struct ftrace_ops * ops , unsigned long addr )
55205520{
55215521 int err ;
55225522
@@ -5526,11 +5526,11 @@ int modify_ftrace_direct_multi(struct ftrace_ops *ops, unsigned long addr)
55265526 return - EINVAL ;
55275527
55285528 mutex_lock (& direct_mutex );
5529- err = __modify_ftrace_direct_multi (ops , addr );
5529+ err = __modify_ftrace_direct (ops , addr );
55305530 mutex_unlock (& direct_mutex );
55315531 return err ;
55325532}
5533- EXPORT_SYMBOL_GPL (modify_ftrace_direct_multi );
5533+ EXPORT_SYMBOL_GPL (modify_ftrace_direct );
55345534#endif /* CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS */
55355535
55365536/**
0 commit comments