@@ -5318,7 +5318,7 @@ static void remove_direct_functions_hash(struct ftrace_hash *hash, unsigned long
53185318}
53195319
53205320/**
5321- * register_ftrace_direct_multi - Call a custom trampoline directly
5321+ * register_ftrace_direct - Call a custom trampoline directly
53225322 * for multiple functions registered in @ops
53235323 * @ops: The address of the struct ftrace_ops object
53245324 * @addr: The address of the trampoline to call at @ops functions
@@ -5339,7 +5339,7 @@ static void remove_direct_functions_hash(struct ftrace_hash *hash, unsigned long
53395339 * -ENODEV - @ip does not point to a ftrace nop location (or not supported)
53405340 * -ENOMEM - There was an allocation failure.
53415341 */
5342- int register_ftrace_direct_multi (struct ftrace_ops * ops , unsigned long addr )
5342+ int register_ftrace_direct (struct ftrace_ops * ops , unsigned long addr )
53435343{
53445344 struct ftrace_hash * hash , * free_hash = NULL ;
53455345 struct ftrace_func_entry * entry , * new ;
@@ -5397,11 +5397,11 @@ int register_ftrace_direct_multi(struct ftrace_ops *ops, unsigned long addr)
53975397 }
53985398 return err ;
53995399}
5400- EXPORT_SYMBOL_GPL (register_ftrace_direct_multi );
5400+ EXPORT_SYMBOL_GPL (register_ftrace_direct );
54015401
54025402/**
5403- * unregister_ftrace_direct_multi - Remove calls to custom trampoline
5404- * previously registered by register_ftrace_direct_multi for @ops object.
5403+ * unregister_ftrace_direct - Remove calls to custom trampoline
5404+ * previously registered by register_ftrace_direct for @ops object.
54055405 * @ops: The address of the struct ftrace_ops object
54065406 *
54075407 * This is used to remove a direct calls to @addr from the nop locations
@@ -5412,8 +5412,8 @@ EXPORT_SYMBOL_GPL(register_ftrace_direct_multi);
54125412 * 0 on success
54135413 * -EINVAL - The @ops object was not properly registered.
54145414 */
5415- int unregister_ftrace_direct_multi (struct ftrace_ops * ops , unsigned long addr ,
5416- bool free_filters )
5415+ int unregister_ftrace_direct (struct ftrace_ops * ops , unsigned long addr ,
5416+ bool free_filters )
54175417{
54185418 struct ftrace_hash * hash = ops -> func_hash -> filter_hash ;
54195419 int err ;
@@ -5436,10 +5436,10 @@ int unregister_ftrace_direct_multi(struct ftrace_ops *ops, unsigned long addr,
54365436 ftrace_free_filter (ops );
54375437 return err ;
54385438}
5439- EXPORT_SYMBOL_GPL (unregister_ftrace_direct_multi );
5439+ EXPORT_SYMBOL_GPL (unregister_ftrace_direct );
54405440
54415441static int
5442- __modify_ftrace_direct_multi (struct ftrace_ops * ops , unsigned long addr )
5442+ __modify_ftrace_direct (struct ftrace_ops * ops , unsigned long addr )
54435443{
54445444 struct ftrace_hash * hash ;
54455445 struct ftrace_func_entry * entry , * iter ;
@@ -5486,7 +5486,7 @@ __modify_ftrace_direct_multi(struct ftrace_ops *ops, unsigned long addr)
54865486}
54875487
54885488/**
5489- * modify_ftrace_direct_multi_nolock - Modify an existing direct 'multi' call
5489+ * modify_ftrace_direct_nolock - Modify an existing direct 'multi' call
54905490 * to call something else
54915491 * @ops: The address of the struct ftrace_ops object
54925492 * @addr: The address of the new trampoline to call at @ops functions
@@ -5503,19 +5503,19 @@ __modify_ftrace_direct_multi(struct ftrace_ops *ops, unsigned long addr)
55035503 * Returns: zero on success. Non zero on error, which includes:
55045504 * -EINVAL - The @ops object was not properly registered.
55055505 */
5506- int modify_ftrace_direct_multi_nolock (struct ftrace_ops * ops , unsigned long addr )
5506+ int modify_ftrace_direct_nolock (struct ftrace_ops * ops , unsigned long addr )
55075507{
55085508 if (check_direct_multi (ops ))
55095509 return - EINVAL ;
55105510 if (!(ops -> flags & FTRACE_OPS_FL_ENABLED ))
55115511 return - EINVAL ;
55125512
5513- return __modify_ftrace_direct_multi (ops , addr );
5513+ return __modify_ftrace_direct (ops , addr );
55145514}
5515- EXPORT_SYMBOL_GPL (modify_ftrace_direct_multi_nolock );
5515+ EXPORT_SYMBOL_GPL (modify_ftrace_direct_nolock );
55165516
55175517/**
5518- * modify_ftrace_direct_multi - Modify an existing direct 'multi' call
5518+ * modify_ftrace_direct - Modify an existing direct 'multi' call
55195519 * to call something else
55205520 * @ops: The address of the struct ftrace_ops object
55215521 * @addr: The address of the new trampoline to call at @ops functions
@@ -5529,7 +5529,7 @@ EXPORT_SYMBOL_GPL(modify_ftrace_direct_multi_nolock);
55295529 * Returns: zero on success. Non zero on error, which includes:
55305530 * -EINVAL - The @ops object was not properly registered.
55315531 */
5532- int modify_ftrace_direct_multi (struct ftrace_ops * ops , unsigned long addr )
5532+ int modify_ftrace_direct (struct ftrace_ops * ops , unsigned long addr )
55335533{
55345534 int err ;
55355535
@@ -5539,11 +5539,11 @@ int modify_ftrace_direct_multi(struct ftrace_ops *ops, unsigned long addr)
55395539 return - EINVAL ;
55405540
55415541 mutex_lock (& direct_mutex );
5542- err = __modify_ftrace_direct_multi (ops , addr );
5542+ err = __modify_ftrace_direct (ops , addr );
55435543 mutex_unlock (& direct_mutex );
55445544 return err ;
55455545}
5546- EXPORT_SYMBOL_GPL (modify_ftrace_direct_multi );
5546+ EXPORT_SYMBOL_GPL (modify_ftrace_direct );
55475547#endif /* CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS */
55485548
55495549/**
0 commit comments