projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update split script
[lttv.git]
/
tests
/
kernel
/
test-mark.c
diff --git
a/tests/kernel/test-mark.c
b/tests/kernel/test-mark.c
index 080e5a5f85ab2e4c9a80b0e7a335321d3a98e376..8f998b9b3d900ffcc7cac063b0fbec2a96bab570 100644
(file)
--- a/
tests/kernel/test-mark.c
+++ b/
tests/kernel/test-mark.c
@@
-8,7
+8,7
@@
#include <linux/sched.h>
#include <asm/ptrace.h>
#include <linux/sched.h>
#include <asm/ptrace.h>
-volatile int x
=
7;
+volatile int x
=
7;
struct proc_dir_entry *pentry = NULL;
struct proc_dir_entry *pentry = NULL;
@@
-23,10
+23,9
@@
static int my_open(struct inode *inode, struct file *file)
for(i=0; i<2; i++) {
MARK(subsys_mark1, "%d", 1);
for(i=0; i<2; i++) {
MARK(subsys_mark1, "%d", 1);
- x=i;
- barrier();
}
}
- MARK(subsys_mark2, "%d %s", 2, "blah2");
+ MARK(subsys_mark2, "%d %s %s", 2, "blah2", "blahx");
+ MARK(subsys_mark3, "%d %s %s", x, "blah3", "blah5");
MARK(subsys_mark3, "%d %s %s", x, "blah3", "blah5");
test(NULL);
test(NULL);
MARK(subsys_mark3, "%d %s %s", x, "blah3", "blah5");
test(NULL);
test(NULL);
@@
-41,8
+40,6
@@
static struct file_operations my_operations = {
int init_module(void)
{
int init_module(void)
{
- unsigned int i;
-
pentry = create_proc_entry("testmark", 0444, NULL);
if (pentry)
pentry->proc_fops = &my_operations;
pentry = create_proc_entry("testmark", 0444, NULL);
if (pentry)
pentry->proc_fops = &my_operations;
This page took
0.022449 seconds
and
4
git commands to generate.