Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chdir uses /sys/kernel/debug/tracing then expects to be in /sys/kernel/debug #13

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

I made the following change in sreadahead.c to make the trace work (near
line 479):
        unmount = chdir("/sys/kernel/debug/tracing");
        if (unmount == 0) {
                chdir("/sys/kernel/debug");
        } else {
Instead of:
        unmount = chdir("/sys/kernel/debug/tracing");
        if (unmount != 0) {
sreadahead was giving the following error messages and failing to create a
pack file before I made this change:
Unable to disable tracing
: No such file or directory
Unable to open readahead file
: No such file or directory

I'd send a patch, but this is a pretty simple change and I actually don't
know of the top of my head how to generate a patch.

Original issue reported on code.google.com by [email protected] on 20 May 2009 at 8:34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant