-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rename of inode fields: i_Xtime to __i_Xtime (#175)
- Loading branch information
1 parent
83b7db8
commit 4f7d1d7
Showing
4 changed files
with
95 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
SysmonForLinux | ||
Copyright (c) Microsoft Corporation | ||
All rights reserved. | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 2 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License along | ||
with this program; if not, write to the Free Software Foundation, Inc., | ||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
*/ | ||
|
||
//==================================================================== | ||
// | ||
// vmlinux_kern_diffs.h | ||
// | ||
// Contains type definitions that are kernel version dependent. | ||
// The type definitions are usually duplicates (although with only | ||
// the fields that are relevant). CO-RE has a special naming convention | ||
// to properly handle this. See "Handling incompatible field and type changes" | ||
// in: | ||
// | ||
// https://nakryiko.com/posts/bpf-core-reference-guide/#defining-own-co-re-relocatable-type-definitions | ||
// | ||
//==================================================================== | ||
|
||
#ifndef __VMLINUX_KERN_DIFFS_H__ | ||
#define __VMLINUX_KERN_DIFFS_H__ | ||
|
||
#include <vmlinux.h> | ||
|
||
// | ||
// In kernel v6.6 inode i_ctime, i_atime and i_mtime field changed to __i_Xtime. | ||
// | ||
struct inode___pre_v66 | ||
{ | ||
struct timespec64 i_atime; | ||
struct timespec64 i_mtime; | ||
struct timespec64 i_ctime; | ||
}; | ||
|
||
#endif /* __VMLINUX_KERN_DIFFS_H__ */ |