Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to delete some QoSs #1866

Open
gongqinpeng opened this issue Oct 30, 2023 · 0 comments
Open

I want to delete some QoSs #1866

gongqinpeng opened this issue Oct 30, 2023 · 0 comments

Comments

@gongqinpeng
Copy link

I want to directly remove some QoSs that I don't need from the source code because there are strict code requirements in embedded environments.But I have some question :

I delete "src/core/ddsi/src/ddsi_plist.c"
line 2003 QP (USER_DATA, user_data, XO),
line 2006 QP (TOPIC_DATA, topic_data, XO),
line 2007 QP (GROUP_DATA, group_data, XO),
line 3591 .topic_data.length = 0,
.topic_data.value = NULL,
.group_data.length = 0,
.group_data.value = NULL,
.user_data.length = 0,
.user_data.value = NULL,
line 3629 .topic_data.length = 0,
.topic_data.value = NULL,
.group_data.length = 0,
.group_data.value = NULL,
.user_data.length = 0,
.user_data.value = NULL,
line 3695 .group_data.length = 0,
.group_data.value = NULL,
line 3704 .user_data.length = 0,
.user_data.value = NULL,

line 2012 QP (DEADLINE, deadline, XD),
line 2013 QP (LATENCY_BUDGET, latency_budget, XD),
line 3245 if ((dest->present & DDSI_QP_DEADLINE) && (dest->present & DDSI_QP_TIME_BASED_FILTER))
{
if (dest->deadline.deadline < dest->time_based_filter.minimum_separation)
return DDS_RETCODE_INCONSISTENT_POLICY;
}
line 3579 .deadline.deadline = DDS_INFINITY,
line 3580 .latency_budget.duration = 0,
line 3618 .deadline.deadline = DDS_INFINITY,
.latency_budget.duration = 0,
line 3656 .deadline.deadline = DDS_INFINITY,
.latency_budget.duration = 0,

line 2030 QP (OWNERSHIP, ownership, XE1),
line 2031 QP (OWNERSHIP_STRENGTH, ownership_strength, Xi),
line 3590 .ownership.kind = DDS_OWNERSHIP_SHARED,
line 3634 .ownership.kind = DDS_OWNERSHIP_SHARED,
line 3640 .ownership_strength.value = 0,
line 3679 .ownership.kind = DDS_OWNERSHIP_SHARED,

then I run the HelloworldPublisher

#0 plist_or_xqos_fini (dst=dst@entry=0x7fffffffdd90, shift=shift@entry=0, pmask=pmask@entry=18446744073709551615, qmask=qmask@entry=18446744073709551615) at /home/delete_data_qos/src/core/ddsi/src/ddsi_plist.c:2388
#1 0x00007ffff7f26515 in ddsi_plist_fini (plist=plist@entry=0x7fffffffdd90) at /home/delete_data_qos/src/core/ddsi/src/ddsi_plist.c:2558
#2 0x00007ffff7f5a06c in ddsi_write_and_fini_plist (wr=wr@entry=0x412f20, ps=ps@entry=0x7fffffffdd90, alive=alive@entry=true) at /home/delete_data_qos/src/core/ddsi/src/ddsi_transmit.c:972
#3 0x00007ffff7f40222 in ddsi_spdp_write (pp=pp@entry=0x410530) at /home/delete_data_qos/src/core/ddsi/src/ddsi_discovery_spdp.c:247
#4 0x00007ffff7f3562d in new_participant_guid (plist=0x7fffffffe070, flags=0, gv=0x4067e8, ppguid=0x7fffffffde10) at /home/delete_data_qos/src/core/ddsi/src/ddsi_participant.c:973
#5 ddsi_new_participant (p_ppguid=p_ppguid@entry=0x7fffffffe0d0, gv=0x4067e8, flags=flags@entry=0, plist=plist@entry=0x7fffffffe0e0) at /home/delete_data_qos/src/core/ddsi/src/ddsi_participant.c:1027
#6 0x00007ffff7f5fc20 in dds_create_participant (domain=, qos=0x7fffffffe0d0, listener=0x0) at /home/delete_data_qos/src/core/ddsc/src/dds_participant.c:140
#7 0x000000000040120c in main ()

in plist_or_xqos_fini , the "entry" 0x0 that's my question, I cannot access memory at address 0x0
I cannot create the participant
Because I deleted it from the file such as : line 2030 QP (OWNERSHIP, ownership, XE1),
line 2031 QP (OWNERSHIP_STRENGTH, ownership_strength, Xi), and their policy?

So how can I delete some QoSs that I don't need?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant