Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kernel Program Behaviour Models
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixkhals
Kernel Program Behaviour Models
Commits
b1f77b90
Commit
b1f77b90
authored
6 years ago
by
Tom
Browse files
Options
Downloads
Patches
Plain Diff
syscall from kernel fix attempt
parent
36a1c72e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
kernel/sched/perf_error_detection.c
+11
-2
11 additions, 2 deletions
kernel/sched/perf_error_detection.c
kernel/sched/perf_error_detection.h
+2
-1
2 additions, 1 deletion
kernel/sched/perf_error_detection.h
sound/oss/dmabuf.c
+1
-1
1 addition, 1 deletion
sound/oss/dmabuf.c
with
14 additions
and
4 deletions
kernel/sched/perf_error_detection.c
+
11
−
2
View file @
b1f77b90
...
...
@@ -81,7 +81,16 @@ void overflow_handler(int signum,siginfo_t *oh, void *blah) {
}
int
perf_event_open
(
struct
perf_event_attr
*
hw_event_uptr
,
pid_t
pid
,
int
cpu
,
int
group_fd
,
unsigned
long
flags
)
{
mm_segment_t
fs
;
int
ret
;
return
syscall
(
__NR_perf_event_open
,
hw_event_uptr
,
pid
,
cpu
,
group_fd
,
flags
);
fs
=
get_fs
();
/* save previous value */
set_fs
(
get_ds
());
/* use kernel limit */
ret
=
syscall
(
__NR_perf_event_open
,
hw_event_uptr
,
pid
,
cpu
,
group_fd
,
flags
);
set_fs
(
fs
);
return
ret
;
}
This diff is collapsed.
Click to expand it.
kernel/sched/perf_error_detection.h
+
2
−
1
View file @
b1f77b90
...
...
@@ -5,7 +5,8 @@
#include
"sched.h"
#include
<linux/signal.h>
#include
<linux/ioctl.h>
#include
<stdio.h>
#include
<linux/fs.h>
//#include <include/linux/smp.h>
#endif
...
...
This diff is collapsed.
Click to expand it.
sound/oss/dmabuf.c
+
1
−
1
View file @
b1f77b90
...
...
@@ -19,7 +19,7 @@
* an explicit wake_up. The return value from schedule_timeout
* can be used instead; if 0, the wakeup was due to the timeout.
*
* Rob Riggs Added persistent DMA buffers (1998/10/17)
* Rob Riggs Added persistent DMA buffers (1998/10/17)
#include <asm/segment.h>
*/
#define BE_CONSERVATIVE
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment