Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b59b47cd
Commit
b59b47cd
authored
Mar 08, 2002
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup bad merge.
parent
8e4a8959
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
arch/ia64/kernel/perfmon.c
arch/ia64/kernel/perfmon.c
+13
-0
No files found.
arch/ia64/kernel/perfmon.c
View file @
b59b47cd
...
...
@@ -657,6 +657,19 @@ pfm_smpl_buffer_alloc(pfm_context_t *ctx, unsigned long *which_pmds, unsigned lo
/*
* partially initialize the vma for the sampling buffer
*/
vma
->
vm_flags
=
VM_READ
|
VM_MAYREAD
|
VM_RESERVED
;
vma
->
vm_page_prot
=
PAGE_READONLY
;
/* XXX may need to change */
vma
->
vm_ops
=
&
pfm_vm_ops
;
/* necesarry to get the close() callback */
vma
->
vm_pgoff
=
0
;
vma
->
vm_file
=
NULL
;
vma
->
vm_raend
=
0
;
vma
->
vm_private_data
=
psb
;
/* information needed by the pfm_vm_close() function */
/*
* Now we have everything we need and we can initialize
* and connect all the data structures
*/
psb
->
psb_hdr
=
smpl_buf
;
psb
->
psb_addr
=
((
char
*
)
smpl_buf
)
+
sizeof
(
perfmon_smpl_hdr_t
);
/* first entry */
psb
->
psb_size
=
size
;
/* aligned size */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment