File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1863,14 +1863,24 @@ static bool __ftrace_hash_rec_update(struct ftrace_ops *ops,
1863
1863
return update ;
1864
1864
}
1865
1865
1866
+ /*
1867
+ * This is called when an ops is removed from tracing. It will decrement
1868
+ * the counters of the dyn_ftrace records for all the functions that
1869
+ * the @ops attached to.
1870
+ */
1866
1871
static bool ftrace_hash_rec_disable (struct ftrace_ops * ops )
1867
1872
{
1868
- return __ftrace_hash_rec_update (ops , 0 );
1873
+ return __ftrace_hash_rec_update (ops , false );
1869
1874
}
1870
1875
1876
+ /*
1877
+ * This is called when an ops is added to tracing. It will increment
1878
+ * the counters of the dyn_ftrace records for all the functions that
1879
+ * the @ops attached to.
1880
+ */
1871
1881
static bool ftrace_hash_rec_enable (struct ftrace_ops * ops )
1872
1882
{
1873
- return __ftrace_hash_rec_update (ops , 1 );
1883
+ return __ftrace_hash_rec_update (ops , true );
1874
1884
}
1875
1885
1876
1886
static void ftrace_hash_rec_update_modify (struct ftrace_ops * ops , int inc )
You can’t perform that action at this time.
0 commit comments