]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dtrace: align module code with new cyclics API
authorKris Van Hees <kris.van.hees@oracle.com>
Thu, 17 Oct 2013 09:40:47 +0000 (05:40 -0400)
committerKris Van Hees <kris.van.hees@oracle.com>
Thu, 17 Oct 2013 09:40:47 +0000 (05:40 -0400)
Orabug: 17553446

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
dtrace/dtrace_state.c
dtrace/profile_dev.c

index 4d458cf2cf3fcdaebba31d88ef157e80e43313a7..df9ecc821021a8cc388dd2d5e71fd118a2b8d405 100644 (file)
@@ -788,7 +788,7 @@ int dtrace_state_go(dtrace_state_t *state, processorid_t *cpu)
                opt[DTRACEOPT_CLEANRATE] = dtrace_cleanrate_max;
 
        hdlr.cyh_func = (cyc_func_t)dtrace_state_clean;
-       hdlr.cyh_arg = state;
+       hdlr.cyh_arg = (uintptr_t)state;
        hdlr.cyh_level = CY_LOW_LEVEL;
 
        when.cyt_when = ktime_set(0, 0);
@@ -797,7 +797,7 @@ int dtrace_state_go(dtrace_state_t *state, processorid_t *cpu)
        state->dts_cleaner = cyclic_add(&hdlr, &when);
 
        hdlr.cyh_func = (cyc_func_t)dtrace_state_deadman;
-       hdlr.cyh_arg = state;
+       hdlr.cyh_arg = (uintptr_t)state;
        hdlr.cyh_level = CY_LOW_LEVEL;
 
        when.cyt_when = ktime_set(0, 0);
index 655bb748d76735454e15379643b0db999e9002e8..25ec075f2a8eb0c70b47ee6827ede26e88f653e0 100644 (file)
@@ -89,9 +89,9 @@ static int    profile_ticks[] = {
 static int     profile_max;            /* maximum number of profile probes */
 static atomic_t        profile_total;          /* current number of profile probes */
 
-static void profile_tick(void *arg)
+static void profile_tick(uintptr_t arg)
 {
-       profile_probe_t *prof = arg;
+       profile_probe_t *prof = (profile_probe_t *)arg;
        unsigned long   pc = 0, upc = 0;
 #ifdef PROBE_PCS
        struct pt_regs  *regs = get_irq_regs();
@@ -106,9 +106,9 @@ static void profile_tick(void *arg)
 }
 
 #ifdef OMNI_CYCLICS
-static void profile_prof(void *arg)
+static void profile_prof(uintptr_t arg)
 {
-       profile_probe_percpu_t  *pcpu = arg;
+       profile_probe_percpu_t  *pcpu = (profile_probe_percpu_t *)arg;
        profile_probe_t         *prof = pcpu->profc_probe;
        ktime_t                 late;
        struct pt_regs          *regs = get_irq_regs();
@@ -353,7 +353,7 @@ int _profile_enable(void *arg, dtrace_id_t id, void *parg)
 
        if (prof->prof_kind == PROF_TICK) {
                hdlr.cyh_func = profile_tick;
-               hdlr.cyh_arg = prof;
+               hdlr.cyh_arg = (uintptr_t)prof;
                hdlr.cyh_level = CY_HIGH_LEVEL;
 
                when.cyt_interval = prof->prof_interval;
@@ -366,7 +366,7 @@ int _profile_enable(void *arg, dtrace_id_t id, void *parg)
 
                omni.cyo_online = profile_online;
                omni.cyo_offline = profile_offline;
-               omni.cyo_arg = prof;
+               omni.cyo_arg = (uintptr_t)prof;
 
                prof->prof_cyclic = cyclic_add_omni(&omni);
 #endif