Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zipr_callbacks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Open Source Software
zipr_callbacks
Commits
18d014fe
Commit
18d014fe
authored
7 years ago
by
whh8b
Browse files
Options
Downloads
Patches
Plain Diff
Add code from dsn demo.
parent
3b2a90ef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitattributes
+2
-0
2 additions, 0 deletions
.gitattributes
configure
+14
-1
14 additions, 1 deletion
configure
configure.in
+1
-0
1 addition, 0 deletions
configure.in
dsn/Makefile.in
+28
-0
28 additions, 0 deletions
dsn/Makefile.in
dsn/dsn.c
+15
-0
15 additions, 0 deletions
dsn/dsn.c
with
60 additions
and
1 deletion
.gitattributes
+
2
−
0
View file @
18d014fe
...
@@ -23,6 +23,8 @@ datashadow/datashadow.h -text
...
@@ -23,6 +23,8 @@ datashadow/datashadow.h -text
datashadow/datashadow_callbacks.c -text
datashadow/datashadow_callbacks.c -text
datashadow/datashadow_callbacks.c.sav -text
datashadow/datashadow_callbacks.c.sav -text
datashadow/test_datashadow.cpp -text
datashadow/test_datashadow.cpp -text
dsn/Makefile.in -text
dsn/dsn.c -text
example/Makefile.in -text
example/Makefile.in -text
example/callback.c -text
example/callback.c -text
hello/Makefile.in -text
hello/Makefile.in -text
...
...
This diff is collapsed.
Click to expand it.
configure
+
14
−
1
View file @
18d014fe
...
@@ -619,6 +619,7 @@ infodir
...
@@ -619,6 +619,7 @@ infodir
docdir
docdir
oldincludedir
oldincludedir
includedir
includedir
runstatedir
localstatedir
localstatedir
sharedstatedir
sharedstatedir
sysconfdir
sysconfdir
...
@@ -694,6 +695,7 @@ datadir='${datarootdir}'
...
@@ -694,6 +695,7 @@ datadir='${datarootdir}'
sysconfdir
=
'${prefix}/etc'
sysconfdir
=
'${prefix}/etc'
sharedstatedir
=
'${prefix}/com'
sharedstatedir
=
'${prefix}/com'
localstatedir
=
'${prefix}/var'
localstatedir
=
'${prefix}/var'
runstatedir
=
'${localstatedir}/run'
includedir
=
'${prefix}/include'
includedir
=
'${prefix}/include'
oldincludedir
=
'/usr/include'
oldincludedir
=
'/usr/include'
docdir
=
'${datarootdir}/doc/${PACKAGE_TARNAME}'
docdir
=
'${datarootdir}/doc/${PACKAGE_TARNAME}'
...
@@ -946,6 +948,15 @@ do
...
@@ -946,6 +948,15 @@ do
|
-silent
|
--silent
|
--silen
|
--sile
|
--sil
)
|
-silent
|
--silent
|
--silen
|
--sile
|
--sil
)
silent
=
yes
;;
silent
=
yes
;;
-runstatedir
|
--runstatedir
|
--runstatedi
|
--runstated
\
|
--runstate
|
--runstat
|
--runsta
|
--runst
|
--runs
\
|
--run
|
--ru
|
--r
)
ac_prev
=
runstatedir
;;
-runstatedir
=
*
|
--runstatedir
=
*
|
--runstatedi
=
*
|
--runstated
=
*
\
|
--runstate
=
*
|
--runstat
=
*
|
--runsta
=
*
|
--runst
=
*
|
--runs
=
*
\
|
--run
=
*
|
--ru
=
*
|
--r
=
*
)
runstatedir
=
$ac_optarg
;;
-sbindir
|
--sbindir
|
--sbindi
|
--sbind
|
--sbin
|
--sbi
|
--sb
)
-sbindir
|
--sbindir
|
--sbindi
|
--sbind
|
--sbin
|
--sbi
|
--sb
)
ac_prev
=
sbindir
;;
ac_prev
=
sbindir
;;
-sbindir
=
*
|
--sbindir
=
*
|
--sbindi
=
*
|
--sbind
=
*
|
--sbin
=
*
\
-sbindir
=
*
|
--sbindir
=
*
|
--sbindi
=
*
|
--sbind
=
*
|
--sbin
=
*
\
...
@@ -1083,7 +1094,7 @@ fi
...
@@ -1083,7 +1094,7 @@ fi
for
ac_var
in
exec_prefix prefix bindir sbindir libexecdir datarootdir
\
for
ac_var
in
exec_prefix prefix bindir sbindir libexecdir datarootdir
\
datadir sysconfdir sharedstatedir localstatedir includedir
\
datadir sysconfdir sharedstatedir localstatedir includedir
\
oldincludedir docdir infodir htmldir dvidir pdfdir psdir
\
oldincludedir docdir infodir htmldir dvidir pdfdir psdir
\
libdir localedir mandir
libdir localedir mandir
runstatedir
do
do
eval
ac_val
=
\$
$ac_var
eval
ac_val
=
\$
$ac_var
# Remove trailing slashes.
# Remove trailing slashes.
...
@@ -1236,6 +1247,7 @@ Fine tuning of the installation directories:
...
@@ -1236,6 +1247,7 @@ Fine tuning of the installation directories:
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
...
@@ -6106,6 +6118,7 @@ enable_dir rss
...
@@ -6106,6 +6118,7 @@ enable_dir rss
enable_dir hookdynamic
enable_dir hookdynamic
enable_dir canaries
enable_dir canaries
enable_dir mixr
enable_dir mixr
enable_dir dsn
enable_dir hello
enable_dir hello
enable_dir cookbook
enable_dir cookbook
enable_dir buffrecv
enable_dir buffrecv
...
...
This diff is collapsed.
Click to expand it.
configure.in
+
1
−
0
View file @
18d014fe
...
@@ -73,6 +73,7 @@ enable_dir rss
...
@@ -73,6 +73,7 @@ enable_dir rss
enable_dir hookdynamic
enable_dir hookdynamic
enable_dir canaries
enable_dir canaries
enable_dir mixr
enable_dir mixr
enable_dir dsn
enable_dir hello
enable_dir hello
enable_dir cookbook
enable_dir cookbook
enable_dir buffrecv
enable_dir buffrecv
...
...
This diff is collapsed.
Click to expand it.
dsn/Makefile.in
0 → 100644
+
28
−
0
View file @
18d014fe
CC
=
@CC@
EXTRA_INCLUDES
=
CFLAGS
=
-fno-omit-frame-pointer
@CFLAGS@
-O0
$(
EXTRA_INCLUDES
)
LIB
=
@LIB@
AR
=
@AR@
AS
=
@AS@
ASFLAGS
=
@ASFLAGS@
OBJS
=
dsn.o
SRCS
=
dsn.c
.SUFFIXES
:
.o .s .c
.c.o
:
$(
CC
)
$(
CFLAGS
)
$(
INCLUDE
)
-D__
$(
ARCH
)
-c
$<
.s.o
:
$(
AS
)
$(
ASFLAGS
)
$<
all
:
$(OBJS)
$(
AR
)
-r
$(
LIB
)
$(
OBJS
)
clean
:
rm
*
.o
This diff is collapsed.
Click to expand it.
dsn/dsn.c
0 → 100644
+
15
−
0
View file @
18d014fe
int
syscall
(
int
number
,
...);
#include
<stdlib.h>
#include
<malloc.h>
#include
<stdint.h>
#include
<strlen.h>
#include
<itox.h>
void
print_str
(
char
*
s
)
{
write
(
1
,
s
,
strlen
(
s
));
}
void
zipr_hook_start
(
unsigned
int
id
,
unsigned
long
long
rax
,
unsigned
long
long
rsp
)
{
print_str
(
"This is boring. What time is it?
\n
"
);
}
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