···128128 * There is one mmcr0, mmcr1 and mmcra for setting the events for129129 * all of the counters.130130 */131131- oprofilefs_create_ulong(root->d_sb, root, "mmcr0", &sys.mmcr0);132132- oprofilefs_create_ulong(root->d_sb, root, "mmcr1", &sys.mmcr1);133133- oprofilefs_create_ulong(root->d_sb, root, "mmcra", &sys.mmcra);131131+ oprofilefs_create_ulong(root, "mmcr0", &sys.mmcr0);132132+ oprofilefs_create_ulong(root, "mmcr1", &sys.mmcr1);133133+ oprofilefs_create_ulong(root, "mmcra", &sys.mmcra);134134#ifdef CONFIG_OPROFILE_CELL135135 /* create a file the user tool can check to see what level of profiling136136 * support exits with this kernel. Initialize bit mask to indicate···142142 * If the file does not exist, then the kernel only supports SPU143143 * cycle profiling, PPU event and cycle profiling.144144 */145145- oprofilefs_create_ulong(root->d_sb, root, "cell_support", &sys.cell_support);145145+ oprofilefs_create_ulong(root, "cell_support", &sys.cell_support);146146 sys.cell_support = 0x1; /* Note, the user OProfile tool must check147147 * that this bit is set before attempting to148148 * user SPU event profiling. Older kernels···162162 snprintf(buf, sizeof buf, "%d", i);163163 dir = oprofilefs_mkdir(root, buf);164164165165- oprofilefs_create_ulong(root->d_sb, dir, "enabled", &ctr[i].enabled);166166- oprofilefs_create_ulong(root->d_sb, dir, "event", &ctr[i].event);167167- oprofilefs_create_ulong(root->d_sb, dir, "count", &ctr[i].count);165165+ oprofilefs_create_ulong(dir, "enabled", &ctr[i].enabled);166166+ oprofilefs_create_ulong(dir, "event", &ctr[i].event);167167+ oprofilefs_create_ulong(dir, "count", &ctr[i].count);168168169169 /*170170 * Classic PowerPC doesn't support per-counter···173173 * Book-E style performance monitors, we do174174 * support them.175175 */176176- oprofilefs_create_ulong(root->d_sb, dir, "kernel", &ctr[i].kernel);177177- oprofilefs_create_ulong(root->d_sb, dir, "user", &ctr[i].user);176176+ oprofilefs_create_ulong(dir, "kernel", &ctr[i].kernel);177177+ oprofilefs_create_ulong(dir, "user", &ctr[i].user);178178179179- oprofilefs_create_ulong(root->d_sb, dir, "unit_mask", &ctr[i].unit_mask);179179+ oprofilefs_create_ulong(dir, "unit_mask", &ctr[i].unit_mask);180180 }181181182182- oprofilefs_create_ulong(root->d_sb, root, "enable_kernel", &sys.enable_kernel);183183- oprofilefs_create_ulong(root->d_sb, root, "enable_user", &sys.enable_user);182182+ oprofilefs_create_ulong(root, "enable_kernel", &sys.enable_kernel);183183+ oprofilefs_create_ulong(root, "enable_user", &sys.enable_user);184184185185 /* Default to tracing both kernel and user */186186 sys.enable_kernel = 1;