Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EmbeddedLinuxProject
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christoph-Anton Schwierz
EmbeddedLinuxProject
Commits
4b2684d5
Commit
4b2684d5
authored
5 months ago
by
Chris
Browse files
Options
Downloads
Patches
Plain Diff
i forgot sth
parent
ff19954e
No related branches found
No related tags found
1 merge request
!2
Adding scalability
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Processes/cpu_freq.c
+1
-1
1 addition, 1 deletion
Processes/cpu_freq.c
Processes/cpu_temp.c
+1
-1
1 addition, 1 deletion
Processes/cpu_temp.c
main.c
+4
-3
4 additions, 3 deletions
main.c
with
6 additions
and
5 deletions
Processes/cpu_freq.c
+
1
−
1
View file @
4b2684d5
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#include
<fcntl.h>
#include
<fcntl.h>
#include
<string.h>
#include
<string.h>
static
const
char
*
PIPE_TWO
=
"/tmp/
pipeTwo
"
;
static
const
char
*
PIPE_TWO
=
"/tmp/
cpu_freq
"
;
static
void
read_cpu_freq_and_write
(
int
fd
)
static
void
read_cpu_freq_and_write
(
int
fd
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Processes/cpu_temp.c
+
1
−
1
View file @
4b2684d5
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#include
<fcntl.h>
#include
<fcntl.h>
#include
<string.h>
#include
<string.h>
static
const
char
*
PIPE_ONE
=
"/tmp/
pipeOne
"
;
static
const
char
*
PIPE_ONE
=
"/tmp/
cpu_temp
"
;
static
void
read_cpu_temp_and_write
(
int
fd
)
static
void
read_cpu_temp_and_write
(
int
fd
)
{
{
...
...
This diff is collapsed.
Click to expand it.
main.c
+
4
−
3
View file @
4b2684d5
...
@@ -7,11 +7,12 @@
...
@@ -7,11 +7,12 @@
#include
<errno.h>
#include
<errno.h>
#define MAX_PROCESSES 10
#define MAX_PROCESSES 10
#define PIPE_DIR "/tmp/"
#define PIPE_DIR "/tmp/" //name von pipe ist jetzt gleich name von process
// bsp.: /usr/local/bin/cpu_temp hat die pipe /tmp/cpu_freq
#define PROCESS_MONITORING_DIR "/Processes/process_monitoring.sh" //bitte überprüfen ob das die richtige DIR ist
#define PROCESS_MONITORING_DIR "/Processes/process_monitoring.sh" //bitte überprüfen ob das die richtige DIR ist
typedef
struct
{
typedef
struct
{
char
name
[
256
];
char
name
[
256
];
//processname
char
pipe_path
[
256
];
char
pipe_path
[
256
];
int
fd
;
int
fd
;
}
ProcessPipe
;
}
ProcessPipe
;
...
...
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